Here are some helpful powershell commands that I am afraid that I will forget:
This powershell command will install PowerShell ISE. A Pretty tool for editing powershell scripts:
Import-Module ServerManager;Add-WindowsFeature PowerShell-ISE
This powershell command will enable SharePoint commands:
Add-PsSnapin Microsoft.SharePoint.PowerShell
This command opens a new SPSite and root SPWeb
$spsite = new-object Microsoft.SharePoint.SPSite(“http://localhost”)
$spweb = $spsite.OpenWeb()
Tags: Powershell, SharePoint 2010
Leave a Reply