<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	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/"
		>
<channel>
	<title>Comments on: Check disk space with Powershell</title>
	<atom:link href="http://www.youdidwhatwithtsql.com/check-disk-space-with-powershell-2/195/feed" rel="self" type="application/rss+xml" />
	<link>http://www.youdidwhatwithtsql.com/check-disk-space-with-powershell-2/195</link>
	<description>making DBAs everywhere curse!</description>
	<lastBuildDate>Tue, 07 Sep 2010 01:38:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Rhys</title>
		<link>http://www.youdidwhatwithtsql.com/check-disk-space-with-powershell-2/195/comment-page-1#comment-199</link>
		<dc:creator>Rhys</dc:creator>
		<pubDate>Thu, 17 Jun 2010 22:09:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/check-disk-space-with-powershell-2/195#comment-199</guid>
		<description>Hi Nathan,

Welcome to the awesome world of Powershell!

The original script generates a text file so you don&#039;t need to worry about that. The $DriveSpace variable was just a suggestion to get the content into an email. If you run the original script do you have a text file in your user directory called &quot;server disks yyyymmddhhmiss.txt&quot;? I&#039;ve retested the script and it works fine for me. Try the original script and check your user folder for the file.

Cheers,

Rhys</description>
		<content:encoded><![CDATA[<p>Hi Nathan,</p>
<p>Welcome to the awesome world of Powershell!</p>
<p>The original script generates a text file so you don&#8217;t need to worry about that. The $DriveSpace variable was just a suggestion to get the content into an email. If you run the original script do you have a text file in your user directory called &#8220;server disks yyyymmddhhmiss.txt&#8221;? I&#8217;ve retested the script and it works fine for me. Try the original script and check your user folder for the file.</p>
<p>Cheers,</p>
<p>Rhys</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://www.youdidwhatwithtsql.com/check-disk-space-with-powershell-2/195/comment-page-1#comment-198</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Thu, 17 Jun 2010 03:25:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/check-disk-space-with-powershell-2/195#comment-198</guid>
		<description>Hey there, Rhys... awesome script, thank you!

About your last comment... I&#039;m a total beginner to PS, so could you explain a bit on how to put that $DriveSpace variable into the script properly in order to output all the results into a text file?  I&#039;ve tried it myself a couple of times, but I&#039;m not having a lot of luck.  My text file generates, but ends up with just &quot;server,deviceID,size,freespace,percentFree&quot; in it.

Your assistance is much appreciated.  Thanks!

-Nathan</description>
		<content:encoded><![CDATA[<p>Hey there, Rhys&#8230; awesome script, thank you!</p>
<p>About your last comment&#8230; I&#8217;m a total beginner to PS, so could you explain a bit on how to put that $DriveSpace variable into the script properly in order to output all the results into a text file?  I&#8217;ve tried it myself a couple of times, but I&#8217;m not having a lot of luck.  My text file generates, but ends up with just &#8220;server,deviceID,size,freespace,percentFree&#8221; in it.</p>
<p>Your assistance is much appreciated.  Thanks!</p>
<p>-Nathan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rhys</title>
		<link>http://www.youdidwhatwithtsql.com/check-disk-space-with-powershell-2/195/comment-page-1#comment-184</link>
		<dc:creator>Rhys</dc:creator>
		<pubDate>Fri, 21 May 2010 11:45:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/check-disk-space-with-powershell-2/195#comment-184</guid>
		<description>Hi Aron,

I also write the output into a text file so you can read the contents of this into a variable with the &lt;a href=&quot;http://technet.microsoft.com/en-us/library/ee176843.aspx&quot; rel=&quot;nofollow&quot;&gt;Get-Content&lt;/a&gt; cmdlet. Something like this should do it...
&lt;code&gt;$DriveSpace = Get-Content &quot;$Env:USERPROFILE\server disks $datetime.txt&quot;;&lt;/code&gt;

Cheers,

Rhys</description>
		<content:encoded><![CDATA[<p>Hi Aron,</p>
<p>I also write the output into a text file so you can read the contents of this into a variable with the <a href="http://technet.microsoft.com/en-us/library/ee176843.aspx" rel="nofollow">Get-Content</a> cmdlet. Something like this should do it&#8230;<br />
<code>$DriveSpace = Get-Content "$Env:USERPROFILE\server disks $datetime.txt";</code></p>
<p>Cheers,</p>
<p>Rhys</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aron</title>
		<link>http://www.youdidwhatwithtsql.com/check-disk-space-with-powershell-2/195/comment-page-1#comment-180</link>
		<dc:creator>Aron</dc:creator>
		<pubDate>Tue, 18 May 2010 22:42:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/check-disk-space-with-powershell-2/195#comment-180</guid>
		<description>Hey Thanks for script! 

This is almost exactly what I&#039;m trying to do, except I need it to output the result of the script to the body of an email.  I think what I need it to make the output into a variable I can call in the body of the email, in my example below I called it $DriveSpace.

$SmtpClient = new-object system.net.mail.smtpClient
$SmtpServer = &quot;MAILSERVER&quot;
$SmtpClient.host = 
$SmtpServer 

$From = &quot;USER &quot;
$To = &quot;ADDRESS@DOMAIN.COM&quot;
$Title = &quot;Email Title&quot;
$Body = $DriveSpace
$msg.IsBodyHTML = $true
$SmtpClient.Send($from,$to,$title,$Body)

I&#039;m pretty new to Powershell and this is my first attempt at scripting, any advice would be appreciated :)</description>
		<content:encoded><![CDATA[<p>Hey Thanks for script! </p>
<p>This is almost exactly what I&#8217;m trying to do, except I need it to output the result of the script to the body of an email.  I think what I need it to make the output into a variable I can call in the body of the email, in my example below I called it $DriveSpace.</p>
<p>$SmtpClient = new-object system.net.mail.smtpClient<br />
$SmtpServer = &#8220;MAILSERVER&#8221;<br />
$SmtpClient.host =<br />
$SmtpServer </p>
<p>$From = &#8220;USER &#8221;<br />
$To = &#8220;ADDRESS@DOMAIN.COM&#8221;<br />
$Title = &#8220;Email Title&#8221;<br />
$Body = $DriveSpace<br />
$msg.IsBodyHTML = $true<br />
$SmtpClient.Send($from,$to,$title,$Body)</p>
<p>I&#8217;m pretty new to Powershell and this is my first attempt at scripting, any advice would be appreciated <img src='http://www.youdidwhatwithtsql.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jelly</title>
		<link>http://www.youdidwhatwithtsql.com/check-disk-space-with-powershell-2/195/comment-page-1#comment-115</link>
		<dc:creator>Jelly</dc:creator>
		<pubDate>Wed, 21 Oct 2009 16:16:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/check-disk-space-with-powershell-2/195#comment-115</guid>
		<description>I copied, and modified this script.  Very well written.  I&#039;m a big Fan of  Rhys</description>
		<content:encoded><![CDATA[<p>I copied, and modified this script.  Very well written.  I&#8217;m a big Fan of  Rhys</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eriko Oliveira</title>
		<link>http://www.youdidwhatwithtsql.com/check-disk-space-with-powershell-2/195/comment-page-1#comment-108</link>
		<dc:creator>Eriko Oliveira</dc:creator>
		<pubDate>Wed, 02 Sep 2009 17:02:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/check-disk-space-with-powershell-2/195#comment-108</guid>
		<description>Hello Guy,

thank you so much... really this command or why not tool is awsome!

Thanks
EFO</description>
		<content:encoded><![CDATA[<p>Hello Guy,</p>
<p>thank you so much&#8230; really this command or why not tool is awsome!</p>
<p>Thanks<br />
EFO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Best way to check disk space on multiple servers - ScoobyNet</title>
		<link>http://www.youdidwhatwithtsql.com/check-disk-space-with-powershell-2/195/comment-page-1#comment-102</link>
		<dc:creator>Best way to check disk space on multiple servers - ScoobyNet</dc:creator>
		<pubDate>Tue, 25 Aug 2009 15:39:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/check-disk-space-with-powershell-2/195#comment-102</guid>
		<description>[...] a PowerShell script here:  Check disk space with Powershell &#124; youdidwhatwithtsql.com  Takes the servers from a TXT, outputs to screen and [...]</description>
		<content:encoded><![CDATA[<p>[...] a PowerShell script here:  Check disk space with Powershell | youdidwhatwithtsql.com  Takes the servers from a TXT, outputs to screen and [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
