Monday 7 November 2011

PowerShell

PowerShell and SharePoint – Basic Concept

PowerShell offers a new ‘commandline’ interface allowing you to manage several different Microsoft products.

PowerShell offers options for both groups Administrators and Developers , so whether you want to automate and manage your SharePoint farm, or just quickly write an update script for your sites. PowerShell allows you to do both.

PowerShell is a commandline interpreter it looks like the old command tool (cmd.exe).

Advantage

1. Generate LINQ .CS file for the entire site using STSADM or PowerShell.

2. Disposing objects that will result in memory leaks

3. Windows PowerShell backup\restore scripts can be developed and scheduled (with Windows Task Scheduler).

4. Easy to create the production environment. Generate the scripts which will “Extract all the solution from farm” and “Import/deploy all the solution into another farm”.

5. You can convert a web application from Classic Mode Authentication to Claims Based Authentication. However, that can only be done using PowerShell commands.

6. PowerShell can be used locally on the server, but you can use it to issue remote commands, which is really handy if you want to retrieve information about another server in your SharePoint farm.

Technorati Tags:

No comments:

Post a Comment