Users can create a PowerShell profile to set common PowerShell settings; such as automatically adding the JAMS PowerShell Module, 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 add the following to your Powershell Profile:
$JAMSDefaultServer = "LocalHost" Import-Module JAMS New-PSDrive JD JAMS Localhost ## For JAMS V5 Add-PSSnapin MVPSI.JAMS
This will ensure that every script ran on this machine, will have the JAMS module added to allow for the use of JAMS specific cmdlets.
By creating a JAMS specific PowerShell drive it allows users to navigate the logical folder structure of JAMS as though a user were navigating through the operation systems folders.
Users can easily navigate into respective JAMS Drive by simply typing in "CD JD:\" within PowerShell, or any of your scripts.