email us now

PowerShell Profile Settings

Expand / Collapse
 
     

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



Add Your Comments


Name: *
Email Address:
Web Address:
Verification Code:
*
 

Details
Last Modified:Friday, March 26, 2010
Last Modified By: SheilaE
Type: HOWTO
Rated 5 stars based on 1 vote.
Article has been viewed 492 times.
Options