cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
EdHansberry
Level 8

Trying to run Power Apps PowerShell for app with a space in the name - always fails

I want to disable the consent dialog on one of my apps, which is called "Receiving Pictures Upload." I've tried no quotes, single quotes, and double quotes. Same error. What am I doing wrong? I am not a PowerShell user at all, so sort of hacking my way through this.

 

PS C:\Users\userpath> Set-AdminPowerAppApisToBypassConsent -'Receiving Pictures Upload' {xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx}
Set-AdminPowerAppApisToBypassConsent : A positional parameter cannot be found that accepts argument '-Receiving
Pictures Upload'.
At line:1 char:1
+ Set-AdminPowerAppApisToBypassConsent -'Receiving Pictures Upload' {54 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-AdminPowerAppApisToBypassConsent], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Set-AdminPowerAppApisToBypassConsent

 

1 ACCEPTED SOLUTION

Accepted Solutions
EdHansberry
Level 8

Re: Trying to run Power Apps PowerShell for app with a space in the name - always fails

No, but it is because the syntax here is wrong, or I don't know enough about how those who talk about PowerShell write about syntax. It should be the following:

 

Set-AdminPowerAppApisToBypassConsent -AppName "xxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx"

 

No actual name needed, and the app ID goes in double quotes, not squiggly brackets.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Trying to run Power Apps PowerShell for app with a space in the name - always fails

Hi @EdHansberry ,

 

Did you mean that if the app name doesn't contain a space, then it will run successfully?

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
EdHansberry
Level 8

Re: Trying to run Power Apps PowerShell for app with a space in the name - always fails

No, but it is because the syntax here is wrong, or I don't know enough about how those who talk about PowerShell write about syntax. It should be the following:

 

Set-AdminPowerAppApisToBypassConsent -AppName "xxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx"

 

No actual name needed, and the app ID goes in double quotes, not squiggly brackets.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,955)