web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Trying to run Power Ap...
Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on by 386

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

 

Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @EdHansberry ,

     

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

     

    Regards,

    Mona

  • Verified answer
    EdHansberry Profile Picture
    386 on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 644

#3
11manish Profile Picture

11manish 626

Last 30 days Overall leaderboard