I would like to check whether the context in which my VBscript runs allows me to perform administrative tasks.
Requirements:
I have added two additional script kits that dramatically enhance the original code above that came from ifuserperms.vbs.
CSI_IsSession.vbs can tell you almost anything you want to know about UAC or the current session the script is running under.
VBScriptUACKit.vbs (which uses CSI_IsSession.vbs) allows you to selectively prompt for UAC in a script by relaunching itself. Has been designed and debugged to work under many execution scenarios.