Search Wiki:

PowerShell Pack for SharePoint

A collection of PowerShell commands, functions, and scripts to help support your SharePoint environment

To install/use:

1. Download latest release of PowerShellPackForSharePoint.ps1 from the Downloads tab
2. Download and install PowerShell 1.0 or greater
3. Open PowerShell
4. Run the following command:

set-executionpolicy Unrestricted (this allows you to run scripts in PowerShell)

Batch File Approach (Manual)
a. Create a Windows Batch File (.bat)
b. Edit the batch file, Add the following command:

powershell.exe -noexit <path to ps1 script>

c. Run the batch file

Profile Approach (Automatic)
a. Open Powershell.exe
b. Run the following command: $profile (this will output the path to your profile script)
c. Open up notepad and save a new file with the filename provided in step "b" above.
d. Edit the file in notepad to include a call to the PowerShell Pack for SharePoint (just reference the location)

e. Re-open PowerShell (it will load the script each time powershell opens)

Use: get-help to display all of the variables and functions that are loaded by the script

Use: get-help <command> to display specific help details around a given function

Last edited Dec 19 2008 at 11:08 PM  by ekraus, version 13
Page view tracker