<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
	<title>Comments for SharePoint Automation</title>
	
	<link>http://blog.falchionconsulting.com</link>
	<description>Gary Lapointe - Founding Partner, Aptillon, Inc.</description>
	<lastBuildDate>Mon, 06 May 2013 19:51:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/AutomatingSharePointComments" /><feedburner:info uri="automatingsharepointcomments" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:browserFriendly></feedburner:browserFriendly><item>
		<title>Comment on Getting an Inventory of All SharePoint Documents Using Windows PowerShell by Gary Lapointe</title>
		<link>http://blog.falchionconsulting.com/index.php/2010/08/getting-an-inventory-of-all-sharepoint-documents-using-windows-powershell/#comment-234387</link>
		<dc:creator>Gary Lapointe</dc:creator>
		<pubDate>Mon, 06 May 2013 19:51:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.falchionconsulting.com/?p=407#comment-234387</guid>
		<description><![CDATA[There&#039;s no URL for the farm and you don&#039;t need to dispose the SPFarm object. If you&#039;re on SP2010 just set the $farm variable using this: $farm = Get-SPFarm]]></description>
		<content:encoded><![CDATA[<p>There&#8217;s no URL for the farm and you don&#8217;t need to dispose the SPFarm object. If you&#8217;re on SP2010 just set the $farm variable using this: $farm = Get-SPFarm</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting an Inventory of All SharePoint Documents Using Windows PowerShell by Gary Lapointe</title>
		<link>http://blog.falchionconsulting.com/index.php/2010/08/getting-an-inventory-of-all-sharepoint-documents-using-windows-powershell/#comment-234386</link>
		<dc:creator>Gary Lapointe</dc:creator>
		<pubDate>Mon, 06 May 2013 19:49:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.falchionconsulting.com/?p=407#comment-234386</guid>
		<description><![CDATA[You need to look at the inner exception to see what&#039;s really going with that error. As long as you have rights to run the cmdlets (so you&#039;re a shell admin) and you have rights to the site collection you&#039;re inspecting, then the code should work.]]></description>
		<content:encoded><![CDATA[<p>You need to look at the inner exception to see what&#8217;s really going with that error. As long as you have rights to run the cmdlets (so you&#8217;re a shell admin) and you have rights to the site collection you&#8217;re inspecting, then the code should work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting an Inventory of All SharePoint Documents Using Windows PowerShell by Larry W Virden</title>
		<link>http://blog.falchionconsulting.com/index.php/2010/08/getting-an-inventory-of-all-sharepoint-documents-using-windows-powershell/#comment-234385</link>
		<dc:creator>Larry W Virden</dc:creator>
		<pubDate>Thu, 02 May 2013 11:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.falchionconsulting.com/?p=407#comment-234385</guid>
		<description><![CDATA[I am seeing the same error. I am logged in as the farm admin. When I look at $Error, I get:
PS C:\Users\sa_spsdev\Documents\powershell&gt; $error
Get-DocInventory : Exception has been thrown by the target of an invocation.
At C:\Users\sa_spsdev\Documents\powershell\get-docinventory.ps1:44 char:17
+ Get-DocInventory &lt;&lt;&lt;&lt;  &#124; Export-Csv -NoTypeInformation -Path d:\temp\inventor
y.csv
    + CategoryInfo          : NotSpecified: (:) [Get-DocInventory], TargetInvo
   cationException
    + FullyQualifiedErrorId : System.Reflection.TargetInvocationException,Get-
   DocInventory

What powershell settings need to be in place for the script to work?]]></description>
		<content:encoded><![CDATA[<p>I am seeing the same error. I am logged in as the farm admin. When I look at $Error, I get:<br />
PS C:\Users\sa_spsdev\Documents\powershell&gt; $error<br />
Get-DocInventory : Exception has been thrown by the target of an invocation.<br />
At C:\Users\sa_spsdev\Documents\powershell\get-docinventory.ps1:44 char:17<br />
+ Get-DocInventory &lt;&lt;&lt;&lt;  | Export-Csv -NoTypeInformation -Path d:\temp\inventor<br />
y.csv<br />
    + CategoryInfo          : NotSpecified: (:) [Get-DocInventory], TargetInvo<br />
   cationException<br />
    + FullyQualifiedErrorId : System.Reflection.TargetInvocationException,Get-<br />
   DocInventory</p>
<p>What powershell settings need to be in place for the script to work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting an Inventory of All SharePoint Documents Using Windows PowerShell by Larry W Virden</title>
		<link>http://blog.falchionconsulting.com/index.php/2010/08/getting-an-inventory-of-all-sharepoint-documents-using-windows-powershell/#comment-234384</link>
		<dc:creator>Larry W Virden</dc:creator>
		<pubDate>Tue, 30 Apr 2013 15:44:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.falchionconsulting.com/?p=407#comment-234384</guid>
		<description><![CDATA[I could use some help.
I have tried to update a copy of your original script to cover several of the things you mentioned before, as well as set up the script to take the farm name as an argument. The script starts out:

function Get-DocInventory([string]$farmUrl) {
    [void][System.Reflection.Assembly]::LoadWithPartialName(&quot;Microsoft.SharePoint&quot;)
    $farm = New-Object Microsoft.SharePoint.SPFarm $farmUrl
:
other code from above
:
  $farm.Dispose()
}

Get-DocInventory http://mysite &#124; Export-Csv -NoTypeInformation -Path d:\temp\inventory.csv

When I run my this script file, I get this as my output:
New-Object : Cannot find type [Microsoft.SharePoint.SPFarm]: make sure the asse
mbly containing this type is loaded.
At C:\Users\spsadmin2\Documents\PowerShell\Get-DocInventory.ps1:8 char:23
+     $farm = New-Object &lt;&lt;&lt;&lt;  Microsoft.SharePoint.SPFarm $farmUrl
    + CategoryInfo          : InvalidType: (:) [New-Object], PSArgumentExcepti
   on
    + FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewOb
   jectCommand

You cannot call a method on a null-valued expression.
At C:\Users\spsadmin2\Documents\PowerShell\Get-DocInventory.ps1:55 char:16
+   $farm.Dispose &lt;&lt;&lt;&lt; ()
    + CategoryInfo          : InvalidOperation: (Dispose:String) [], RuntimeEx
   ception
    + FullyQualifiedErrorId : InvokeMethodOnNull

I know the second error is because of the first. I just don&#039;t know why the assembly is not being loaded.
This is SP 2010 SP 1, powershell v2.0. I am on as a farm admin, and opened the sp 2010 management shell as an admin.

Is there anything I can check to see what is going wrong?]]></description>
		<content:encoded><![CDATA[<p>I could use some help.<br />
I have tried to update a copy of your original script to cover several of the things you mentioned before, as well as set up the script to take the farm name as an argument. The script starts out:</p>
<p>function Get-DocInventory([string]$farmUrl) {<br />
    [void][System.Reflection.Assembly]::LoadWithPartialName(&#8220;Microsoft.SharePoint&#8221;)<br />
    $farm = New-Object Microsoft.SharePoint.SPFarm $farmUrl<br />
:<br />
other code from above<br />
:<br />
  $farm.Dispose()<br />
}</p>
<p>Get-DocInventory <a href="http://mysite" rel="nofollow">http://mysite</a> | Export-Csv -NoTypeInformation -Path d:\temp\inventory.csv</p>
<p>When I run my this script file, I get this as my output:<br />
New-Object : Cannot find type [Microsoft.SharePoint.SPFarm]: make sure the asse<br />
mbly containing this type is loaded.<br />
At C:\Users\spsadmin2\Documents\PowerShell\Get-DocInventory.ps1:8 char:23<br />
+     $farm = New-Object &lt;&lt;&lt;&lt;  Microsoft.SharePoint.SPFarm $farmUrl<br />
    + CategoryInfo          : InvalidType: (:) [New-Object], PSArgumentExcepti<br />
   on<br />
    + FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewOb<br />
   jectCommand</p>
<p>You cannot call a method on a null-valued expression.<br />
At C:\Users\spsadmin2\Documents\PowerShell\Get-DocInventory.ps1:55 char:16<br />
+   $farm.Dispose &lt;&lt;&lt;&lt; ()<br />
    + CategoryInfo          : InvalidOperation: (Dispose:String) [], RuntimeEx<br />
   ception<br />
    + FullyQualifiedErrorId : InvokeMethodOnNull</p>
<p>I know the second error is because of the first. I just don&#039;t know why the assembly is not being loaded.<br />
This is SP 2010 SP 1, powershell v2.0. I am on as a farm admin, and opened the sp 2010 management shell as an admin.</p>
<p>Is there anything I can check to see what is going wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting an Inventory of All SharePoint Documents Using Windows PowerShell by Gary Lapointe</title>
		<link>http://blog.falchionconsulting.com/index.php/2010/08/getting-an-inventory-of-all-sharepoint-documents-using-windows-powershell/#comment-234383</link>
		<dc:creator>Gary Lapointe</dc:creator>
		<pubDate>Fri, 19 Apr 2013 01:53:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.falchionconsulting.com/?p=407#comment-234383</guid>
		<description><![CDATA[Yup. Just change the if statement to this: if ($list.BaseType -ne &quot;DocumentLibrary&quot; -and $list.ItemCount -lt 5000) {]]></description>
		<content:encoded><![CDATA[<p>Yup. Just change the if statement to this: if ($list.BaseType -ne &#8220;DocumentLibrary&#8221; -and $list.ItemCount -lt 5000) {</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting an Inventory of All SharePoint Documents Using Windows PowerShell by JJ Blackshear</title>
		<link>http://blog.falchionconsulting.com/index.php/2010/08/getting-an-inventory-of-all-sharepoint-documents-using-windows-powershell/#comment-234382</link>
		<dc:creator>JJ Blackshear</dc:creator>
		<pubDate>Fri, 19 Apr 2013 01:41:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.falchionconsulting.com/?p=407#comment-234382</guid>
		<description><![CDATA[Hi Gary. Thank you for your efforts. Is there a way to modify this so I can identify lists and libraries with &gt;5,000 items?

Thanks!]]></description>
		<content:encoded><![CDATA[<p>Hi Gary. Thank you for your efforts. Is there a way to modify this so I can identify lists and libraries with &gt;5,000 items?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Updating SharePoint 2010 User Information by Gary Lapointe</title>
		<link>http://blog.falchionconsulting.com/index.php/2011/12/updating-sharepoint-2010-user-information/#comment-234379</link>
		<dc:creator>Gary Lapointe</dc:creator>
		<pubDate>Fri, 12 Apr 2013 16:10:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.falchionconsulting.com/index.php/2011/12/updating-sharepoint-2010-user-information/#comment-234379</guid>
		<description><![CDATA[Any permissions or alerts assigned to the user will be lost. Might be some other implications but I can&#039;t remember any others at the moment.]]></description>
		<content:encoded><![CDATA[<p>Any permissions or alerts assigned to the user will be lost. Might be some other implications but I can&#8217;t remember any others at the moment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deploying SharePoint 2010 Solution Package Using PowerShell (Revisited) by Gary Lapointe</title>
		<link>http://blog.falchionconsulting.com/index.php/2011/04/deploying-sharepoint-2010-solution-package-using-powershell-revisited/#comment-234378</link>
		<dc:creator>Gary Lapointe</dc:creator>
		<pubDate>Fri, 12 Apr 2013 16:08:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.falchionconsulting.com/index.php/2011/04/deploying-sharepoint-2010-solution-package-using-powershell-revisited/#comment-234378</guid>
		<description><![CDATA[Make sure you don&#039;t have any attributes or comments or anything else for the WebApplication element. It should look just like the example in the help. If you add a comment or an attribute then PowerShell will treat it like an XmlElement and not a string which is what is needed. If you need the additional information in the XML then you&#039;ll need to change the code so that it extracts the value out rather relying on PowerShell&#039;s automatic type conversion.]]></description>
		<content:encoded><![CDATA[<p>Make sure you don&#8217;t have any attributes or comments or anything else for the WebApplication element. It should look just like the example in the help. If you add a comment or an attribute then PowerShell will treat it like an XmlElement and not a string which is what is needed. If you need the additional information in the XML then you&#8217;ll need to change the code so that it extracts the value out rather relying on PowerShell&#8217;s automatic type conversion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fix: The trust relationship between this workstation and the primary domain failed by Gary Lapointe</title>
		<link>http://blog.falchionconsulting.com/index.php/2013/02/fix-the-trust-relationship-between-this-workstation-and-the-primary-domain-failed/#comment-234377</link>
		<dc:creator>Gary Lapointe</dc:creator>
		<pubDate>Fri, 12 Apr 2013 15:57:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.falchionconsulting.com/index.php/2013/02/fix-the-trust-relationship-between-this-workstation-and-the-primary-domain-failed/#comment-234377</guid>
		<description><![CDATA[Cool! I never knew about this one. Thanks for sharing!!!]]></description>
		<content:encoded><![CDATA[<p>Cool! I never knew about this one. Thanks for sharing!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fix: The trust relationship between this workstation and the primary domain failed by Alexey Krasheninnikov</title>
		<link>http://blog.falchionconsulting.com/index.php/2013/02/fix-the-trust-relationship-between-this-workstation-and-the-primary-domain-failed/#comment-234376</link>
		<dc:creator>Alexey Krasheninnikov</dc:creator>
		<pubDate>Fri, 12 Apr 2013 14:25:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.falchionconsulting.com/index.php/2013/02/fix-the-trust-relationship-between-this-workstation-and-the-primary-domain-failed/#comment-234376</guid>
		<description><![CDATA[How about PowerShell?
   PS:&gt;  Test-ComputerSecureChannel -Repair]]></description>
		<content:encoded><![CDATA[<p>How about PowerShell?<br />
   PS:&gt;  Test-ComputerSecureChannel -Repair</p>
]]></content:encoded>
	</item>
</channel>
</rss>
