Search code examples
powershellinstallationpscx

Install PSCX with PowerShell


I want to install the PowerShell Community Extensions using only the command-line.

I don't want to use a UI, no right-click extract, double-clicking an MSI file. I have to do this process on dozens of computers. However, all of the instructions I've found involve all of this clicking and downloading.

I'm looking for a series of PowerShell commands that can complete the installation. Ideal solution would be completely self-contained: download file X & install. I would like to avoid copying local versions to the given server.

Requirement of Admin access is fine.


Clarifications:

  • I'm starting from a blank computer, with PoSH 2.0 installed. I'm logged in via PsSession.
  • I'm looking for a series of PoSH commands, not a list of instructions.
  • I'm actively trying to avoid "Open IE and download a file", that's the anti-thesis of a shell.

Edit for 2014

I would now do this with Chocolatey.

Chocolatey has a one-line download & install command followed by an additional command in to install PSCX.


Solution

  • PSCX (2.0) is available as a zip and all you have to do is copy the contents of the zip file to your modules folder -$env:Home\Documents\WindowsPowerShell\Modules ( for user) or $PSHome\Modules (for system) - and when you want to use it, issue import-module pscx.

    Read the release notes for more details.