Knowing from a script if in Administrator mode or not
Hello all,
Doc sez : "Scripts cannot determine programmatically whether they are running under a standard user security token or an Administrator token "
http://msdn.microsoft.com/en-us/library/aa826699
Did someone find a workaround for this issue? (if it is one)
Thanks.
DTL
October 27th, 2010 12:02pm
Salut André,
Which check ?
Which exit codes ?
Which check for exit codes ?
Please be helpful.
Thanks.
Free Windows Admin Tool Kit Click here and download it now
November 4th, 2010 10:02pm
Have a look at this , hope it helps
http://gallery.technet.microsoft.com/scriptcenter/en-us/eb9e3987-6650-4ca8-bc53-26c4ddc3664a
November 23rd, 2010 6:50pm
Have a look at this , hope it helps
http://gallery.technet.microsoft.com/scriptcenter/en-us/eb9e3987-6650-4ca8-bc53-26c4ddc3664a
Thanks.
As suggested there in his meaning of "passive detection", you could instead perform a down-and-dirty privileged file/folder access and look for success or failure. But his clever approach parsing whoami /all allows us to examine
various aspects that may also be of interest.
Did you happen to notice? :) '* Built/Tested On: Windows 8
Free Windows Admin Tool Kit Click here and download it now
November 24th, 2010 1:47am