<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Use SharePoint 2010 PowerShell Cmdlets to Get and Manage Sites</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/09/21/use-sharepoint-2010-powershell-cmdlets-to-get-and-manage-sites.aspx</link><description>Summary : The Microsoft Scripting Guys host guest blogger Niklas Goude as he discusses site management using Windows PowerShell cmdlets. 
 
 Hey, Scripting Guy! How do I manage sites in SharePoint 2010 by using Windows PowerShell cmdlets? 
 -- KM </description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Use SharePoint 2010 PowerShell Cmdlets to Get and Manage Sites</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/09/21/use-sharepoint-2010-powershell-cmdlets-to-get-and-manage-sites.aspx#3476530</link><pubDate>Fri, 20 Jan 2012 22:13:18 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3476530</guid><dc:creator>jnsnfl</dc:creator><description>&lt;p&gt;In SP2010 server / enterprise&lt;/p&gt;
&lt;p&gt;here is a working example of a real export-spweb pull of a site list using the -nofilecompression switch so you can use granular repair to import the groups and users that may not get imported properly. &amp;nbsp;We had several bugs upgrading a 2003/2007 hybrid WSSv3 system to SP2010 Standard/Enterprise. &amp;nbsp;SItes came over but many of the lists and groups did not. &amp;nbsp;this is how we picked up the groups to have lists and libraries come over with their old assigned users...&lt;/p&gt;
&lt;p&gt;Export-SPWeb http://whtas30207:23805/groupsite/ -itemurl &amp;quot;Lists/Applications Help Desk System/&amp;quot; -path D:\SPMigration\ASR_manual.cmp -nofilecompression&lt;/p&gt;
&lt;p&gt;Note: I did not have to use the -identity switch to tell SP what site it was; also I DID NOT have to use the leading slash &amp;quot;/Lists/...&amp;quot; as described by other notes. &amp;nbsp;I also note here I DID NOT have to explicitly put the path in quotes and finally the use of the -nofilecompression switch leaves the export file in an XML format so you can re-arrange the users and groups ahead of the site structures that use them so you will NOT get the error messsage on import that SPImport can&amp;#39;t find the group or user.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m just sayin&amp;#39;....&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3476530" width="1" height="1"&gt;</description></item><item><title>re: Use SharePoint 2010 PowerShell Cmdlets to Get and Manage Sites</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/09/21/use-sharepoint-2010-powershell-cmdlets-to-get-and-manage-sites.aspx#3468829</link><pubDate>Sun, 04 Dec 2011 08:40:07 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3468829</guid><dc:creator>-Recycle</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Nice blog. I can&amp;#39;t find any explanation of what the -Recycle operator does? Any clue? IIS maybe?&lt;/p&gt;
&lt;p&gt;Remove-SPWeb [-Identity] &amp;lt;SPWebPipeBind&amp;gt; [-AssignmentCollection &amp;lt;SPAssignmentCollection&amp;gt;] [-Confirm [&amp;lt;SwitchParameter&amp;gt;]] [-Recycle &amp;lt;SwitchParameter&amp;gt;] [-WhatIf [&amp;lt;SwitchParameter&amp;gt;]] (re: &lt;a rel="nofollow" target="_new" href="http://technet.microsoft.com/en-us/library/ff607891.aspx"&gt;technet.microsoft.com/.../ff607891.aspx&lt;/a&gt;)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3468829" width="1" height="1"&gt;</description></item><item><title>re: Use SharePoint 2010 PowerShell Cmdlets to Get and Manage Sites</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/09/21/use-sharepoint-2010-powershell-cmdlets-to-get-and-manage-sites.aspx#3412857</link><pubDate>Tue, 15 Mar 2011 09:13:15 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3412857</guid><dc:creator>User Profile</dc:creator><description>&lt;p&gt;Hi, is there a script that will list the active user profile on the sharepoint 2010?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3412857" width="1" height="1"&gt;</description></item><item><title>re: Use SharePoint 2010 PowerShell Cmdlets to Get and Manage Sites</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/09/21/use-sharepoint-2010-powershell-cmdlets-to-get-and-manage-sites.aspx#3386243</link><pubDate>Wed, 09 Feb 2011 20:35:55 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3386243</guid><dc:creator>Joe Daly</dc:creator><description>&lt;p&gt;In your new site example you mantion the command&lt;/p&gt;
&lt;p&gt;New-SPWeb -Url http://SPServer/NewWeb -Template &amp;quot;STS#0&amp;quot; -Name &amp;quot;New Site&amp;quot; -Description &amp;quot;My New Site&amp;quot; &lt;/p&gt;
&lt;p&gt;This is a similar command to others I have seen provided by MS that all reference the &amp;quot;STS#0&amp;quot; as the site template. I have a few questions regarding this. &lt;/p&gt;
&lt;p&gt;1. How do you determine what the correct &amp;quot;STS#0&amp;quot; or other number for any given template is?&lt;/p&gt;
&lt;p&gt;2. I am familiar with the process of adding templates to the global store in MOSS 2007 using&lt;/p&gt;
&lt;p&gt;stsadm -o addtemplate &lt;/p&gt;
&lt;p&gt;and then retrieving the global template number by using&lt;/p&gt;
&lt;p&gt;stsadm -o enumtemplates&lt;/p&gt;
&lt;p&gt;However I do not see this same functionality in SP2010. I have used the stsadm -addsolution and enumsolution but I have not been able to successfully create a site using a stored global template?&lt;/p&gt;
&lt;p&gt;3. I am trying to automate site creation using STSADM but because I can not successfully add the custom template/solution the command completes but on first visit to the site I have to choose the template. The command I am using to do this is. &lt;/p&gt;
&lt;p&gt;stsadm -o createweb -url http://sp2010sandbox/Joe -sitetemplate template.wsp -title &amp;quot;Joes Sharepoint Site&amp;quot; -unique&lt;/p&gt;
&lt;p&gt;Any help is appreciated and thanks for your assistance. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3386243" width="1" height="1"&gt;</description></item><item><title>re: Use SharePoint 2010 PowerShell Cmdlets to Get and Manage Sites</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/09/21/use-sharepoint-2010-powershell-cmdlets-to-get-and-manage-sites.aspx#3357495</link><pubDate>Thu, 23 Sep 2010 21:40:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3357495</guid><dc:creator>Niklas Goude</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Running the SharePoint 2010 cmdlet in Windows PowerShell requires that you (the account you are using) are member of the SharePoint Shell Access Role in the Configuration Database and the WSS_ADMIN_WPG local Security Group on the SharePoint Server.&lt;/p&gt;
&lt;p&gt;You can use the Add-SPShellAdmin cmdlet to add a user to the SharePoint Shell Access Group and the WSS_ADMIN_WPG local security group. example:&lt;/p&gt;
&lt;p&gt;PS &amp;gt; Add-SPShellAdmin -UserName domain\user `&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt; -database (Get-SPContentDatabase -Identity WSS_Content)&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Niklas Goude&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3357495" width="1" height="1"&gt;</description></item><item><title>re: Use SharePoint 2010 PowerShell Cmdlets to Get and Manage Sites</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/09/21/use-sharepoint-2010-powershell-cmdlets-to-get-and-manage-sites.aspx#3357065</link><pubDate>Wed, 22 Sep 2010 13:33:06 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3357065</guid><dc:creator>SharePoint cmdlet's</dc:creator><description>&lt;p&gt;I apologize if this is a newbie question... but.. is there anyway to get this information if you&amp;#39;re not a SharePoint administrator? For example, I have a SharePoint site and am the site admin... but not the server admin. I&amp;#39;m big on automation and love to play with new things. Is there any way for me to access these, or, how do I get them? &lt;/p&gt;
&lt;p&gt;~Tully&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3357065" width="1" height="1"&gt;</description></item></channel></rss>