Skip to content

Useful PowerShell scripts for PowerApps

December 20, 2022

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 -Password $pass

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: