Using the example:
; Fill in the username and password appropriate for your system.
Local $sUserName = "Username"
Local $sPassword = "Password"
; Run a command prompt as the other user.
Local $pid = RunAsWait($sUserName, @ComputerName, $sPassword, 0, @ComSpec, @SystemDir)
...
The question is; how safe is this? If it's a compiled exe can someone get the password? Is there a way to encrypt the password and still make it work? I'm looking for some sound advice on the best way to handle passwords securely. I don't want to inadvertantly compromise the security of every computer...
Thanks.