I'm on Windows 8.1, and fairly new to Windows-side development. I've had PSCX suggested to me, but for the life of me, I can't figure out how to install PSCX 3.1 on Windows 8.1 and make the cmdlets work when I type them. (To put it frankly.)
I've downloaded and run the .msi
for 3.1 from the website; as far as I can tell, it ran successfully and exited. However, running, for instance, Expand-Archive
, fails.
Get-Module -ListAvailable
doesn't show anything about PSCX. I checked my WindowsPowerShell
directory (in C:\Users\ELLIOTTCABLE\Documents\WindowsPowerShell
), there's no Modules
directory in there. Just my PS1
profile.
Where, if anywhere, has the .msi
installed this; and how do I get PowerShell to recognize it? (My setup is very generic, nothing strange going on on my end afaict. Again, new to Windows.)
Best Answer
After upgrading to Windows 8.1 from 7 (via 8.0) I found the same issue.
However it turns out Pscx is installed here:
C:\Program Files (x86)\PowerShell Community Extensions\Pscx3\Pscx\
(in my case as I've got Pscx 3.1 installed now).And there's a
PSModulePath
environment variable that points toC:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\
The environment variable just needs to be updated to add the path to Pscx. I guess either something reset the path on upgrade or moved Pscx out of the system32 location.
See also https://pscx.codeplex.com/workitem/34912