Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: No administrator privileges in elevated command prompt

26 Sep 2014   #1

Windows 7 x64
No administrator privileges in elevated command prompt


I'm trying to setup a WiFi Hotspot on my Laptop running Windows 7.
When I enter the command:
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 System SpecsSystem Spec
26 Sep 2014   #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


My System SpecsSystem Spec
26 Sep 2014   #3

Windows 7 x64

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.

My System SpecsSystem Spec

26 Sep 2014   #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 System SpecsSystem Spec
26 Sep 2014   #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.
My System SpecsSystem Spec
26 Sep 2014   #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 System SpecsSystem Spec

 No administrator privileges in elevated command prompt

Thread Tools

Similar help and support threads
Thread Forum
Elevated Command Prompt
How to Open an Elevated Command Prompt in Windows 7 This will show you how to open an elevated command prompt with administrator rights (Run as administrator) instead of the default command prompt without administrator rights in Windows 7. If you opened the elevated command prompt from a...
Built-in Administrator Account-enable elevated privileges
Hi to all I have recently taken delivery of a new computer which has WIN7 Pro SP1 as the OS, and after downloading all critical/important security updates I tried to run a few commands only to discover I did not have full administrator rights/privileges. After being somewhat led down the...
General Discussion
Elevated Command Prompt Shortcut
How to Create an "Elevated Command Prompt" Shortcut in Windows 7 and Windows 8 This tutorial will show you how to create a shortcut that will open an elevated command prompt with administrator rights in Windows 7 and Windows 8. When you use the elevated command prompt shortcut, you may be...
Elevated command prompt over SSH
Not sure if this is the proper forum for my question, but here it goes. I'm using a SSH server to remotely access my notebook from work. It works well for SFTP and remote command line access using a dedicated, non-admin, user account. Problem is when I want to run something that requires...
Network & Sharing
Tip for Elevated Command Prompt
This probably is not new to many, but I find it useful. There are times I want an elevated command prompt. I usually type in "cmd", right click on it and run as administrator. If you need an elevated command prompt now and then, simply create a shortcut to "cmd". Right click on the shortcut,...
General Discussion

Our Sites

Site Links

About Us

Find 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 13:43.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App