I am developing in Sharepoint and I like more Windows Powershell than Sharepoint Management Shell. Every time I restart the development machine, I have to run Add-PSSnapin Microsoft.Sharepoint.Powershell
in order to use Sharepoint cmd-lets.
How to get the machine to automatically load Sharepoint snapin when I start Windows Powershell.
profile.ps1
inC:Users\you\Documents\WindowsPowerShell
. When you open powershell it will runprofile.ps1
automatically. TypeAdd-PSSnapin ....
to theprofile.ps1
. Note: You have to create the directoryWindowsPowerShell
in most cases – Kolob Canyon Oct 28 '16 at 18:47