10 people following this project (follow)

About the PowerShell Proxy Extensions Module

A powerful module that leverages proxy functions and makes it easier than ever to create these powerful extensions to PowerShell. The module allows you to create everything from very simple proxy functions that extend PowerShell to more complex proxy functions that override and extend existing cmdlets.

The module can be installed automatically by downloading the MSI package or manually by downloading a ZIP file. The MSI package will install the module under your Documents folder (%USERPROFILE%\Documents\WindowsPowerShell\Modules\pspx). The ZIP file contains the module files only and you need to extract its content to one of two places:
  1. %USERPROFILE%\Documents\WindowsPowerShell\Modules
  2. %WINDIR%\System32\WindowsPowerShell\v1.0\Modules (need admin privileges)
  3. If the directory tree (of one of the above) doesn't exist then you should manually create it.

Prerequisites

Windows PowerShell 2.0 http://support.microsoft.com/kb/968929


How to use the module

Check if the module is installed correctly, from your PowerShell session type:

PS > Get-Module -Name PSPX -ListAvailable

ModuleType Name ExportedCommands
---------- ---- ----------------
Manifest   pspx




If you don't see the above result then the module was not installed correctly. If you choose to download and install the module manually (zip file), make sure the module directory exists under "%USERPROFILE%\Documents\WindowsPowerShell\Modules"

Importing the module

PS > Import-Module PSPX

# Get a list of module exported commands.
PS > Get-Command -Module PSPX | Format-Table CommandType,Name

CommandType     Name
-----------     ----
Alias           ...
Function        Export-Csv
Alias           Fix-It
Function        Get-ChildItem
Function        Get-Help
Function        Get-MamlHelp
Function        Get-ProxyFunction
Function        Get-PSCallStack
Function        Get-Service
Alias           gpx
Function        help
Function        New-ProxyFunction
Alias           npx
Alias           prop
Alias           proxy
Function        Select-Property



Last edited Oct 18 2011 at 6:58 AM by Shay, version 12