Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
True

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

Any Idea?

share|improve this question
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.