MVP Systems Software  
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




Rate this Article:

User Comments

Click to subscribe to comments RSS feed...
No Member Photo by DanielS posted Monday, September 12, 2011
Supreme Being with 159 recognition pointsSupreme Being with 159 recognition pointsSupreme Being with 159 recognition pointsSupreme Being with 159 recognition pointsSupreme Being with 159 recognition pointsSupreme Being with 159 recognition pointsSupreme Being with 159 recognition pointsSupreme Being with 159 recognition points
This comment was helpful. 0 This comment is not helpful.
For specifying the $JAMSDefaultServer, you can also use:

if (-not $JAMSBatchJob)

{

    $JAMSDefaultServer = "localhost"

}

Also see:

http://www.jamssupport.com/KnowledgebaseArticle50006.aspx


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 1,976 times.

Options