Link to home
Start Free TrialLog in
Avatar of mhamer
mhamer

asked on

Calling 32 or 64 bit cmd in powershell

Hi, various scripts we have writet to the registy (just markers,)  but 64 and 32 bit registry is diffrent, if i run the same script on a 32 bit and a 64 bit server themarkers get written to diffrent locations.

I can force a script by  choosing which cmd.exe to use either syswow or system32

but wondered if there is anything within powershell that can let you choose 32 or 64 bit calls to CMD or registry so the script can be self contained and not relying on how its run

hope that makes sense
Avatar of mhamer
mhamer

ASKER

set path=%path%;%WinDir%\Sysnative
is not an option due ti the hot fix not being in place
ASKER CERTIFIED SOLUTION
Avatar of marek1712
marek1712
Flag of Poland 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
SOLUTION
Avatar of Aard Vark
Aard Vark
Flag of Australia 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
Avatar of mhamer

ASKER

thanks guys