This project is read-only.

Error Importing pcsx in profile on windows 8.1 (PS 4)


Before an update to Windows 8.1 I could access the $Pscx variable from my powershell profile. After I cannot.

So I try Import-Module pscx in my profile and get the following error
The property 'Get' cannot be found on this object. Verify that the property exists.
At C:\Users\George\Documents\WindowsPowerShell\Modules\pscx\Modules\Wmi\Pscx.Wmi.psm1:15 char:9
+     if (!$acceleratorsType::Get.ContainsKey($name))
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : PropertyNotFoundStrict

Import-Module : The specified module 'C:\Users\George\Documents\WindowsPowerShell\Modules\pscx\Modules\Wmi\Pscx.Wmi.psm1' was
not loaded because no valid module file was found in any module directory.
At C:\Users\George\Documents\WindowsPowerShell\Modules\pscx\Pscx.psm1:197 char:4
+             Import-Module $path -DisableNameChecking
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (C:\Users\George...i\Pscx.Wmi.psm1:String) [Import-Module], FileNotFoundEx
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand


r_keith_hill wrote Nov 4, 2013 at 4:59 AM

There is an update to PSCX (3.1.0) that corrects issues with usage under PS 4.0.

Togakangaroo wrote Nov 4, 2013 at 3:21 PM

Thanks @r_keith_hill that fixed it.