How To Install PowerShell CodePlex Modules
The CodePlex extensions are a collection of scripts developed by members of the PowerShell community. Their mission is to extend PowerShell capabilities by providing extra cmdlets and functions.
Topics For PowerShell CodePlex Extensions
- Installing CodePlex for PowerShell
- Check The Installed CodePlex Module
- Here is a List of CodePlex Cmdlets
♣
Installing CodePlex for PowerShell
Installing the CodePlex extensions was one of the trickiest jobs I have tackled for a while. Most of the problem was down to my gung-ho approach. I am so used to one click and setup that omitted to follow the instructions in the Release Notes – T o t h e l e t t e r.
My username is Guy. I had to go my personal Documents folder, WindowsPowerShell, then create a folder called ‘Modules’. Then I had to ‘Unblock’ the zip file (crucial step), right-click, Properties, check the box in the bottom right corner. Next I had to extract the files into this location:
Guy\My Documents\WindowsPowerShell\Modules\
Phew, from here it was easy! Over to PowerShell itself.
# Command to get the PowerShell CodePlex 2.0 modules
# Note the spelling PSCX (Not psXC)
Import-Module Pscx
# Also
# Import-Module Pscx -arg ~\Pscx.UserPreferences.ps1
Note 1: PSCX requires PowerShell 2.0.
Edit Profile.ps1
Problem: You have to run Import-Module Pscx every time your run PowerShell
Solution: Edit Profile.ps1. See more on PowerShell module directory.
Key Point: Locate the correct path to Profile.ps1
In my case it was: C:\Users\Guy\Documents\WindowsPowerShell
But you must substitute YOUR username for ‘Guy’.
You could also try
$Env:Home then navigate to: Documents\WindowsPowerShell
# Guy’s Sample Profiles.ps1
Set-Location e:\powershell\
Add-PSSnapin quest.activeroles.admanagement
Import-Module Pscx
#clear-PSAhost
# Welcome Message
$Guy = $env:Username.ToUpper()
Write-Host "You are now entering PowerShell: $Guy"
Note 2: See more on Profile.ps1
Check The Installed CodePlex Module
If you have troubleshoot the CodePlex installation, then try this:
# List CodePlex Cmdlets, Functions and Aliases
Clear-Host
Get-Command -module pscx
# Try this: (Remove # on next two lines)
# Clear-Host
# Get-Command -module pscx -commandType cmdlet
Note 3: As usual, the cmdlets have help files and examples.
Note 4: Try this: Get-Help About_pscx See more on importing PowerShell modules.
Guy Recommends: Free WMI Monitor for PowerShell
Windows Management Instrumentation (WMI) is one of the hidden treasures of Microsoft’s operating systems. Fortunately, SolarWinds have created a Free WMI Monitor so that you can discover these gems of performance information, and thus improve your PowerShell scripts.
Take the guess work out of which WMI counters to use when scripting the operating system, Active Directory, or Exchange Server. Give this WMI monitor a try – it’s free.
Download your free copy of WMI Monitor
Here is a List of CodePlex Cmdlets
I hope that you will find at least a handful of CodePlex cmdlets that are useful for your projects.
Join-String
New-Hardlink
New-Junction
New-MSMQueue
New-Shortcut
New-Symlink
Out-Clipboard
Ping-Host
Pop-EnvironmentBlock
Push-EnvironmentBlock
Read-Archive
Receive-MSMQueue
Remove-AlternateDataStream
Remove-MountPoint
Remove-ReparsePoint
Resolve-Host
Send-MSMQueue
Send-SmtpMail
Set-BitmapSize
Set-Clipboard
Set-FileTime
Set-ForegroundWindow
Set-PathVariable
Set-Privilege
Set-VolumeLabel
Skip-Object
Split-String
Start-TabExpansion
Stop-TerminalSession
Test-AlternateDataStream
Test-Assembly
Test-MSMQueue
Test-Script
Test-UserGroupMembership
Test-Xml
Unblock-File
Write-BZip2
Write-Clipboard
Write-GZip
Write-Tar
Write-Zip
Add-PathVariable
Clear-MSMQueue
ConvertFrom-Base64
ConvertTo-Base64
ConvertTo-MacOs9LineEnding
ConvertTo-Metric
ConvertTo-UnixLineEnding
ConvertTo-WindowsLineEnding
Convert-Xml
Disconnect-TerminalSession
Expand-Archive
Export-Bitmap
Format-Byte
Format-Hex
Format-Xml
Get-ADObject
Get-AdoConnection
Get-AdoDataProvider
Get-AlternateDataStream
Get-Clipboard
Get-DhcpServer
Get-DomainController
Get-DriveInfo
Get-EnvironmentBlock
Get-FileTail
Get-FileVersionInfo
Get-ForegroundWindow
Get-Hash
Get-HttpResource
Get-LoremIpsum
Get-MountPoint
Get-MSMQueue
Get-OpticalDriveInfo
Get-PathVariable
Get-PEHeader
Get-Privilege
Get-PSSnapinHelp
Get-ReparsePoint
Get-ShortPath
Get-TabExpansion
Get-TerminalSession
Get-TypeName
Get-Uptime
Import-Bitmap
Invoke-AdoCommand
Invoke-Apartment
See more examples of Import-Module »
Summary of PowerShell CodePlex Extras
The CodePlex extensions are a collection of cmdlets and functions developed by members of the PowerShell community. The secret of installing the CodePlex module is to read the release notes, then follow their instructions to the letter.
If you like this page then please share it with your friends
See more PowerShell QAD Scripts
• PowerShell Home • Quest QAD • QADUser • QADGroup • QADComputer
• Export-CSV • Import CSV • QAD Password • Add-PSSnapin • Free Import User CSVDE Tool
• Get-AdUser -filter • Windows PowerShell • Windows PowerShell .Net
Please email me if you have a better example script. Also please report any factual mistakes, grammatical errors or broken links, I will be happy to correct the fault.