Wednesday, August 31, 2011

PowerShell script to list all Webs and Site Templates

Today I wanted to know site templates of all webs with in a site collection. Easiest way to get this is via PowerShell.
Here is the PowerShell script to get all Webs within a SiteCollection and it prints Site Template name along with Title and URL. 
Just update $siteUrl and you are good to go.

$siteUrl = "http://myserver.com/"
$site = Get-SPSite $siteUrl
foreach ($web in $site.AllWebs) { 
            $web | Select-Object -Property Title, Url, WebTemplate 
}
$site.Dispose()

Sunday, August 28, 2011

SharePoint 2010 Best Practices on TechNet

Today while browsing for something I came across a series of best practices articles published on TechNet. It will really help us to design and operate a enterprise level SharePoint environment.
http://technet.microsoft.com/en-us/library/cc850682.aspx

Change User Password Via Remote Desktop

Recently i need to change my windows password when connected via Remote Desktop (RDP). Interesting part is under remote desktop you cannot hit CTRL+ALT+DEL to change password. So how can you change password, here are steps.
  1. Login into server over RDP session.
  2. Click on Start > Windows Security
  3. Click on the "Change Password" button.
  4. Now, enter your old password, then your new password twice in the respective fields.
  5. Finally, click "OK"
That's it. Password has been changed.