Well I worked around my problem, by copying the file to the local drive and running ad local admin.. my question now is, one of the parameters of the exe is /quiet so it will run with out anyone knowing. the Runnas command does not seem to do this.. any thoughts?
here is the current routine.
IF INGROUP("Psinstall")
$Powershell = ReadValue('HKLM\SOFTWARE\Microsoft\PowerShell\1\','Install')
If $Powershell <> 1
$local="%systemroot%\temp"
$server="@lserver\netlogon\bats\WindowsXP-KB926139-v2-x86-ENU.exe"
copy $server $local
$Winpath = $local + '\WindowsXP-KB926139-v2-x86-ENU.exe /quiet'
$runaspath="@lserver\netlogon\runnas.exe"
SHELL $runaspath + ' /user:' + @wksta + '\Administrator ' + $winpath + ' /pass:********'
Endif
Endif
Edited by Allen (2008-09-11 10:04 PM)
Edit Reason: Masked Password in script
_________________________
You'll never know, unless you ask.