Adding the Vexasoft Cmdlets to an existing PowerShell shortcut

Once the Cmdlet Library has been installed on a computer, the Vexasoft Cmdlets can added to any PowerShell shortcut so that the cmdlets are loaded as PowerShell starts up. To do this, you must append the following line to the Target field in the Properties of your PowerShell shortcut:

-Command &{Import-Module VexasoftCmdletLibrary}

After which the target line for your shortcut should be similar to:

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoExit -Command &{Import-Module VexasoftCmdletLibrary}

Once this has been done the Vexasoft Cmdlets will be added to the session at startup every time the shortcut is used, in the same way as if you had run the 'PowerShell with Vexasoft Cmdlets' shortcut.

Applies to: Windows XP, Windows 2003, Windows 2003 R2, Windows Vista, Windows 2008 (excluding Core), Windows 2008 R2 (all editions), Windows 7, Windows 8, Windows Server 2012