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
Bones91

Windows 7 x64
 
 
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 System SpecsSystem Spec
.
26 Sep 2014   #2
Kari

Microsoft Community Contributor Award Recipient

 

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 System SpecsSystem Spec
26 Sep 2014   #3
Bones91

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.

Cheers
My System SpecsSystem Spec
.

26 Sep 2014   #4
Kari

Microsoft Community Contributor Award Recipient

 

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
Kari

Microsoft Community Contributor Award Recipient

 

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 System SpecsSystem Spec
26 Sep 2014   #6
Kari

Microsoft Community Contributor Award Recipient

 

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
Reply

 No administrator privileges in elevated command prompt




Thread Tools Search this Thread
Search this Thread:

Advanced Search




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...
Tutorials
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...
Tutorials
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
How to open Elevated Command Prompt?
Hi friends ! Uber Philf told me to start a new thread with my problem. I cannot open an Elevated Command Prompt, Dont know why. I know that I can open it in two alternative ways : 1). Win+R, type cmd, hit enter eith ctrl+shift pressed ; and 2). start > all programs > accessories > command prompt >...
Performance & Maintenance
elevated command prompt fails
If i try and use cmd from within the start menu ,in accessories and right click ,then "Run as administrator",all i am granted is normal cmd usage e.g(C:\Users\(User Name ).Now,i then pinned cmd to the start menu and again i tried to "run as administrator",but this time cmd fails to open at all. ...
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 01:24.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App