Skip to content

Commit

Permalink
Docs(Module) Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
SkillsAdm committed May 12, 2020
1 parent 105d228 commit 988be02
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,20 @@
# SharePoint2019Commands
PowerShell module to help you auto-load all SharePoint 2019 cmdlets

PowerShell module to help you auto-load all SharePoint 2019 cmdlets.

## Why, you may ask

The challenge we face with an out of the box SharePoint Server installation is that the SharePoint Management Shell is using a PSSnappin in the background.
And PSSnappins do not support PowerShell's module autoloading capabilities.

So we have two options, the first is if use SharePoint Management Shell, and the second is if we make sure that we run the following command: `Add-PSSnapin Microsoft.SharePoint.PowerShell` before we try to execute any of the SharePoint related cmdlets.

Or third, we can install the `SharePoint2019Commands` module from the PowerSHell Gallery and get module autoloading for SharePoint.

## Installation

We can install **SharePoint2019Commands** in two scopes: user level, or machine level.

To install on the user level execute this line: `Install-Module SharePoint2019Commands -Scope CurrentUser`

To install on the machine level, start the regular Windows PowerShell as Administrator and execute this line: `Install-Module SharePoint2019Commands`

0 comments on commit 988be02

Please sign in to comment.