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.
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
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
Guy
Recommends: WMI Monitor and It's Free!
Windows Management Instrumentation (WMI) is one of the hidden
treasures of Microsoft 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.
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
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.
Windows Management Instrumentation (WMI) is one of the hidden
treasures of Microsoft operating systems.
Fortunately, SolarWinds
have created the
Free WMI Monitor so that you can actually see and understand these gems of
performance information. Take the guess work out of which
WMI counters to use for applications like Microsoft Active Directory,
SQL or Exchange Server.