Category «Scripting»

Create a new Sharepoint 2010 Web Application and Site collection using PowerShell

Microsoft Sharepoint 2010 is one of the new products which supports Windows Powershell commands. Its really easy to do the most tasks you do normally in the Sharepoint Central Administration with Powershell. Microsoft created a Powershell Snapin for Sharepoint 2010, which is called “Microsoft.Sharepoint.Powershell”. This enables a lot of new Powershell cmdlets for Sharepoint. With …

Manage SharePoint 2010 Services with PowerShell

As you may already know, you can use the “Manage Services on Server” option from Central Administration to centrally start and stop service instances across all SharePoint servers in your farm. An example of this administration page is shown below: The issue with this page is that it can be cumbersome to use if there …

Finding Site Template Names and Template ID’s in SharePoint 2010 using PowerShell

SharePoint 2010 includes the new Get-SPWebTemplate cmdlet for getting a list of site templates from the farm. You can use it by typing the following command (note that I am also sorting the table by template internal name): Get-SPWebTemplate | Sort-Object “Name”   This can be quite useful, especially if you want to use PowerShell …