<?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>Hey, Scripting Guy! How Can I Tell How Much Free Disk Space a User Has?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2009/02/02/how-can-i-tell-how-much-free-disk-space-a-user-has.aspx</link><description>I know most people have heard of Moore’s Law that is named after Gordon Moore, but have you ever heard of Bob’s law? Bob was the senior network administrator when I first became an IT pro, and he created what he called Bob's Law. Briefly stated it says</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Hey, Scripting Guy! How Can I Tell How Much Free Disk Space a User Has?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2009/02/02/how-can-i-tell-how-much-free-disk-space-a-user-has.aspx#3379775</link><pubDate>Wed, 12 Jan 2011 12:24:55 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3379775</guid><dc:creator>Vivek Shokeen</dc:creator><description>&lt;p&gt;Hi Friends pls use this script for all systems.&lt;/p&gt;
&lt;p&gt;Set fso = CreateObject ( &amp;quot;Scripting.FileSystemObject&amp;quot;)&lt;/p&gt;
&lt;p&gt;Set ObjInputFile = fso.OpenTextFile( &amp;quot;Server.txt &amp;quot;, 1, True)&lt;/p&gt;
&lt;p&gt;Set ObjOutputFile = fso.OpenTextFile( &amp;quot;Result.txt &amp;quot;, 2, True)&lt;/p&gt;
&lt;p&gt;Const Hard_Disk = 3&lt;/p&gt;
&lt;p&gt;Do While ObjInputFile.AtEndOfLine &amp;lt;&amp;gt; True&lt;/p&gt;
&lt;p&gt;	StrComputer = ObjInputFile.ReadLine&lt;/p&gt;
&lt;p&gt;	Set ObjWMIService = GetObject(&amp;quot;Winmgmts:&amp;quot; &amp;amp; &amp;quot;{impersonationLevel = impersonate}!\\&amp;quot; &amp;amp; StrComputer &amp;amp; &amp;quot;\root\cimv2&amp;quot;)&lt;/p&gt;
&lt;p&gt;	Set colDisk = ObjWMIService.ExecQuery (&amp;quot; Select * from Win32_LogicalDisk Where DriveType = &amp;quot; &amp;amp; Hard_Disk &amp;amp; &amp;quot;&amp;quot; )&lt;/p&gt;
&lt;p&gt;	For Each objDisk in colDisk&lt;/p&gt;
&lt;p&gt;	ObjOutputFile.WriteLine StrComputer&lt;/p&gt;
&lt;p&gt;	ObjOutputFile.WriteLine &amp;quot;DeviceID: &amp;nbsp;&amp;quot;&amp;amp; vbTab &amp;amp; objDisk.DeviceID&lt;/p&gt;
&lt;p&gt;	ObjOutputFile.WriteLine &amp;quot;Free Disk Space : &amp;nbsp;&amp;quot;&amp;amp; vbTab &amp;amp; objDisk.FreeSpace&lt;/p&gt;
&lt;p&gt;	Next&lt;/p&gt;
&lt;p&gt;Loop&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3379775" width="1" height="1"&gt;</description></item></channel></rss>