<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Alpesh Nakar&#039;s Blog &#187; Scripts</title>
	<atom:link href="http://alpesh.nakars.com/blog/category/sharepoint/scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://alpesh.nakars.com/blog</link>
	<description>SharePoint Consultant&#039;s Notes From The Field</description>
	<lastBuildDate>Tue, 27 Mar 2012 00:00:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>PowerShell Script To Change Managed Account Password</title>
		<link>http://alpesh.nakars.com/blog/powershell-script-to-change-managed-account-password/</link>
		<comments>http://alpesh.nakars.com/blog/powershell-script-to-change-managed-account-password/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 13:59:00 +0000</pubDate>
		<dc:creator>Alpesh</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Administrator]]></category>
		<category><![CDATA[SP2010 PowerShell]]></category>

		<guid isPermaLink="false">http://alpesh.nakars.com/blog/powershell-script-to-change-managed-account-password/</guid>
		<description><![CDATA[<p>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 [...]</p><p><a href="http://alpesh.nakars.com/blog/powershell-script-to-change-managed-account-password/">PowerShell Script To Change Managed Account Password</a> was published on <a href="http://alpesh.nakars.com/blog">Alpesh Nakar&#039;s Blog</a> </br>
<p>

<a href="http://www.anrdoezrs.net/7t75y1A719PVTSYYVQPRQVTZVSX" target="_blank" onmouseover="window.status='http://www.ZAGG.com';return true;" onmouseout="window.status=' ';return true;">Scratch Proof your iPhone. Buy the invisibleSHIELD. Lifetime Guarantee.</a><img src="http://www.awltovhc.com/3566xjnbhf0643996102164A638" width="1" height="1" border="0"/>	
</p></p>
Related posts:<ol>
<li><a href='http://alpesh.nakars.com/blog/sharepoint-change-service-account-passwords/' rel='bookmark' title='SharePoint: Change Service Account Passwords'>SharePoint: Change Service Account Passwords</a></li>
<li><a href='http://alpesh.nakars.com/blog/access-denied-in-sharepoint/' rel='bookmark' title='SharePointv2: Access Denied After Changing AD Password'>SharePointv2: Access Denied After Changing AD Password</a></li>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-change-sharepoint-diagnostic-log-file-location/' rel='bookmark' title='PowerShell To Change SharePoint Diagnostic Log File Location'>PowerShell To Change SharePoint Diagnostic Log File Location</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>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.</p>
<p>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 to change the password (map this scenario to MOSS 2007 or WSSv3). With managed accounts associated with application pools, it was a matter of changing the password for the managed account and it would ‘cascade’ down…</p>
<p><span id="more-2064"></span></p>
<p>If you have seen my <a href="http://www.alpesh.nakars.com/blog/reimaging-sharepoint-vms-on-the-fly/" target="_blank">re-imaging VMs on the fly series</a>, you would have seen that I am not using one service account in my SharePoint virtual development environment!</p>
<p>To update the password from the Central Administration GUI &gt; Security &gt; General Security &gt; Configure Managed Accounts and click edit on the relevant managed account and then select Change password now and then select Use existing password. Enter the password that was entered in AD and click OK.</p>
<p><a href="http://img.nakars.com/anblog/image2.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="image" src="http://img.nakars.com/anblog/image_thumb2.png" alt="image" width="658" height="392" border="0" /></a></p>
<p>However, in a situation where I had 5 farms and 8 managed accounts per farm, it would mean I would be clicking 40 times at least to get this job done… ( not accounting for the clicks listed in the steps above )</p>
<p>So, I decided to get my hands dirty with PowerShell! Here is the script to use an ‘existing password’ from the active directory (after it has been changed in the ADS) for my managed account that I am using for all my demo web applications</p>
<p>#Set Execution Policy<br />
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -force</p>
<p>#Import SharePoint Module<br />
Add-PSSnapin Microsoft.SharePoint.PowerShell -EA silentlycontinue</p>
<p>$m = Get-SPManagedAccount -Identity &#8220;sharepoint\sa-spcontent&#8221;</p>
<p>Set-SPManagedAccount -Identity $m  -ExistingPassword (ConvertTo-SecureString &#8220;pass@word2&#8243; -AsPlainText -force) –confirm</p>
<p>iisreset</p>
<p>PowerShell experts, your feedback will be highly appreciated!</p>
<p>This script got the job done, but if there are better ways of doing this, suggestions welcome.</p>
<p>Related posts:</p><ol>
<li><a href='http://alpesh.nakars.com/blog/sharepoint-change-service-account-passwords/' rel='bookmark' title='SharePoint: Change Service Account Passwords'>SharePoint: Change Service Account Passwords</a></li>
<li><a href='http://alpesh.nakars.com/blog/access-denied-in-sharepoint/' rel='bookmark' title='SharePointv2: Access Denied After Changing AD Password'>SharePointv2: Access Denied After Changing AD Password</a></li>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-change-sharepoint-diagnostic-log-file-location/' rel='bookmark' title='PowerShell To Change SharePoint Diagnostic Log File Location'>PowerShell To Change SharePoint Diagnostic Log File Location</a></li>
</ol><p><a href="http://alpesh.nakars.com/blog/powershell-script-to-change-managed-account-password/">PowerShell Script To Change Managed Account Password</a> was published on <a href="http://alpesh.nakars.com/blog">Alpesh Nakar&#039;s Blog</a> </br>
<p>

<a href="http://www.anrdoezrs.net/7t75y1A719PVTSYYVQPRQVTZVSX" target="_blank" onmouseover="window.status='http://www.ZAGG.com';return true;" onmouseout="window.status=' ';return true;">Scratch Proof your iPhone. Buy the invisibleSHIELD. Lifetime Guarantee.</a><img src="http://www.awltovhc.com/3566xjnbhf0643996102164A638" width="1" height="1" border="0"/>	
</p></p>]]></content:encoded>
			<wfw:commentRss>http://alpesh.nakars.com/blog/powershell-script-to-change-managed-account-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Create SharePoint 2010 Site Collection In Its Own DB</title>
		<link>http://alpesh.nakars.com/blog/how-to-create-sharepoint-2010-site-collection-in-its-own-db/</link>
		<comments>http://alpesh.nakars.com/blog/how-to-create-sharepoint-2010-site-collection-in-its-own-db/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 02:54:38 +0000</pubDate>
		<dc:creator>Alpesh</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Scripts]]></category>
		<category><![CDATA[SP2010 Admin]]></category>
		<category><![CDATA[SP2010 PowerShell]]></category>

		<guid isPermaLink="false">http://www.alpesh.nakars.com/blog/?p=1781</guid>
		<description><![CDATA[<p>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! [...]</p><p><a href="http://alpesh.nakars.com/blog/how-to-create-sharepoint-2010-site-collection-in-its-own-db/">How To Create SharePoint 2010 Site Collection In Its Own DB</a> was published on <a href="http://alpesh.nakars.com/blog">Alpesh Nakar&#039;s Blog</a> </br>
<p>

<a href="http://www.anrdoezrs.net/7t75y1A719PVTSYYVQPRQVTZVSX" target="_blank" onmouseover="window.status='http://www.ZAGG.com';return true;" onmouseout="window.status=' ';return true;">Scratch Proof your iPhone. Buy the invisibleSHIELD. Lifetime Guarantee.</a><img src="http://www.awltovhc.com/3566xjnbhf0643996102164A638" width="1" height="1" border="0"/>	
</p></p>
Related posts:<ol>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-create-a-new-site-collection/' rel='bookmark' title='PowerShell To Create a New Site Collection'>PowerShell To Create a New Site Collection</a></li>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-delete-site-collection/' rel='bookmark' title='PowerShell To Delete Site Collection'>PowerShell To Delete Site Collection</a></li>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-add-secondary-site-collection-admin/' rel='bookmark' title='PowerShell To Add Secondary Site Collection Admin'>PowerShell To Add Secondary Site Collection Admin</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>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!</p>
<p>Well, that’s not news to all of us in the SharePoint World! Is it?</p>
<p>  <span id="more-1781"></span>
<p>It’s back to the command line to create a SharePoint site collection in it’s own database, just like the good old SharePoint 2007 days! The only big change for good being SharePoint 2010 Management Shell aka Windows PowerShell and no more STSADM.</p>
<p>So here we go &#8211; </p>
<p>You need to create a new content database for the web application and then you create a new site collection in that content database.</p>
<p>$w = get-spwebapplication</p>
<p>New-SPContentDatabase &quot;DemoContentDB&quot; -DatabaseServer &quot;SQL\SERVER&quot; -WebApplication $w</p>
<p>New-SPSite <a href="http://justsharepoint.com/teams/demo">http://justsharepoint.com/teams/demo</a> -OwnerAlias justsharepoint\alpesh -Name &quot;Demo Site&quot; -Template &quot;STS#0&quot;</p>
<p>&#160;</p>
<p>Key:</p>
<p>Teams is a managed path</p>
<p>Template is the default Team Site </p>
<p>Database Server SQL</p>
<p>Database Instance SERVER</p>
<p>&#160;</p>
<p>That’s it! One more small script to add to my arsenal of PowerShell scripts, as I keep learning bits of this powerful method to deploy and manage SharePoint 2010.</p>
<p>I have few short PowerShell scripts – that I hope to share in the days to come. Feedback and comments [especially on PowerShell or otherwise] always welcome!</p>
<p>Before I signoff, don’t forget to sign up for the newsletter to go into the raffle to win a SharePoint 2010 book!</p>
<p>Related posts:</p><ol>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-create-a-new-site-collection/' rel='bookmark' title='PowerShell To Create a New Site Collection'>PowerShell To Create a New Site Collection</a></li>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-delete-site-collection/' rel='bookmark' title='PowerShell To Delete Site Collection'>PowerShell To Delete Site Collection</a></li>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-add-secondary-site-collection-admin/' rel='bookmark' title='PowerShell To Add Secondary Site Collection Admin'>PowerShell To Add Secondary Site Collection Admin</a></li>
</ol><p><a href="http://alpesh.nakars.com/blog/how-to-create-sharepoint-2010-site-collection-in-its-own-db/">How To Create SharePoint 2010 Site Collection In Its Own DB</a> was published on <a href="http://alpesh.nakars.com/blog">Alpesh Nakar&#039;s Blog</a> </br>
<p>

<a href="http://www.anrdoezrs.net/7t75y1A719PVTSYYVQPRQVTZVSX" target="_blank" onmouseover="window.status='http://www.ZAGG.com';return true;" onmouseout="window.status=' ';return true;">Scratch Proof your iPhone. Buy the invisibleSHIELD. Lifetime Guarantee.</a><img src="http://www.awltovhc.com/3566xjnbhf0643996102164A638" width="1" height="1" border="0"/>	
</p></p>]]></content:encoded>
			<wfw:commentRss>http://alpesh.nakars.com/blog/how-to-create-sharepoint-2010-site-collection-in-its-own-db/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>PowerShell To Change SharePoint Diagnostic Log File Location</title>
		<link>http://alpesh.nakars.com/blog/powershell-to-change-sharepoint-diagnostic-log-file-location/</link>
		<comments>http://alpesh.nakars.com/blog/powershell-to-change-sharepoint-diagnostic-log-file-location/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 23:30:00 +0000</pubDate>
		<dc:creator>Alpesh</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SP2010 PowerShell]]></category>

		<guid isPermaLink="false">http://www.alpesh.nakars.com/blog/powershell-to-change-sharepoint-diagnostic-log-file-location/</guid>
		<description><![CDATA[<p>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\ Related posts: PowerShell To List Site Template Microsoft Diagnostic Tools SharePoint Error 6482 &#8211; Related to Hosts File</p><p><a href="http://alpesh.nakars.com/blog/powershell-to-change-sharepoint-diagnostic-log-file-location/">PowerShell To Change SharePoint Diagnostic Log File Location</a> was published on <a href="http://alpesh.nakars.com/blog">Alpesh Nakar&#039;s Blog</a> </br>
<p>

<a href="http://www.anrdoezrs.net/7t75y1A719PVTSYYVQPRQVTZVSX" target="_blank" onmouseover="window.status='http://www.ZAGG.com';return true;" onmouseout="window.status=' ';return true;">Scratch Proof your iPhone. Buy the invisibleSHIELD. Lifetime Guarantee.</a><img src="http://www.awltovhc.com/3566xjnbhf0643996102164A638" width="1" height="1" border="0"/>	
</p></p>
Related posts:<ol>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-list-site-template/' rel='bookmark' title='PowerShell To List Site Template'>PowerShell To List Site Template</a></li>
<li><a href='http://alpesh.nakars.com/blog/microsoft-diagnostic-tools/' rel='bookmark' title='Microsoft Diagnostic Tools'>Microsoft Diagnostic Tools</a></li>
<li><a href='http://alpesh.nakars.com/blog/error-6482-access-to-the-path-denied/' rel='bookmark' title='SharePoint Error 6482 &#8211; Related to Hosts File'>SharePoint Error 6482 &#8211; Related to Hosts File</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The following PowerShell cmdlet will get all the diagnostic configuration values</p>
<p>Get-SPDiagnosticConfig</p>
<p><a href="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image0012.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image001" border="0" alt="clip_image001" src="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image001_thumb2.png" width="500" height="324" /></a></p>
<p>If you want to change the location of your diagnostic configuration log use the following PowerShell cmdlet</p>
<p>Set-SPDiagnosticConfig -LogLocation D:\SharePointLogs\</p>
<p>Related posts:</p><ol>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-list-site-template/' rel='bookmark' title='PowerShell To List Site Template'>PowerShell To List Site Template</a></li>
<li><a href='http://alpesh.nakars.com/blog/microsoft-diagnostic-tools/' rel='bookmark' title='Microsoft Diagnostic Tools'>Microsoft Diagnostic Tools</a></li>
<li><a href='http://alpesh.nakars.com/blog/error-6482-access-to-the-path-denied/' rel='bookmark' title='SharePoint Error 6482 &#8211; Related to Hosts File'>SharePoint Error 6482 &#8211; Related to Hosts File</a></li>
</ol><p><a href="http://alpesh.nakars.com/blog/powershell-to-change-sharepoint-diagnostic-log-file-location/">PowerShell To Change SharePoint Diagnostic Log File Location</a> was published on <a href="http://alpesh.nakars.com/blog">Alpesh Nakar&#039;s Blog</a> </br>
<p>

<a href="http://www.anrdoezrs.net/7t75y1A719PVTSYYVQPRQVTZVSX" target="_blank" onmouseover="window.status='http://www.ZAGG.com';return true;" onmouseout="window.status=' ';return true;">Scratch Proof your iPhone. Buy the invisibleSHIELD. Lifetime Guarantee.</a><img src="http://www.awltovhc.com/3566xjnbhf0643996102164A638" width="1" height="1" border="0"/>	
</p></p>]]></content:encoded>
			<wfw:commentRss>http://alpesh.nakars.com/blog/powershell-to-change-sharepoint-diagnostic-log-file-location/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Help! Farm Admin cannot execute cmdlets in SP 2010 Management Shell</title>
		<link>http://alpesh.nakars.com/blog/powershell-to-give-farm-admin-shell-admin-access/</link>
		<comments>http://alpesh.nakars.com/blog/powershell-to-give-farm-admin-shell-admin-access/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 23:30:00 +0000</pubDate>
		<dc:creator>Alpesh</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SP2010 PowerShell]]></category>

		<guid isPermaLink="false">http://www.alpesh.nakars.com/blog/powershell-to-give-farm-admin-shell-admin-access/</guid>
		<description><![CDATA[<p>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 [...]</p><p><a href="http://alpesh.nakars.com/blog/powershell-to-give-farm-admin-shell-admin-access/">Help! Farm Admin cannot execute cmdlets in SP 2010 Management Shell</a> was published on <a href="http://alpesh.nakars.com/blog">Alpesh Nakar&#039;s Blog</a> </br>
<p>

<a href="http://www.anrdoezrs.net/7t75y1A719PVTSYYVQPRQVTZVSX" target="_blank" onmouseover="window.status='http://www.ZAGG.com';return true;" onmouseout="window.status=' ';return true;">Scratch Proof your iPhone. Buy the invisibleSHIELD. Lifetime Guarantee.</a><img src="http://www.awltovhc.com/3566xjnbhf0643996102164A638" width="1" height="1" border="0"/>	
</p></p>
Related posts:<ol>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-add-secondary-site-collection-admin/' rel='bookmark' title='PowerShell To Add Secondary Site Collection Admin'>PowerShell To Add Secondary Site Collection Admin</a></li>
<li><a href='http://alpesh.nakars.com/blog/bangalore-sharepoint-ignite/' rel='bookmark' title='Bangalore SharePoint Ignite'>Bangalore SharePoint Ignite</a></li>
<li><a href='http://alpesh.nakars.com/blog/sharepoint-change-service-account-passwords/' rel='bookmark' title='SharePoint: Change Service Account Passwords'>SharePoint: Change Service Account Passwords</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>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 cannot do via the Central Administration GUI and for which you will require Shell Admin Access.</p>
<h3>List who has SP Shell Admin Access</h3>
<p>Before you get started with addition, it would be good to check who has Shell Admin access using the following PowerShell cmdlet</p>
<p>get-spshelladmin</p>
<p><a href="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image0011.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image001" border="0" alt="clip_image001" src="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image001_thumb1.png" width="500" height="125" /></a></p>
<p>Let’s check who is in the farm administrator group for <a href="http://server">http://server</a></p>
<p><a href="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image0022.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image002_thumb2.png" width="500" height="382" /></a></p>
<p>Even though I am a farm administrator, I could not use SharePoint Management Shell to get a list of users who have SPShellAdmin access.</p>
<p><a href="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image0032.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image003" border="0" alt="clip_image003" src="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image003_thumb2.png" width="500" height="140" /></a></p>
<h3>Give user SP Shell Admin Access</h3>
<p>To add a user as Shell Admin, use the following PowerShell cmdlet (logged in as the account that has SPShellAdmin access)</p>
<p>Add-SPShellAdmin -username alpesh </p>
<p>Or simply type Add-SpShellAdmin and press enter. You will be prompted to enter the username! Then type get-spshelladmin to see if you have successfully added the user as SPShellAdmin</p>
<p><a href="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image0042.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image004" border="0" alt="clip_image004" src="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image004_thumb2.png" width="500" height="138" /></a></p>
<p>&#160;</p>
<h3>Remove SP Shell Admin Access for a user</h3>
<p>To remove a user as Shell Admin, use the following PowerShell cmdlet</p>
<p>Remove-SPShellAdmin –username alpesh </p>
<p>Or</p>
<p>Or simply type Remove-SPShellAdmin and press enter. You will be prompted to enter the username!</p>
<p><a href="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image005.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image005" border="0" alt="clip_image005" src="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image005_thumb.png" width="500" height="133" /></a></p>
<p>Related posts:</p><ol>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-add-secondary-site-collection-admin/' rel='bookmark' title='PowerShell To Add Secondary Site Collection Admin'>PowerShell To Add Secondary Site Collection Admin</a></li>
<li><a href='http://alpesh.nakars.com/blog/bangalore-sharepoint-ignite/' rel='bookmark' title='Bangalore SharePoint Ignite'>Bangalore SharePoint Ignite</a></li>
<li><a href='http://alpesh.nakars.com/blog/sharepoint-change-service-account-passwords/' rel='bookmark' title='SharePoint: Change Service Account Passwords'>SharePoint: Change Service Account Passwords</a></li>
</ol><p><a href="http://alpesh.nakars.com/blog/powershell-to-give-farm-admin-shell-admin-access/">Help! Farm Admin cannot execute cmdlets in SP 2010 Management Shell</a> was published on <a href="http://alpesh.nakars.com/blog">Alpesh Nakar&#039;s Blog</a> </br>
<p>

<a href="http://www.anrdoezrs.net/7t75y1A719PVTSYYVQPRQVTZVSX" target="_blank" onmouseover="window.status='http://www.ZAGG.com';return true;" onmouseout="window.status=' ';return true;">Scratch Proof your iPhone. Buy the invisibleSHIELD. Lifetime Guarantee.</a><img src="http://www.awltovhc.com/3566xjnbhf0643996102164A638" width="1" height="1" border="0"/>	
</p></p>]]></content:encoded>
			<wfw:commentRss>http://alpesh.nakars.com/blog/powershell-to-give-farm-admin-shell-admin-access/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell To List Site Template</title>
		<link>http://alpesh.nakars.com/blog/powershell-to-list-site-template/</link>
		<comments>http://alpesh.nakars.com/blog/powershell-to-list-site-template/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 23:30:00 +0000</pubDate>
		<dc:creator>Alpesh</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SP2010 PowerShell]]></category>

		<guid isPermaLink="false">http://www.alpesh.nakars.com/blog/powershell-to-list-site-template/</guid>
		<description><![CDATA[<p>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 [...]</p><p><a href="http://alpesh.nakars.com/blog/powershell-to-list-site-template/">PowerShell To List Site Template</a> was published on <a href="http://alpesh.nakars.com/blog">Alpesh Nakar&#039;s Blog</a> </br>
<p>

<a href="http://www.anrdoezrs.net/7t75y1A719PVTSYYVQPRQVTZVSX" target="_blank" onmouseover="window.status='http://www.ZAGG.com';return true;" onmouseout="window.status=' ';return true;">Scratch Proof your iPhone. Buy the invisibleSHIELD. Lifetime Guarantee.</a><img src="http://www.awltovhc.com/3566xjnbhf0643996102164A638" width="1" height="1" border="0"/>	
</p></p>
Related posts:<ol>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-list-feature-definitions/' rel='bookmark' title='PowerShell To List Feature Definitions'>PowerShell To List Feature Definitions</a></li>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-delete-site-collection/' rel='bookmark' title='PowerShell To Delete Site Collection'>PowerShell To Delete Site Collection</a></li>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-create-a-new-site-collection/' rel='bookmark' title='PowerShell To Create a New Site Collection'>PowerShell To Create a New Site Collection</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>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.</p>
<p>To get a list of all globally installed site templates use the following PowerShell cmdlet</p>
<p>get-spwebtemplate </p>
<p><a href="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image001.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image001" border="0" alt="clip_image001" src="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image001_thumb.png" width="500" height="552" /></a></p>
<p>To get the basic information about all the STS template, use the following PowerShell cmdlet</p>
<p>get-spwebtemplate “STS*”</p>
<p><a href="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image0021.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image002_thumb1.png" width="500" height="112" /></a></p>
<p>To get the basic information about all the SPS template, use the following PowerShell cmdlet</p>
<p>get-spwebtemplate “SPS*”</p>
<p><a href="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image0031.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image003" border="0" alt="clip_image003" src="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image003_thumb1.png" width="500" height="193" /></a></p>
<p>Related posts:</p><ol>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-list-feature-definitions/' rel='bookmark' title='PowerShell To List Feature Definitions'>PowerShell To List Feature Definitions</a></li>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-delete-site-collection/' rel='bookmark' title='PowerShell To Delete Site Collection'>PowerShell To Delete Site Collection</a></li>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-create-a-new-site-collection/' rel='bookmark' title='PowerShell To Create a New Site Collection'>PowerShell To Create a New Site Collection</a></li>
</ol><p><a href="http://alpesh.nakars.com/blog/powershell-to-list-site-template/">PowerShell To List Site Template</a> was published on <a href="http://alpesh.nakars.com/blog">Alpesh Nakar&#039;s Blog</a> </br>
<p>

<a href="http://www.anrdoezrs.net/7t75y1A719PVTSYYVQPRQVTZVSX" target="_blank" onmouseover="window.status='http://www.ZAGG.com';return true;" onmouseout="window.status=' ';return true;">Scratch Proof your iPhone. Buy the invisibleSHIELD. Lifetime Guarantee.</a><img src="http://www.awltovhc.com/3566xjnbhf0643996102164A638" width="1" height="1" border="0"/>	
</p></p>]]></content:encoded>
			<wfw:commentRss>http://alpesh.nakars.com/blog/powershell-to-list-site-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell To List Service Applications</title>
		<link>http://alpesh.nakars.com/blog/powershell-to-list-service-applications/</link>
		<comments>http://alpesh.nakars.com/blog/powershell-to-list-service-applications/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 23:30:00 +0000</pubDate>
		<dc:creator>Alpesh</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SP2010 PowerShell]]></category>

		<guid isPermaLink="false">http://www.alpesh.nakars.com/blog/powershell-to-list-service-applications/</guid>
		<description><![CDATA[<p>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 [...]</p><p><a href="http://alpesh.nakars.com/blog/powershell-to-list-service-applications/">PowerShell To List Service Applications</a> was published on <a href="http://alpesh.nakars.com/blog">Alpesh Nakar&#039;s Blog</a> </br>
<p>

<a href="http://www.anrdoezrs.net/7t75y1A719PVTSYYVQPRQVTZVSX" target="_blank" onmouseover="window.status='http://www.ZAGG.com';return true;" onmouseout="window.status=' ';return true;">Scratch Proof your iPhone. Buy the invisibleSHIELD. Lifetime Guarantee.</a><img src="http://www.awltovhc.com/3566xjnbhf0643996102164A638" width="1" height="1" border="0"/>	
</p></p>
Related posts:<ol>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-retrieve-list-of-web-application/' rel='bookmark' title='PowerShell To Retrieve List of Web Application'>PowerShell To Retrieve List of Web Application</a></li>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-list-feature-definitions/' rel='bookmark' title='PowerShell To List Feature Definitions'>PowerShell To List Feature Definitions</a></li>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-retrieve-all-site-collections-for-web-application/' rel='bookmark' title='PowerShell To Retrieve All Site Collections for Web Application'>PowerShell To Retrieve All Site Collections for Web Application</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>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.</p>
<p>Get-SPServiceApplication cmdlet lists all service applications in a farm with their Display Name, TypeName and ID</p>
<p><a href="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image0021.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image002_thumb1.jpg" width="475" height="201" /></a></p>
<p>Now type the same command piped with Select Id, Name to get these results</p>
<p><a href="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image004.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image004" border="0" alt="clip_image004" src="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image004_thumb.jpg" width="481" height="201" /></a></p>
<p>Related posts:</p><ol>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-retrieve-list-of-web-application/' rel='bookmark' title='PowerShell To Retrieve List of Web Application'>PowerShell To Retrieve List of Web Application</a></li>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-list-feature-definitions/' rel='bookmark' title='PowerShell To List Feature Definitions'>PowerShell To List Feature Definitions</a></li>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-retrieve-all-site-collections-for-web-application/' rel='bookmark' title='PowerShell To Retrieve All Site Collections for Web Application'>PowerShell To Retrieve All Site Collections for Web Application</a></li>
</ol><p><a href="http://alpesh.nakars.com/blog/powershell-to-list-service-applications/">PowerShell To List Service Applications</a> was published on <a href="http://alpesh.nakars.com/blog">Alpesh Nakar&#039;s Blog</a> </br>
<p>

<a href="http://www.anrdoezrs.net/7t75y1A719PVTSYYVQPRQVTZVSX" target="_blank" onmouseover="window.status='http://www.ZAGG.com';return true;" onmouseout="window.status=' ';return true;">Scratch Proof your iPhone. Buy the invisibleSHIELD. Lifetime Guarantee.</a><img src="http://www.awltovhc.com/3566xjnbhf0643996102164A638" width="1" height="1" border="0"/>	
</p></p>]]></content:encoded>
			<wfw:commentRss>http://alpesh.nakars.com/blog/powershell-to-list-service-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell To List Feature Definitions</title>
		<link>http://alpesh.nakars.com/blog/powershell-to-list-feature-definitions/</link>
		<comments>http://alpesh.nakars.com/blog/powershell-to-list-feature-definitions/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 23:05:00 +0000</pubDate>
		<dc:creator>Alpesh</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SP2010 PowerShell]]></category>

		<guid isPermaLink="false">http://www.alpesh.nakars.com/blog/powershell-to-list-feature-definitions/</guid>
		<description><![CDATA[<p>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 [...]</p><p><a href="http://alpesh.nakars.com/blog/powershell-to-list-feature-definitions/">PowerShell To List Feature Definitions</a> was published on <a href="http://alpesh.nakars.com/blog">Alpesh Nakar&#039;s Blog</a> </br>
<p>

<a href="http://www.anrdoezrs.net/7t75y1A719PVTSYYVQPRQVTZVSX" target="_blank" onmouseover="window.status='http://www.ZAGG.com';return true;" onmouseout="window.status=' ';return true;">Scratch Proof your iPhone. Buy the invisibleSHIELD. Lifetime Guarantee.</a><img src="http://www.awltovhc.com/3566xjnbhf0643996102164A638" width="1" height="1" border="0"/>	
</p></p>
Related posts:<ol>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-retrieve-list-of-web-application/' rel='bookmark' title='PowerShell To Retrieve List of Web Application'>PowerShell To Retrieve List of Web Application</a></li>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-retrieve-all-site-collections-for-web-application/' rel='bookmark' title='PowerShell To Retrieve All Site Collections for Web Application'>PowerShell To Retrieve All Site Collections for Web Application</a></li>
<li><a href='http://alpesh.nakars.com/blog/how-to-synchronise-outlook-2007-rss-feed-subscriptions-with-common-feeds-list/' rel='bookmark' title='How To Synchronise Outlook 2007 RSS Feed Subscriptions with Common Feeds List'>How To Synchronise Outlook 2007 RSS Feed Subscriptions with Common Feeds List</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Get-spfeature gets the SharePoint features based on a given scope.</p>
<p>This cmdlet behaves differently at each scope, getting the enabled Features at each level. There are 4 levels of scope</p>
<p>· Farm</p>
<p>· WebApplication</p>
<p>· Site (Site Collection)</p>
<p>· Web (Site)</p>
<p>get-spfeature -farm (gets all the enabled Feature in the farm)</p>
<p>get-spfeature -webapplication http://server (gets all enabled the Features in the Web application)</p>
<p>get-spfeature -site http://server/sites/IT (gets all the enabled Features on the site collection)</p>
<p>get-spfeature -site -sandboxed (gets all installed the Feature definitions on the site)</p>
<p>get-spfeature -web (gets all the enabled Features in the Web)</p>
<p>If no scope is provided, all installed Features are returned.</p>
<p>get-spfeature (gets all the installed Feature definitions in the farm)</p>
<p><a href="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image002.jpg"><img style="display: inline; border-width: 0px;" title="clip_image002" src="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image002_thumb.jpg" border="0" alt="clip_image002" width="500" height="498" /></a></p>
<p>The list will scroll by so use any of the following commands</p>
<p>get-spfeature | more (using more command stops the list from scrolling to end)</p>
<p>get-spfeature |select displayname, scope (using select displayname, scope will remove the id column)</p>
<p>get-spfeature | sort scope | select displayname, scope | more (sort scope command will sort the feature based on their scope)</p>
<p><a href="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image003.png"><img style="display: inline; border-width: 0px;" title="clip_image003" src="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image003_thumb.png" border="0" alt="clip_image003" width="500" height="549" /></a></p>
<p>get-spfeature -Limit ALL | Where-Object {$_.Scope -eq &#8220;SITE&#8221;}</p>
<p>This will get a list of all installed &#8220;SITE&#8221; scoped Feature. Replace Site with Web or Farm to see the list</p>
<p><a href="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image0041.png"><img style="display: inline; border-width: 0px;" title="clip_image004" src="http://www.alpesh.nakars.com/blog/wp-content/uploads/2010/01/clip_image004_thumb1.png" border="0" alt="clip_image004" width="500" height="292" /></a></p>
<p>Related posts:</p><ol>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-retrieve-list-of-web-application/' rel='bookmark' title='PowerShell To Retrieve List of Web Application'>PowerShell To Retrieve List of Web Application</a></li>
<li><a href='http://alpesh.nakars.com/blog/powershell-to-retrieve-all-site-collections-for-web-application/' rel='bookmark' title='PowerShell To Retrieve All Site Collections for Web Application'>PowerShell To Retrieve All Site Collections for Web Application</a></li>
<li><a href='http://alpesh.nakars.com/blog/how-to-synchronise-outlook-2007-rss-feed-subscriptions-with-common-feeds-list/' rel='bookmark' title='How To Synchronise Outlook 2007 RSS Feed Subscriptions with Common Feeds List'>How To Synchronise Outlook 2007 RSS Feed Subscriptions with Common Feeds List</a></li>
</ol><p><a href="http://alpesh.nakars.com/blog/powershell-to-list-feature-definitions/">PowerShell To List Feature Definitions</a> was published on <a href="http://alpesh.nakars.com/blog">Alpesh Nakar&#039;s Blog</a> </br>
<p>

<a href="http://www.anrdoezrs.net/7t75y1A719PVTSYYVQPRQVTZVSX" target="_blank" onmouseover="window.status='http://www.ZAGG.com';return true;" onmouseout="window.status=' ';return true;">Scratch Proof your iPhone. Buy the invisibleSHIELD. Lifetime Guarantee.</a><img src="http://www.awltovhc.com/3566xjnbhf0643996102164A638" width="1" height="1" border="0"/>	
</p></p>]]></content:encoded>
			<wfw:commentRss>http://alpesh.nakars.com/blog/powershell-to-list-feature-definitions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

