The HasNTAdminPrivilege method succeeds if the current user has NT administrative privileges on the local machine. It fails otherwise.
IDL Definition
HRESULT HasNTAdminPrivilege();
Return Values
A standard HRESULT value
Example
On Error Resume Next
Set ObjCreator = CreateObject("ObjCreator.ObjCreator.1")
Set BrokServers = ObjCreator.CreateObjAuth("MemAdmin.BrokServers.1")
' Check error number to see if it succeeded
if Err.Number <> 0 Then
wscript.echo "Error: Account does not have proper credentials"
End If