i have a ps script which is running as a 64 bit process. this script needs to read some information from a 32 bit only COM object, Microsoft.SMS.Client.
At the momment i am shelling out to a vbscript launched from syswow64 which writes to the registry the information i wanted from Microsoft.SMS.Client, which i then read in again from the 64bit.
I want to clean this mess up. I saw a couple of google hits about...
Invoke-Command server64 { new-object -com "32BitOnlyComProgId" } -ConfigurationName Microsoft.PowerShell32
i have tried the Invoke-Command %computername% but it gave an error, and i still not sure i can access the instance of the COm object from the 64 bit session.
Does anyone have any experience with this type of thing and can give me a few pointers?
At the momment i am shelling out to a vbscript launched from syswow64 which writes to the registry the information i wanted from Microsoft.SMS.Client, which i then read in again from the 64bit.
I want to clean this mess up. I saw a couple of google hits about...
Invoke-Command server64 { new-object -com "32BitOnlyComProgId" } -ConfigurationName Microsoft.PowerShell32
i have tried the Invoke-Command %computername% but it gave an error, and i still not sure i can access the instance of the COm object from the 64 bit session.
Does anyone have any experience with this type of thing and can give me a few pointers?