Detecting if PowerShell was opened as 32bit process

I’ve started to automate a ton of things in our environment using PowerCLI (VMware). Unfortunately some of the cmdlets require a 32bit powershell, in order to protect vCenter from bugs via running the script as a 64 bit process I have had to implement a way to make sure it was run as 32bit. Im sure this can be handled a few different ways but this is working great so far.

0 comments… add one

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.