Программа для запуска какой-то программы от имени нужного пользователя (например, от имени администратора)
$Username="Jack O`Neill"
$Password="stargatesg1"
$Domain="X03"
$Address="\\Serveripadress\netlogon\Scriptbeispiel\ipadresse_auslesen.exe"
; Path to the File that must be executed
$Password="stargatesg1"
$Domain="X03"
$Address="\\Serveripadress\netlogon\Scriptbeispiel\ipadresse_auslesen.exe"
; Path to the File that must be executed
RunAs($Username,$Domain,$Password,0,$Address)
Программа для запуска какой-то программы от имени нужного пользователя (например, от имени администратора)
$Username="Jack O`Neill"
$Password="stargatesg1"
$Domain="X03"
$Address="\\Serveripadress\netlogon\Scriptbeispiel\ipadresse_auslesen.exe"
; Path to the File that must be executed
$Password="stargatesg1"
$Domain="X03"
$Address="\\Serveripadress\netlogon\Scriptbeispiel\ipadresse_auslesen.exe"
; Path to the File that must be executed
RunAs($Username,$Domain,$Password,0,$Address)
0 коммент.:
Отправить комментарий