Forum Discussion
Ronald Kushner
Mar 10, 2023Copper Contributor
Error using Remove-AdminPowerApp in the Microsoft.PowerApps.Administration.PowerShell module
I am trying to use `Remove-AdminPowerApp`. I am a PowerPlatform admin, and I am running PowerShell in Administrator mode. The error says: "InvokeApi : The term 'Test-PowerAppsAccount' is not recognized as the name of a cmdlet, function, script file, or
operable program."
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'."
The ISE shows:
- The term 'Add-PowerAppsAccount' is not recognized...
But now I have installed PWSH (PowerShell 7) and it looks like everything works there!
- Hello, What version of the module are you using? can you verify you only have one installed?
- Ronald KushnerCopper Contributor
AndresGorzelany I am using 1.0.20 and yes, I have only one installed. Thanx!!!
- I'm using version 2.0.156 that version you have it's pretty old or do you also have Microsoft.PowerApps.PowerShell module?
Check here for latest versions https://msshells.net