PowerShell scripting with 32-bit COM Objects on x64 Systems
Today I’m going to show you how to work with 32-bit COM Objects on an x64 remote system using PowerShell.
One of the problems that you will encounter when using PowerShell for remote administration is when working with COM Objects on a 64-bit system. The problem is that COM Objects are only 32-bit and PowerShell running in 64-bit cannot see or manipulate COM Objects. So how do you work with COM Objects remotely on a 64-bit system? Let me explain..
I take you through the difference in PowerShell command building for both x86 and x64 based remote systems, and Yes they are very different! This is a real life example of working with an SCCM COM object that is used to configure the SCCM Install Update Schedule, and the same example can be applied to hundreds of other purposes.