Archive for the 'Scripts' Category

PowerShell Script To Change Managed Account Password

August 25th, 2011

Of all days in the week, on Sunday [August 21, 2011] I decided to tease my SharePoint 2010 development environment! I decided to change all the SharePoint 2010 Service Account(s)password. Thank you Microsoft for introducing the managed accounts, else I would be clicking away for a long time, having to go through each application pool [...]

Posted in Scripts, SharePoint 2010 | No Comments »

How To Create SharePoint 2010 Site Collection In Its Own DB

September 7th, 2010

Early this week on site deploying SharePoint 2010, the client wanted to create few site collections for their development team. He tried to create using the Central Administration and could not see any options for creating SharePoint site collections in their own databases! Well, that’s not news to all of us in the SharePoint World! [...]

Posted in HowTo, Scripts, SharePoint, SharePoint 2010 | 4 Comments »

PowerShell To Change SharePoint Diagnostic Log File Location

January 28th, 2010

The following PowerShell cmdlet will get all the diagnostic configuration values Get-SPDiagnosticConfig If you want to change the location of your diagnostic configuration log use the following PowerShell cmdlet Set-SPDiagnosticConfig -LogLocation D:\SharePointLogs\

Posted in Scripts, SharePoint, SharePoint 2010 | No Comments »

Help! Farm Admin cannot execute cmdlets in SP 2010 Management Shell

January 26th, 2010

In order to execute farm level cmdlets in SharePoint Management Shell you will need to be given Shell Admin access. Even if you are a farm administrator and you have not been given Shell Admin Access, then you won’t be able to execute farm administrative operation using PowerShell. There are lots of operations that you [...]

Posted in Scripts, SharePoint, SharePoint 2010 | No Comments »

PowerShell To List Site Template

January 21st, 2010

SharePoint 2010 Management Shell makes it easier to get a list of Site Templates installed in the farm and also creating sites using the names is straight forward. To get a list of all globally installed site templates use the following PowerShell cmdlet get-spwebtemplate To get the basic information about all the STS template, use [...]

Posted in Scripts, SharePoint, SharePoint 2010 | No Comments »

PowerShell To List Service Applications

January 19th, 2010

Service Applications is one of the newest additions in SharePoint 2010 arsenal of features. As again you can manage Service Applications via the SharePoint 2010 Management Shell. In the illustration under, you will see how we can get a list of Service Applications deployed. Get-SPServiceApplication cmdlet lists all service applications in a farm with their [...]

Posted in Scripts, SharePoint, SharePoint 2010 | No Comments »

PowerShell To List Feature Definitions

January 14th, 2010

Get-spfeature gets the SharePoint features based on a given scope. This cmdlet behaves differently at each scope, getting the enabled Features at each level. There are 4 levels of scope · Farm · WebApplication · Site (Site Collection) · Web (Site) get-spfeature -farm (gets all the enabled Feature in the farm) get-spfeature -webapplication http://server (gets [...]

Posted in Scripts, SharePoint, SharePoint 2010 | No Comments »