I wanted to start out by saying that PowerShell 3 and ISE are just awesome. The Microsoft team did a great job on all fronts, including simply getting this tool to load so much faster in comparsion to previous versions. Because of this I’ve started to use PowerShell 3 ISE for all of my SharePoint scripting needs. I’m not really a fan of either: 1) Always having to write the Add-PSSnapin or 2) Including my script libraries, when I simply want to do some quick scripting with PowerShell against SharePoint. As a result I wanted to be able to have this Add-PSSnapin run for me everytime I opened up PowerShell 3 ISE. This isn’t that difficult to do at all. In fact it only takes a little copy and paste effort 🙂
Step 1:Browse to the PowerShell system folder
Step 2: Edit the Profile file
This should open up the file in PowerShell 3 ISE, if it is still set as the default for opening up .ps1 files
Step 3: Add the Add-PSSnapin code to the Profile file
Step 4: Close out of PowerShell 3 ISE
Step 5: Relaunch PowerShell 3 ISE