os 2008 R2 sp2
I have disabled UAC completely , confirmed this by launching a standard cmd prompt and cd C:\Windows\SysWOW64\config
as per http://blog.pythonaro.com/2013/05/fully-disable-user-access-control-uac.html
When i run the following , nothing happens , as i am running psexec , this is not the double hop issue , the files make it to the server.
I am attempting to run a local exe on the target server , the psexec is simply to run the copy command , the double hop has been sorted and the files make it to the local server
the exe does not kick off but does when i enter the session interactive and run the exe call and arg
$complist =@("server1","server2") $server = "sourcefileserver" function NewLogin($computer) { $session = new-pssession -computername $computer -Authentication Kerberos return $session } Function Func_installSoft($Computer) { $session = NewLogin $Computer $scriptblock={ c:\install\vcredist_x64.exe /passive } Invoke-Command -session $session -ScriptBlock $scriptblock Remove-PSSession -session $session } foreach($element in $complist) { psexec \\$element -s robocopy "\\$server\Documents\install\" "c:\Install" Func_installSoft $element }
If i run the following interactively , the install runs fine , Logically i am doing exactly the same thing right?
$comp = "qual29web001" $session = new-pssession -computername $comp -Authentication Kerberos $sessions = get-pssession $sessionid = $sessions.ID[0] enter-pssession $sessionid c:\install\vcredist_x64.exe /passive exit remove-pssession *
Any help is much appreciated , the install is a rollup for visual studio
- Edited by RobMDD Friday, March 20, 2015 11:15 PM