Retrieving the COM class factory for component with CLSID {F5694708-88FE-4B35-BABF-E56162D5FBC8} failed due to the following error: 80040154.

New-Object -COM “GPMGMT.GPM” generates the following error on 64-bit systems:

New-Object : Retrieving the COM class factory for component with CLSID {F5694708-88FE-4B35-BABF-E56162D5FBC8} failed due to the following error: 80040154.

Reason: the “GPMGMT” COM object is 32-bit, and is not registered in the 64-bit part of the registry, only in the 32-bit part. You can find the CLSID in th HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{F5694708-88FE-4B35-BABF-E56162D5FBC8}\ node.  You can run the GPMGMT script using the 32-bit version of Powershell, located at C:\WINDOWS\SysWOW64\WindowsPowerShell\v1.0\powershell.exe.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s