Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am developing a script which should run under 64 and 32Bit Powershell. Unfortunately it seems that Test-Path return different results in 64 and 32 Environment. Both sessions are running under same user, this user has full access on specific registry key.

64Bit Powershell
>test-path HKLM:\SOFTWARE\Citrix\ProvisioningServices

32Bit Powershell(x86)
>test-path HKLM:\SOFTWARE\Citrix\ProvisioningServices

Any Idea?

share|improve this question

32-bit programs default to the WOW64 node in the registry, but see it as "normal". If the key does not exist in WOW64 then it is correctly returning false.

share|improve this answer
Thank you for the answer. I found solution for this Problem under: Accessing-remote-x64-registry-from-an-x86x32-server – StarSpace May 31 '12 at 11:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.