Notifications
Announcements
Is there any way to pass the credentials required for Add-PowerAppsAccount to the function using parameters?
Yes! I call this out here: https://docs.microsoft.com/powerapps/administrator/powerapps-powershell#installation:
# Here is how you can pass in credentials (avoiding opening a prompt)
$pass = ConvertTo-SecureString "password" -AsPlainText -Force
Add-PowerAppsAccount -Username foo@bar.com -Password $pass
There is no parameter for Username or Password. The only parameters available are:
Add-PowerAppsAccount [[-Audience] <string>] [[-Endpoint] {prod | preview | tip1 | tip2}] [<CommonParameters>]
Where can I get your version of the Add-PowerAppsAccount cmdlet?
Regards
Eddie
Hi Eddie,
If you download from the link on this page, you will get the V3 of the cmdlets.
With this version, Add-PowerAppsAccount takes the additional parameters.
Regards,
Luzi
I know I'm coming accross this post like several months later, however would suggest not putting your password in plaintext in a script file.
-First export your credentials,
Get-Credential | Export-CliXml 'C:\location.xml'
Then each time after that, you can do this,
$cred = Import-Clixml 'C:\location.xml' Add-PowerAppsAccount -Username $cred.UserName -Password $cred.Password
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268