Hi everyone,
I have some problems with RunAs.
Global $admin, $domain, $password, $variable
$admin="user"
$domain="teste"
$password="password"
$variable="V:\example1\example2\example3\install_example.bat"
RunAs($admin, $domain, $password,2,$variable, @SystemDir)
RunWait("V:\example1\example2\example3\install_example.bat")
When i go a head with this, nothing happens.
someone have any idea? what is the problem with this?
in $domain, I need put the ip or the name of machine?
Thanks.