Associate_Engineer
Systems Engineer
The only thing I can return is basically a "true/false aka a 1 or 0"
I need the windows error codes such as:
1787 The security database on the server does not have a computer account for this workstation trust relationship.
1326 Logon failure: unknown user name or bad password.
runCmd ="runas /profile /userOMAIN\" & userName & " notepad"
retResults = WshShell.Run (runCmd,1,True)
If retResults <> 0 Then
I need the windows error codes such as:
1787 The security database on the server does not have a computer account for this workstation trust relationship.
1326 Logon failure: unknown user name or bad password.
runCmd ="runas /profile /userOMAIN\" & userName & " notepad"
retResults = WshShell.Run (runCmd,1,True)
If retResults <> 0 Then
usrName.value = ""
MsgBox "error: " & (retResults)
End If