Link to home
Start Free TrialLog in
Avatar of Carletto
CarlettoFlag for Italy

asked on

psexec problem on 64bit target systems

Dear All,
Lately I've been using PsExec. I use it to copy some NSIS exe installers to remote machines and execute them. The default remote path of these installers seems to be %windir%\system32. Is there a parameter available to change this to something else?

I ask because on 64bit Windows systems you can't execute NSIS installers from the system32 directory, it will throw an error.

Any advice would be greatly appreciated! Thanks a bunch.
Avatar of Dave_LaSalle
Dave_LaSalle

try -w C:\WINDOWS\SysWOW64
Avatar of Carletto

ASKER

I've tried it with w but this is related to the process directory , not the executable.
The installer still gets copied on system32
thank you
You may need to batch for this but try to put the syswow64 folder into the path statement before the system32 entry.

try set PATH=%systemroot%\SysWOW64;%PATH%
this will be temporary
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It's working great.
thank you.