Forum Discussion
Unofficial PowerShell module for SharePoint 2019
When I was at #ESPC18, someone on stage said that he's missing the Module version of the Microsoft.SharePoint.PowerShell PSSnapin.
With a module we could leverage the auto-load capabilities of PowerShell. And never see this error message again what we all saw so many times:
The term 'Get-SPSite' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
I started thinking and when I got home from the conference I created and published a module for SharePoint Server 2019 to provide the auto-load capabilities.
https://www.powershellgallery.com/packages/SharePoint2019Commands
What do you think, will you use it?
2 Replies
- Not sure why one wouldn't just run the SharePoint Management Shell :-)
You're right, usually that works, but we're humans.. one months later after I published this module, during a farm build I used the regular PowerShell and I got the error :-)