WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

UAC

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

wntRunAsUser Issues

 Keywords: wntRunAsUser Issue Bug Problem Elevate Escalate UAC Vista Win 7

Important: On Windows Vista/2008 or newer, wntRunAsUser cannot be use to escalate ( or elevate) privileges.

It can be used to if you are logged in as an administrator and you want to (de-escalate) to a standard user. Make sure you don't elevate to full administrator privileges before you run the script. If you elevate first, wntRunAsUser basically doesn't lower your privileges and the process continues to use your administrator privileges.


Windows 7 Strangeness

Windows 7: When UAC is on, a standard user can specify Administrative credentials but the script will still only act as a standard user. When UAC is off, a standard user can specify Administrative credentials but privileges actually get reduced to less than a standard users (anonymous impersonation.) This causes simple operations such as FileExist to fail.


Article ID:   W18330
Filename:   wntRunAsUser Issues.txt
File Created: 2011:08:19:12:57:26
Last Updated: 2011:08:19:12:57:26