No administrator privileges in elevated command prompt


  1. Posts : 2
    Windows 7 x64
       #1

    No administrator privileges in elevated command prompt


    Hi,

    I'm trying to setup a WiFi Hotspot on my Laptop running Windows 7.
    When I enter the command:
    Code:
    netsh wlan set hostednetwork mode=allow "ssid=myssid"  "key=mykey” keyUsage=persistent
    in an elevated command prompt, it says:
    "You must run this command from a command prompt with administrator privilege."

    I have an administrator account and had never problems with it.

    Does someone has an idea what the problem could be?
      My Computer


  2. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #2

    Hi Bones, welcome to the Seven Forums.

    The message you get shows absolutely clear without any doubts that you are not running the command from elevated Command Prompt. That message is only shown when a command requiring administrative privileges has been run from a normal Command Prompt.

    When run from an elevated Command Prompt, your command syntax is OK (highlighted yellow) and runs as it should, the output (highlighted green) showing it's working:

    No administrator privileges in elevated command prompt-2014-09-26_14h35_55.png

    Two telltales of an Elevated Command Prompt, numbers referring to respective numbers in above screenshot:
    1. The title has word Administrator in it
    2. The prompt (by default) is C:\Windows\System32


    Kari
      My Computer


  3. Posts : 2
    Windows 7 x64
    Thread Starter
       #3

    Hi Kari,
    Thx for the quick response.

    The command prompt looks exactly as in your picture.
    It says Administrator in the title and starts in the system32 folder.

    Cheers
      My Computer


  4. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #4

    Are you logged in to your normal user account? How do you open the elevated command prompt (please tell exactly what you do to open it)?
      My Computer


  5. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #5

    Asking ideas from other members a respected senior geek told me this: "I have heard of instances where having UAC level set to other than the first two levels can cause some strange results, could be worth a check".

    Worth checking.

    http://windows.microsoft.com/en-us/w...#1TC=windows-7
      My Computer


  6. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #6

    Another suggestion from another member: create a new admin account, log in to that account and check if elevated command prompt works as it should.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 15:29.
Find Us