I need to check whether the user executing the script has administrative privileges on the machine.
I have specified the user executing the script because the script
Yet another quick n dirty method. Returns <> 0 If IsNotAdmin
Function IsNotAdmin() With CreateObject("Wscript.Shell") IsNotAdmin = .Run("%comspec% /c OPENFILES > nul", 0, True) End With End Function