PowerShell Profile Settings


You can define a PowerShell profile file to set common PowerShell settings, like automatically adding the JAMS PowerShell SnapIn, defining the JAMS PowerShell drive, or defining the default JAMS Server.

Create a text file in C:\Documents and Settings\Administrator\My Documents\WindowsPowerShell\ called Profile.ps1.

Then you can add settings like the following to your Powershell Profile:

$JAMSDefaultServer = "LocalHost"

Add-PSSnapin MVPSI.JAMS -ErrorAction SilentlyContinue

NEW-PSDrive JD JAMS Localhost



Posted Friday, December 18, 2009 by TonyC
http://www.jamssupport.com/KnowledgebaseArticle50086.aspx