Denied access in Power Shell command

Discussion in 'Programming and Windows PowerShell' started by BentGrass, May 17, 2018.

  1. BentGrass

    BentGrass

    Joined:
    Apr 24, 2018
    Messages:
    20
    Likes Received:
    3
    I tried to input this line of code in Power Shell but it said I was denied. Anybody got any ideas on how to get around that?


    upload_2018-5-17_13-42-50.png
     
    BentGrass, May 17, 2018
    #1
    1. Advertisements

  2. BentGrass

    Bighorn

    Joined:
    Sep 26, 2017
    Messages:
    988
    Likes Received:
    151
    Are you using the PowerShell (Admin) version? The Title bar will distinguish between the 2 choices on the right-click of the Start button.
     
    Bighorn, May 17, 2018
    #2
    Ian likes this.
    1. Advertisements

  3. BentGrass

    Ian Administrator

    Joined:
    Oct 27, 2013
    Messages:
    1,441
    Likes Received:
    473
    Yep, it looks like it's the non-administrator version of powershell.

    When you right click the start button to load the "quick links" menu, select Windows Powershell (Admin) instead. This will give you elevated privileges and all you to run that command:

    Powershell Admin.png
     
    Ian, May 18, 2018
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.