Quantcast
Viewing all articles
Browse latest Browse all 9

Re:Help with reg checks (does it exist, access denied, able to read, able to write/modify?) (a_ahmed)

Another method I tried is this:
 
On Error resume next
 If oReg.EnumKey(HKEY_LOCAL_MACHINE, "SECURITY\", "", "") = 0 Then
 MsgBox "Key Exists"
 wscript.echo err.number
 Else
 MsgBox "Key Not Found"
 wscript.echo err.number
 End If

 
It will return key does not exist and error code number is 0... so that's useless... key DOES exist... but user has no access to it.
 
 

Viewing all articles
Browse latest Browse all 9

Trending Articles