Quantcast
Channel: Nico Martens – Blog by Nico Martens
Viewing all articles
Browse latest Browse all 13

Add-PSSnapIn Microsoft.SharePoint.PowerShell shortcut

$
0
0

Are you tired of typing Add-PSSnapIn Microsoft.SharePoint.PowerShell every time you open your PowerShell console?
You can do this by Adding/Editing profile.ps1 (I don’t do this because I have too many machines where I should change this)

If you find you do not want to change the profile.ps1 on every server you are working on, you can type this:

asnp *sh*

This adds all SnapIns that contain *sh*. In most cases, this will only add the Microsoft.SharePoint.PowerShell SnapIn.
Credits go to Koen Zomers!

Happy PowerShelling!

 



Viewing all articles
Browse latest Browse all 13

Latest Images

Trending Articles





Latest Images