Forum Discussion
Error using Remove-AdminPowerApp in the Microsoft.PowerApps.Administration.PowerShell module
- Mar 15, 2023The term 'Add-PowerAppsAccount' is not recognized...
But now I have installed PWSH (PowerShell 7) and it looks like everything works there!
AndresGorzelany I am using 1.0.20 and yes, I have only one installed. Thanx!!!
Check here for latest versions https://msshells.net
- Ronald KushnerMar 15, 2023Copper Contributor
Sorry, I have 2.0.147 of the admin module, and 1.0.20 of PowerApps.PowerShell. And I am running PowerShell version 5.1.19041.2364. Should I try pwsh?
- Mar 15, 2023Can you run Get-AdminPowerApp and Get-AdminPowerAppEnvironment without problems?
- Ronald KushnerMar 15, 2023Copper Contributor
They both return this error:
Get-AdminPowerApp
The term 'Test-PowerAppsAccount' is not recognized... At C:\Users\580616\Documents\WindowsPowerShell\Modules\Microsoft.PowerApps.Administration.PowerShell\2.0.147\Microsoft.
PowerApps.Administration.Powershell.psm1:2580 char:35
But when I try to `Install-Module -name Microsoft.PowerApps.Administration.PowerShell`, the error says, "The following commands are already available on this system:'Add-PowerAppsAccount, Get-JwtToken, Get-TenantDetailsFromGraph, Get-UsersOrGroupsFromGraph, InvokeApi, Remove-PowerAppsAccount, ReplaceMacro, Select-CurrentEnvironment, Test-PowerAppsAccount'."