Guest joey Posted May 27, 2008 Posted May 27, 2008 I am trying to run a executable with psexec from a remote machine but failing and giving me error code 128 psexec \\remotehost \\anotherremotehost\share\setup.exe
Guest Pegasus \(MVP\) Posted May 27, 2008 Posted May 27, 2008 Re: psexec "joey" <joey@joe.com> wrote in message news:%23mYw6xCwIHA.3760@TK2MSFTNGP04.phx.gbl... >I am trying to run a executable with psexec from a remote machine but >failing and giving me error code 128 > > psexec \\remotehost \\anotherremotehost\share\setup.exe What happens when you start with a simple command? psexec \\remotehost cmd.exe You can build up from here and try your setup.exe command. Note that psexec.exe does NOT support a GUI. You can only run console commands.
Guest joey Posted May 27, 2008 Posted May 27, 2008 Re: psexec ok I think I got it to work C:\WINDOWS\system32>psexec \\remotehost -u "domain\user" -i \\server\share\setup.exe I had to enter the domain user name. What do I do if I want to use the @file with more than one hostname? "Pegasus (MVP)" <I.can@fly.com.oz> wrote in message news:eFBYy$CwIHA.3792@TK2MSFTNGP02.phx.gbl... > > "joey" <joey@joe.com> wrote in message > news:%23mYw6xCwIHA.3760@TK2MSFTNGP04.phx.gbl... >>I am trying to run a executable with psexec from a remote machine but >>failing and giving me error code 128 >> >> psexec \\remotehost \\anotherremotehost\share\setup.exe > > What happens when you start with a simple command? > > psexec \\remotehost cmd.exe > > You can build up from here and try your setup.exe command. > Note that psexec.exe does NOT support a GUI. You can > only run console commands. >
Guest Pegasus \(MVP\) Posted May 28, 2008 Posted May 28, 2008 Re: psexec "joey" <joey@joe.com> wrote in message news:u1FdkOFwIHA.5892@TK2MSFTNGP02.phx.gbl... > ok I think I got it to work > > > C:\WINDOWS\system32>psexec \\remotehost -u "domain\user" -i > \\server\share\setup.exe > > > > I had to enter the domain user name. What do I do if I want to use the > @file with more than one hostname? > Congratulations! You just found out that running psexec.exe by itself will launch a session under the "System" account, which, of course, has no access to networked resources. What do you mean with "@file"?
Recommended Posts