Useful PowerShell scripts for PowerApps
Before proceeding towards PowerShell scripts for PowerApps & Power Automate, follow below steps.
Launch windows powershell as an admin.
Run the below commads.
Install-Module -Name Microsoft.PowerApps.Administration.PowerShell
Install-Module -Name Microsoft.PowerApps.PowerShell -AllowClobber
Type A, accept all the installation policies and then connect to your environment. Use below command for the same.
Here is how you can pass in credentials (avoiding opening a prompt)
$pass = ConvertTo-SecureString “password” -AsPlainText -Force
Add-PowerAppsAccount -Username admin@admin.com -Password $pass
Leave a Comment