I am trying to run `netsh wlan set hosted network mode=allow` as administrator but when I run it from an elevated cmd, or powershell, netsh still replies that:

```
You must run this command from a command prompt with administrator privilege.

```

I am positive that my cmd is elevated (ctrl+shift+enter or right click run as administrator), as it says so in the title bar, which starts with "Administrator: C:\Windows\system32\cmd.exe" . Also, I can successfully run things like

```
echo "test-write-to-disk-in-admin-only-area" > c:\Windows\system32\test.txt

```

I tried to even start a cmd like this, and run netsh in it:

```
powershell -Command "Start-Process cmd -Verb RunAs"

```

but netsh still believes it is not run as administrator.

For what it's worth, the computer is running a windows 7 in a corporate AD, but my user is an administrator for the PC I am working on.

Any ideas on how I could convince netsh that it is run as administrator? Or any thoughts of why netsh thinks it is not run as administrator?