0

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?

0

1 Answer 1

1

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.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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