<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-37115217</id><updated>2011-04-22T10:08:45.789+08:00</updated><category term='Personal'/><category term='Daily Feeds'/><category term='MSClustering'/><category term='CrashOnCtrl'/><category term='PowerShell'/><category term='Registry'/><category term='BookMarks'/><category term='All Programs'/><category term='Active Directory'/><category term='Techincal'/><category term='HotFix'/><category term='DiskSize'/><title type='text'>Z@RAYS</title><subtitle type='html'>Always A-HEAD, 
       By being ahead you are always master of time</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>39</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-37115217.post-2084024982809602851</id><published>2007-03-01T14:30:00.000+08:00</published><updated>2007-03-01T14:31:43.495+08:00</updated><title type='text'>Blogs Moved</title><content type='html'>&lt;span style="font-family: georgia;"&gt;&lt;span style="font-size:180%;"&gt;All Blogs here are moved to&lt;br /&gt;&lt;br /&gt;http://techstarts.wordpress.com/&lt;br /&gt;&lt;br /&gt;Sorry, I feel wordpress editing much comfortable than...&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-2084024982809602851?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://techstarts.wordpress.com/' title='Blogs Moved'/><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/2084024982809602851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=2084024982809602851&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/2084024982809602851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/2084024982809602851'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2007/03/blogs-moved.html' title='Blogs Moved'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-5266376801296958582</id><published>2007-02-19T11:17:00.001+08:00</published><updated>2007-02-19T11:17:35.598+08:00</updated><title type='text'>Storage KB Articles for MSCluster</title><content type='html'>&lt;p&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&amp;nbsp; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;174617&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;174617&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Chkdsk runs while running Microsoft Cluster Server Setup&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;176970&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;176970&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Run the CHKDSK /F Command on a Shared Cluster Disk&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;250355&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;250355&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Antivirus Software May Cause Problems with Cluster Services&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;280353&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;280353&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;How to Change Quorum Disk Designation&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;237853&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;237853&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Dynamic Disk Configuration Unavailable for Server Cluster Disks&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;259237&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;259237&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Troubleshooting Event ID 9, 11, and 15 on Cluster Servers&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;223023&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;223023&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Enhanced Disk Resource Private Properties Using Cluster Server&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;263590&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;263590&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;How to Extend the Space of Existing Shared Disks with Windows Clustering&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;224508&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;224508&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;How to Migrate Dfs Root Configuration to a Windows 2000 Cluster&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;224969&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;224969&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;How to: Configure Event Log Replication in Windows 2000 Cluster Servers&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;226108&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;226108&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Cannot Place Swap File on a Windows NT Cluster Shared Disk&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;238137&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;238137&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Considerations when you create clustered file shares on a Windows 2000 or Windows Server 2003 server cluster&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;249194&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;249194&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;MSCS/Cluster Does Not Form with Error Messages 170 and 5086&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;248998&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;248998&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;How to Properly Restore Cluster Information&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;254219&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;254219&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Security Considerations When Implementing Clustered File Shares&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;256926&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;256926&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Implementing Home Folders on a Server Cluster&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;257897&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;257897&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;MSCS printer shares may not come online if quorum log is too small&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;259243&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;259243&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;How to set the startup value for a resource on a clustered server&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;262797&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;262797&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Reparse Point Support in Windows 2000-Based Clusters&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;269137&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;269137&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Some Cluster Server File Share Resources Are Not Available&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;280125&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;280125&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Cluster Administrator Switches for Connecting to a Cluster&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;278365&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;278365&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;How to Configure Disk Quotas for a Shared Disk in a Cluster&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;280743&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;280743&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Windows Clustering and Geographically Separate Sites&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;278710&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;278710&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;No Global Groups Are Available Creating File-Share Resource Permissions in Cluster Administrator&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;278951&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;278951&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;The Cluster Internet Protocol Address May Not Come Online After the Quorum Disk Is Corrupted&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;284838&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;284838&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;How to Create a Server Cluster File Share with Cluster.exe&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;293778&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;293778&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Multiple-Path Software May Cause Disk Signature to Change&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;245762&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;245762&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Recovering from a Lost or Corrupted Quorum Log&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;257389&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;257389&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Microsoft Cluster Server May Not Share Folders Automatically&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;223023&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;223023&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Enhanced Disk Resource Private Properties Using Cluster Server&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;259267&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;259267&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Microsoft Cluster Service Installation Resources&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Windows Server 2003&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;283715&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;283715&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;The Features of the Local Quorum Resource on Windows Server 2003 Cluster&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;284134&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;284134&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Server Clusters Do Not Support GPT Shared Disks&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;245762&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;245762&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Recovering from a Lost or Corrupted Quorum Log&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;175761&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;175761&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Dynamic vs. Basic Storage in Windows 2000&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;198513&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;198513&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Clustering Cannot Determine If a Shared Disk Is Working Properly&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;251186&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;251186&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Best Practices for NTFS Compression&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;290987&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;290987&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Error 3 When Creating a File Share on a Cluster with the Application Wizard&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;302539&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;302539&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;How to Troubleshoot Printing Issues on a Windows Server 2003 Cluster&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;301647&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;301647&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Cluster Service improvements for Storage Area Networks (SANs)&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;304415&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;304415&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Support for Multiple Clusters Attached to the Same SAN Device&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;306640&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;306640&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;A Removed Disk Can Have Its Corresponding Cluster Resource Started&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;312090&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;312090&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Cannot Use 32-Bit Resources on a 64-Bit Server Cluster&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;318534&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;318534&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Best Practices for Drive-Letter Assignments on a Server Cluster&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;280297&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;280297&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;How to Configure Volume Mount Points on a Clustered Server&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;296799&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;296799&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;How to Configure Windows Clustering Groups for Hot Spare Support&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;301588&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;301588&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;How to Use DFS on Server Cluster to Maintain a Single Namespace&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;302829&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;302829&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Cluster Service Does Not Remove File Share Entries from LANMANSRVR&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;304736&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;304736&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;How to Extend the Partition of a Cluster Shared Disk&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;310072&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;310072&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Adding support for more than eight LUNs in Windows Server 2003 and Windows 2000&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;305547&amp;amp;sd=tech"&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;305547&lt;/font&gt;&lt;/a&gt;&lt;font color="#c0c0c0"&gt; &lt;/font&gt; &lt;p&gt;&lt;font color="#c0c0c0"&gt;&lt;font face="Georgia" size="2"&gt;Support for Booting from a Storage Area Network (SAN)&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;font size="2"&gt;&lt;font face="Georgia"&gt;&lt;font color="#c0c0c0"&gt;&lt;sup&gt;1&lt;/sup&gt;&lt;b&gt;LooksAlive&lt;/b&gt; is a cursory status check that runs every 5 seconds (default). This routine simply checks that the disk status is not marked failed. &lt;b&gt;LooksAlive&lt;/b&gt; is a cursory status check that runs every 5 seconds (default). This routine simply checks that the disk status is not marked failed. &lt;b&gt;IsAlive&lt;/b&gt; is a more thorough check and occurs every 60 seconds (default). This routine checks that the disk status is not marked failed. If status is not failed, then &lt;b&gt;FindFirstFile&lt;/b&gt; runs on the root of the disk to make sure the file system is still mounted and the disk is accessible&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Georgia" color="#c0c0c0" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt; &lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:b29ab097-33aa-464d-af25-7b7674dd1e32" contenteditable="false" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati tags: &lt;a href="http://technorati.com/tags/MSCLUSTER" rel="tag"&gt;MSCLUSTER&lt;/a&gt;, &lt;a href="http://technorati.com/tags/CLUSTER" rel="tag"&gt;CLUSTER&lt;/a&gt;, &lt;a href="http://technorati.com/tags/WINDOWS%202003" rel="tag"&gt;WINDOWS 2003&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Windows%202000" rel="tag"&gt;Windows 2000&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-5266376801296958582?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/5266376801296958582/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=5266376801296958582&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/5266376801296958582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/5266376801296958582'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2007/02/storage-kb-articles-for-mscluster.html' title='Storage KB Articles for MSCluster'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-341568944840521988</id><published>2007-02-18T13:02:00.001+08:00</published><updated>2007-02-18T13:02:50.372+08:00</updated><title type='text'>AD Infrastructure from No Man's Land View</title><content type='html'>&lt;p&gt;&lt;font face="Georgia" size="2"&gt;There are people who knows why it happens, there are people who explain how to make it happen and there are people who use the above two concept for&amp;nbsp;their own&amp;nbsp;customization.&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;Suppose one day your manager asks to get over to the role of Active directory team lead. First question that comes to mind, is there any AD Infra documentation about it, In most case it is not. But with powershell by your side, it is simple to get these details. Lets start with Forest &lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;$forest=[system.directoryservices.activedirectory.forest]::getcurrentforest()&lt;br&gt;write-host ""&lt;br&gt;Write-Host "Forest Mode :" $forest.Get_forestmode()&lt;br&gt;write-host ""&lt;br&gt;Write-Host SCHEMA ROLE OWNER&lt;br&gt;$forest.SchemaRoleOwner | select Name,Domain,IPAddress,sitename,OSVersion&lt;br&gt;if($forest.SchemaRoleOwner.IsGlobalCatalog()) {write-host $forest.SchemaRoleOwner.name is GC}&lt;br&gt;write-host ""&lt;br&gt;Write-Host NAMING ROLE OWNER&lt;br&gt;$forest.namingRoleOwner | select Name,Domain,IPAddress,sitename,OSVersion&lt;br&gt;if($forest.namingRoleOwner.IsGlobalCatalog()) {write-host $forest.namingroleowner.name is GC}&lt;br&gt;write-host ""&lt;br&gt;Write-host "SITES AND ITS LOCATION"&lt;br&gt;$forest.Sites | %{$_.name,$_.location}&lt;br&gt;Write-host "Number of sites "$forest.Sites.Count&lt;br&gt;#Global Catalogs&lt;br&gt;Write-host Number of GC : $forest.FindAllGlobalCatalogs().count&lt;br&gt;write-host ""&lt;br&gt;Write-Host "ALL GC'S NAME"&lt;br&gt;$forest.FindAllGlobalCatalogs() | %{$_.name} &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;OUTPUT: &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;Forest Mode : Windows2000Forest &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;SCHEMA ROLE OWNER &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;Name : snguatser.Zarays.com&lt;br&gt;Domain : Zarays.com&lt;br&gt;IPAddress : 192.168.100.110&lt;br&gt;SiteName : Default-First-Site-Name&lt;br&gt;OSVersion : Windows Server 2003 &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;snguatser.Zarays.com is GC &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;NAMING ROLE OWNER&lt;br&gt;Name : snguatser.Zarays.com&lt;br&gt;Domain : Zarays.com&lt;br&gt;IPAddress : 192.168.100.110&lt;br&gt;SiteName : Default-First-Site-Name&lt;br&gt;OSVersion : Windows Server 2003 &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;snguatser.Zarays.com is GC &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;SITES AND ITS LOCATION&lt;br&gt;Default-First-Site-Name&lt;br&gt;Number of sites 1&lt;br&gt;Number of GC : 1 &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;ALL GC'S NAME&lt;br&gt;snguatser.Zarays.com &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;----------------------------------------------------------------------------------- &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;&amp;nbsp; &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;$domain=[system.directoryservices.activedirectory.domain]::getcurrentdomain()&lt;br&gt;Write-host Domain_Name: $domain.name&lt;br&gt;write-host Forest_Name : $domain.Forest.name&lt;br&gt;write-host Domain_Mode: $domain.DomainMode &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;Write-Host (""*25 + "Domain Controllers" + ""*25)&lt;br&gt;Write-Host Number of DC : $domain.DomainControllers.Count&lt;br&gt;Write-Host Domain controllers details:-&amp;gt;&lt;br&gt;$domain.DomainControllers | %{$_.name,$_.IPAddress,$_.sitename,$_.osversion}&lt;br&gt;write-host ("-"*60)&lt;br&gt;Write-Host "Infrastructure Master Role :"&lt;br&gt;$domain.InfrastructureRoleOwner | fl Name,OSVersion,IPAddress,Sitename&lt;br&gt;if($domain.InfrastructureRoleOwner.IsGlobalCatalog()) {write-host $domain.InfrastructureRoleOwner.name is Global Catalog}&lt;br&gt;write-host (""*60)&lt;br&gt;Write-Host "PDC Master Role :"&lt;br&gt;$domain.pdcRoleOwner | fl Name,OSVersion,IPAddress,Sitename&lt;br&gt;if($domain.PDCRoleOwner.IsGlobalCatalog()) {write-host $domain.PDCRoleOwner.name is Global Catalog}&lt;br&gt;write-host (""*60)&lt;br&gt;Write-Host "RID Master Role :"&lt;br&gt;$domain.ridRoleOwner | fl Name,OSVersion,IPAddress,Sitename&lt;br&gt;if($domain.ridRoleOwner.IsGlobalCatalog()) {write-host $domain.ridRoleOwner.name is Global Catalog}&lt;br&gt;write-host"" &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;OUTPUT: &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;Domain_Name: Zarays.com&lt;br&gt;Forest_Name : Zarays.com&lt;br&gt;Domain_Mode: Windows2000NativeDomain&lt;br&gt;Domain Controllers&lt;br&gt;Number of DC : 1&lt;br&gt;Domain controllers details:-&amp;gt;&lt;br&gt;snguatser.Zarays.com&lt;br&gt;192.168.100.110&lt;br&gt;Default-First-Site-Name&lt;br&gt;Windows Server 2003&lt;br&gt;------------------------------------------------------------&lt;br&gt;Infrastructure Master Role : &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;Name : snguatser.Zarays.com&lt;br&gt;OSVersion : Windows Server 2003&lt;br&gt;IPAddress : 192.168.100.110&lt;br&gt;SiteName : Default-First-Site-Name &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;snguatser.Zarays.com is Global Catalog &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;PDC Master Role : &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;Name : snguatser.Zarays.com&lt;br&gt;OSVersion : Windows Server 2003&lt;br&gt;IPAddress : 192.168.100.110&lt;br&gt;SiteName : Default-First-Site-Name &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;snguatser.Zarays.com is Global Catalog &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;RID Master Role : &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;Name : snguatser.Zarays.com&lt;br&gt;OSVersion : Windows Server 2003&lt;br&gt;IPAddress : 192.168.100.110&lt;br&gt;SiteName : Default-First-Site-Name &lt;/font&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;snguatser.Zarays.com is Global Catalog&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;That's all for this post. It is simple idea what you can idea from CMDlets without even going through all places collecting and documenting this information. SInce my test machine doesn't include multiple domains, I can really get hold of better formatting.&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Georgia" size="2"&gt;&lt;/font&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-341568944840521988?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/341568944840521988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=341568944840521988&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/341568944840521988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/341568944840521988'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2007/02/ad-infrastructure-from-no-man-land-view.html' title='AD Infrastructure from No Man&amp;#39;s Land View'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-5327745622694892048</id><published>2007-02-11T14:26:00.001+08:00</published><updated>2007-02-11T14:45:28.582+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DiskSize'/><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><title type='text'>Daily logs of DiskSize</title><content type='html'>&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font size="2"&gt;I truly believe in learning new things and try out new things. Even there could be more than one way of doing it, it makes me crazy to put old things in new way, because you never new that it could be done in this way. &lt;/font&gt; &lt;p&gt;&lt;font color="#ffffff" size="2"&gt;$Cusdate=(get-date).tostring("ddMMyyyy")&lt;br&gt;$file=new-item -type file "$Cusdate-freedisk.txt"&lt;br&gt;get-content "E:\PowerShell\Outputfiles&amp;amp;Folders\servers.txt" | % { &lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font color="#ffffff" size="2"&gt;if((get-wmiobject win32_pingstatus -Filter "address='$_'").protocoladdress) {&lt;br&gt;$wmiObj=gwmi win32_logicaldisk -filter "deviceid='c:'" -computer $_&lt;br&gt;$freesp="{0:N02}" -f ($wmiObj.freespace/1MB)&lt;br&gt;$Totalsp="{0:N02}" -f ($wmiObj.size/1MB)&lt;br&gt;add-content $file "Total Size on C Drive of $_ : $Totalsp (MB)"&lt;br&gt;add-content $file "Free Size on C Drive of $_ : $Freesp (MB)"&lt;br&gt;} &lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font size="2"&gt;&lt;font color="#ffffff"&gt;else {&lt;br&gt;write-host $_ is not reachable -foreground "RED"&lt;br&gt;$Doubleline = ("="* 60)&lt;br&gt;add-content $file $Doubleline&lt;br&gt;add-content $file "$_ is not reachable"&lt;br&gt;}&lt;br&gt;}&lt;/font&gt; &lt;/font&gt; &lt;p&gt;&lt;a title="http://thepowershellguy.com/blogs/posh/archive/2007/02/08/sesame-powershell-scripting-text-files.aspx" href="http://thepowershellguy.com/blogs/posh/archive/2007/02/08/sesame-powershell-scripting-text-files.aspx"&gt;&lt;font size="2"&gt;http://thepowershellguy.com/blogs/posh/archive/2007/02/08/sesame-powershell-scripting-text-files.aspx&lt;/font&gt;&lt;/a&gt;&lt;font size="2"&gt; &lt;/font&gt; &lt;p&gt;&lt;font size="2"&gt;Above link is where the original code and Idea resides. I've modified it little but to look more like PowerShell. &lt;/font&gt; &lt;p&gt;&lt;font size="2"&gt;Output is: &lt;/font&gt; &lt;p&gt;&amp;nbsp; &lt;p&gt;&amp;nbsp; &lt;p&gt;&amp;nbsp; &lt;p&gt;&amp;nbsp; &lt;p&gt;&amp;nbsp; &lt;p&gt;&lt;font size="2"&gt;&amp;nbsp; &lt;/font&gt; &lt;p&gt;&lt;font size="2"&gt;New things learnt: &lt;/font&gt; &lt;p&gt;&lt;font size="2"&gt;$Cusdate=(get-date).tostring("ddMMyyyy") you can customize the date format.&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font size="2"&gt;Below is single line which will check if server is online, cause it makes sense before you do anything on the server, to make sure it is live.&lt;br&gt;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font size="2"&gt;if((get-wmiobject win32_pingstatus -Filter "address='$_'").protocoladdress) this will return true if server is live.&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt; &lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:7c999575-bcad-4c58-bcf2-bf62123ca798" contenteditable="false" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;IceRocket tags: &lt;a href="http://blogs.icerocket.com/search?q=Powershell" rel="tag"&gt;Powershell&lt;/a&gt;, &lt;a href="http://blogs.icerocket.com/search?q=DiskSize" rel="tag"&gt;DiskSize&lt;/a&gt;, &lt;a href="http://blogs.icerocket.com/search?q=File" rel="tag"&gt;File&lt;/a&gt;&lt;/div&gt; &lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt; &lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:c7ceb106-8987-4036-b859-600ffb1b1aea" contenteditable="false" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;del.icio.us tags: &lt;a href="http://del.icio.us/popular/Powershell" rel="tag"&gt;Powershell&lt;/a&gt;, &lt;a href="http://del.icio.us/popular/DiskSize" rel="tag"&gt;DiskSize&lt;/a&gt;, &lt;a href="http://del.icio.us/popular/File" rel="tag"&gt;File&lt;/a&gt;&lt;/div&gt; &lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt; &lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:f2269375-c9dd-495e-8389-872b60343791" contenteditable="false" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati tags: &lt;a href="http://technorati.com/tags/Powershell" rel="tag"&gt;Powershell&lt;/a&gt;, &lt;a href="http://technorati.com/tags/DiskSize" rel="tag"&gt;DiskSize&lt;/a&gt;, &lt;a href="http://technorati.com/tags/File" rel="tag"&gt;File&lt;/a&gt;&lt;/div&gt; &lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-5327745622694892048?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/5327745622694892048/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=5327745622694892048&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/5327745622694892048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/5327745622694892048'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2007/02/daily-logs-of-disksize.html' title='Daily logs of DiskSize'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-2844152110581300811</id><published>2007-02-08T23:34:00.000+08:00</published><updated>2007-02-11T14:26:25.897+08:00</updated><title type='text'></title><content type='html'>&lt;P&gt;&lt;FONT color=#6666cc&gt;&lt;FONT style="BACKGROUND-COLOR: #ff99ff"&gt;&lt;FONT face=Georgia size=4&gt;&lt;STRONG&gt;Managing groups in Active Directory with Powershell&lt;/STRONG&gt;&lt;/FONT&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt; &lt;P&gt; &lt;/P&gt; &lt;P&gt;&lt;FONT face=Georgia color=#009900&gt;Let's do something with groups in Active directory, I have couple of users and one group under OU named Singapore. My intention here is to modify only user accounts and not group so I have condition them with SamAccountType.&lt;/FONT&gt; &lt;/P&gt; &lt;P&gt; &lt;/P&gt; &lt;P&gt;&lt;FONT face=tahoma,arial,helvetica,sans-serif color=#993333&gt;&lt;STRONG&gt;$SNGOU=new-object directoryservices.directoryentry("&lt;/STRONG&gt;&lt;/FONT&gt;&lt;A&gt;&lt;FONT face=tahoma,arial,helvetica,sans-serif color=#993333&gt;&lt;STRONG&gt;LDAP://ou=singapore,DC=zarays,dc=com&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=tahoma,arial,helvetica,sans-serif color=#993333&gt;&lt;STRONG&gt;")  # Let's connect to OU name Singapore&lt;BR&gt;$UserObject=$sngou.psbase.Children               # Lets get the object under OU&lt;BR&gt; &lt;/STRONG&gt;&lt;/FONT&gt; &lt;/P&gt; &lt;P&gt;&lt;FONT face=tahoma,arial,helvetica,sans-serif color=#993333&gt;&lt;STRONG&gt; foreach($user in $userobject) {&lt;BR&gt; if ($user.sAMAccountType -eq 805306368) {   # we want to just update user object and not group object&lt;BR&gt; $user.put("Description","Storage Admins")        # We change the description to Storage Admins&lt;BR&gt; $user.setinfo()                                            # Commit changes&lt;BR&gt; }&lt;BR&gt;}&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt; &lt;P&gt;&lt;FONT face=tahoma,arial,helvetica,sans-serif color=#993333&gt;&lt;STRONG&gt;&lt;BR&gt; &lt;/P&gt;&lt;/STRONG&gt;&lt;/FONT&gt; &lt;P&gt;&lt;FONT face=Georgia color=#009900&gt;Let's create a group in Singapore OU&lt;/FONT&gt; :&lt;/P&gt; &lt;P&gt; &lt;/P&gt; &lt;P&gt;&lt;STRONG&gt;&lt;FONT face=tahoma,arial,helvetica,sans-serif color=#993300&gt;$SNGOU=new-object directoryservices.directoryentry("&lt;/FONT&gt;&lt;/STRONG&gt;&lt;A&gt;&lt;STRONG&gt;&lt;FONT face=tahoma,arial,helvetica,sans-serif color=#993300&gt;ldap://ou=singapore,DC=zarays,dc=com/&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;&lt;FONT face=tahoma,arial,helvetica,sans-serif color=#993300&gt;")  # Let's connect to OU name Singapore&lt;BR&gt;$Grp=$SNGOU.psbase.Children.Add("CN=Storageadmins","group")&lt;/FONT&gt;&lt;/STRONG&gt; &lt;/P&gt; &lt;P&gt;&lt;STRONG&gt;&lt;FONT face=tahoma,arial,helvetica,sans-serif color=#993300&gt;$grp.psbase.commitchanges()&lt;/FONT&gt;&lt;/STRONG&gt; &lt;/P&gt; &lt;P&gt; &lt;/P&gt; &lt;P&gt;&lt;FONT face=Georgia color=#009900&gt;Group is created. Now lets add member to this group. Assuming there are several users in OU, we will only add user whose department is Provisioning. But before I go to the code, I would like to share something with you. You won't see member property if you do &lt;/FONT&gt;&lt;/P&gt; &lt;P&gt;&lt;FONT face=Georgia color=#009900&gt; &lt;/FONT&gt;&lt;/P&gt; &lt;P&gt;&lt;FONT face=Georgia color=#009900&gt;$Grp | gm &lt;/FONT&gt;&lt;/P&gt; &lt;P&gt;&lt;FONT face=Georgia color=#009900&gt; &lt;/FONT&gt;&lt;/P&gt; &lt;P&gt;&lt;FONT face=Georgia color=#009900&gt;or $grp.member &lt;/FONT&gt;&lt;/P&gt; &lt;P&gt;&lt;FONT face=Georgia color=#009900&gt;&lt;/FONT&gt; &lt;/P&gt; &lt;P&gt;&lt;FONT face=Georgia color=#009900&gt;cause there is nothing to display but moment you add user, the next moment you do &lt;/FONT&gt;&lt;/P&gt; &lt;P&gt;&lt;FONT face=Georgia color=#009900&gt;&lt;/FONT&gt; &lt;/P&gt; &lt;P&gt;&lt;FONT face=Georgia color=#009900&gt;$grp | gm &lt;/FONT&gt;&lt;/P&gt; &lt;P&gt;&lt;FONT face=Georgia color=#009900&gt;&lt;/FONT&gt; &lt;/P&gt; &lt;P&gt;&lt;FONT color=#009900&gt;&lt;FONT face=Georgia&gt;you will see member property.&lt;/FONT&gt; &lt;/FONT&gt;&lt;/P&gt; &lt;P&gt; &lt;/P&gt; &lt;P&gt;&lt;FONT color=#009900&gt;&lt;FONT face=Georgia&gt;If you are as beginner like me &amp;amp; would like to know the property, simplest way is to use google. After searching 4 hours I got to know Oh what is happening. And similiarly there is attribute called managedby, it is also having same story. There might be many.&lt;/FONT&gt; &lt;/FONT&gt;&lt;/P&gt; &lt;P&gt; &lt;/P&gt; &lt;P&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff" face=tahoma,arial,helvetica,sans-serif color=#990000&gt;&lt;STRONG&gt;$grp.managedBy.Value&lt;/STRONG&gt;&lt;/FONT&gt; &lt;/P&gt; &lt;P&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff" face=tahoma,arial,helvetica,sans-serif color=#990000&gt;&lt;STRONG&gt;$grp.managedBy.Add("CN=Preetam,OU=Singapore,DC=Zarays,DC=com")&lt;/STRONG&gt;&lt;/FONT&gt; &lt;/P&gt; &lt;P&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff" face=tahoma,arial,helvetica,sans-serif color=#990000&gt;&lt;STRONG&gt;$grp.psbase.CommitChanges()&lt;/STRONG&gt;&lt;/FONT&gt; &lt;/P&gt; &lt;P&gt; &lt;/P&gt; &lt;P&gt; &lt;/P&gt; &lt;P&gt;&lt;FONT face=Georgia color=#009900&gt;Let's get to adding members to the group. Remember one thing if your CN name has space you will have to use quotes [&lt;STRONG&gt;$grp.member.add("$DN")&lt;/STRONG&gt;]. &lt;/FONT&gt;&lt;/P&gt; &lt;P&gt;&lt;FONT face=Georgia color=#009900&gt;Also you need a distinguished name in order to add it to any particular group, which is quite logical cause it confirms user object is present and where is it.&lt;/FONT&gt;&lt;/P&gt; &lt;P&gt; &lt;/P&gt; &lt;P&gt;&lt;FONT face=tahoma,arial,helvetica,sans-serif color=#993300&gt;&lt;STRONG&gt;$Grp=new-object directoryservices.directoryentry("&lt;/STRONG&gt;&lt;/FONT&gt;&lt;A&gt;&lt;FONT face=tahoma,arial,helvetica,sans-serif color=#993300&gt;&lt;STRONG&gt;LDAP://cn=storageadmins,ou=singapore,dc=zarays,dc=com&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=tahoma,arial,helvetica,sans-serif color=#993300&gt;&lt;STRONG&gt;") # GRP -Connection&lt;BR&gt;$SNGOU=new-object directoryservices.directoryentry("&lt;/STRONG&gt;&lt;/FONT&gt;&lt;A&gt;&lt;FONT face=tahoma,arial,helvetica,sans-serif color=#993300&gt;&lt;STRONG&gt;LDAP://ou=singapore,DC=zarays,dc=com&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=tahoma,arial,helvetica,sans-serif color=#993300&gt;&lt;STRONG&gt;") #OU -Connection&lt;BR&gt;$UserObject=$sngou.psbase.Children&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT face=Georgia color=#990000&gt;# Populate childs in OU&lt;/FONT&gt;&lt;/P&gt; &lt;P&gt;&lt;FONT face=tahoma,arial,helvetica,sans-serif color=#993300&gt;&lt;STRONG&gt; foreach($user in $userobject) {&lt;BR&gt;  $DN=$user.distinguishedName                               &lt;/STRONG&gt;&lt;FONT color=#006600&gt;# Get there distinguished name&lt;/FONT&gt;&lt;BR&gt;&lt;STRONG&gt;    if ($user.department -eq "Provisioning") {         &lt;BR&gt;      $grp.member.add("$DN")&lt;/STRONG&gt;                                    &lt;FONT face=Georgia color=#006600&gt;#Add them to group&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt; &lt;P&gt;&lt;FONT face=tahoma,arial,helvetica,sans-serif color=#993300&gt;&lt;STRONG&gt;      $grp.setinfo()&lt;/STRONG&gt;&lt;/FONT&gt;                                           &lt;FONT face=Georgia color=#006600&gt; # Commit changes&lt;/FONT&gt;  &lt;/P&gt; &lt;P&gt;&lt;FONT face=tahoma,arial,helvetica,sans-serif color=#993300&gt;&lt;STRONG&gt;     }&lt;BR&gt;    }&lt;/STRONG&gt;&lt;/FONT&gt; &lt;/P&gt; &lt;P&gt;&lt;STRONG&gt;&lt;FONT face=Tahoma color=#993300&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;/P&gt; &lt;P&gt;&lt;FONT face=Georgia color=#009900&gt;There is very good post available on &lt;/FONT&gt;&lt;A href="http://janssenjones.typepad.com/"&gt;&lt;FONT face=Georgia color=#009900&gt;http://janssenjones.typepad.com/&lt;/FONT&gt;&lt;/A&gt;&lt;FONT color=#009900&gt;&lt;FONT face=Georgia&gt;, I liked it very much&lt;/FONT&gt; for adding members to the group.&lt;/FONT&gt;&lt;/P&gt; &lt;P&gt;&lt;FONT color=#009900&gt;&lt;/FONT&gt; &lt;/P&gt; &lt;P&gt;&lt;FONT face=Georgia color=#009900&gt;Again there is very very stuff on internet but this cooked by me and I always like to eat that way. And my experience hopefully will help you all.&lt;/FONT&gt;&lt;/P&gt; &lt;P&gt;&lt;FONT face=Georgia color=#009900&gt;&lt;/FONT&gt; &lt;/P&gt; &lt;P&gt;&lt;FONT face=Georgia color=#009900&gt;&lt;/FONT&gt; &lt;/P&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-2844152110581300811?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/2844152110581300811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=2844152110581300811&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/2844152110581300811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/2844152110581300811'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2007/02/managing-groups-in-active-directory.html' title=''/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-8971735625960224455</id><published>2007-02-06T12:36:00.000+08:00</published><updated>2007-02-06T12:40:10.961+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><title type='text'>CoolOne with Powershell</title><content type='html'>Yesterday there was question in KBC , English version[Original] Who wants to be Millionaire, how many 9's are there from 1 to 100. Before they could answer I answered it quickly with Powershell. This is how&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;(1..100 where{$_ -like "*9*}).count&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-8971735625960224455?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/8971735625960224455/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=8971735625960224455&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/8971735625960224455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/8971735625960224455'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2007/02/coolone-with-powershell.html' title='CoolOne with Powershell'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-7239948673111347610</id><published>2007-02-05T22:52:00.001+08:00</published><updated>2007-02-06T20:46:40.084+08:00</updated><title type='text'>Bulk User Creation using PowerShell</title><content type='html'>&lt;p&gt;&lt;span style="font-size:85%;"&gt;When we think of making any changes in AD, we must start at creating objects. And as always first thing that comes to Mind is to create multiple users. And again here reference are same as previous one's MOW and Arulk. MOW's concept is used but methods I have to use from Arulk, cause things work.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;Usually you get a excel sheet from the HR etc dept, I would always convert it into CSV since PowerShell will do the magic for me.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;Contents of CSV file [Busers.csv]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;Below are the headers of the CSV file and you can fill in the data.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#800000;"&gt;CN,SN,GivenName,Name,Title,Description,PostalCode,TelephoneNumber,Department,Company,StreetAddress,Countrycode,SamAccountName,userPrincipalName,Mail,HomePhone,mobile.&lt;/span&gt; &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;I've shared the CSV file using google docs. &lt;a title="Excel SpreadSheet" href="http://spreadsheets.google.com/ccc?key=pxbagYvC9YYxVLSPKP-OlPg" target="_blank"&gt;&lt;strong&gt;Click Here&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;I'm going to create bulk users in India OU, which is under Zarays' OU&lt;/span&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;$IndiaOU=[ADSI]&lt;/span&gt;&lt;a href="ldap://localhost:389/ou=India,dc=zarays,dc=com"&gt;&lt;span style="font-size:85%;"&gt;LDAP://localhost:389/ou=India,dc=zarays,dc=com&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;# Connecting to India OU&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;$UserDetails=Import-Csv "Buser.csv" #-----&lt;span style="color:#ff8040;"&gt;importing bulkusers data&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;foreach($UD in $UserDetails) { &lt;span style="color:#ff8000;"&gt;#--------looping into csv file and&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#ff8000;"&gt;# Passing all data into variables&lt;br /&gt;&lt;/span&gt;$CN=$UD.CN&lt;br /&gt;$SN=$UD.SN&lt;br /&gt;$title=$UD.title&lt;br /&gt;$description=$UD.description&lt;br /&gt;$department=$UD.department&lt;br /&gt;$streetAddress=$UD.streetAddress&lt;br /&gt;$postalcode=$UD.postalcode&lt;br /&gt;$telephoneNumber=$UD.telephoneNumber&lt;br /&gt;$givenName=$UD.givenName&lt;br /&gt;$company=$UD.company&lt;br /&gt;$mail=$UD.mail&lt;br /&gt;$homePhone=$UD.homePhone&lt;br /&gt;$mobile=$UD.mobile&lt;br /&gt;$userPrincipalName=$UD.userPrincipalName&lt;br /&gt;$Samaccountname=$UD.Samaccountname &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;$Indiauser=$IndiaOU.create("user","cn=$cn") &lt;span style="color:#ff8000;"&gt;#I created actual user here and later I'm &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#ff8000;"&gt;#filling all properties for user&lt;br /&gt;&lt;/span&gt;$Indiauser.Put("sAMAccountName",$Samaccountname)&lt;br /&gt;$Indiauser.put("SN",$SN)&lt;br /&gt;$Indiauser.put("Title",$Title)&lt;br /&gt;$Indiauser.put("Description",$description)&lt;br /&gt;$Indiauser.put("department",$department)&lt;br /&gt;$Indiauser.put("streetAddress",$streetAddress)&lt;br /&gt;$Indiauser.put('Postalcode',$postalcode)&lt;br /&gt;$Indiauser.put('telephoneNumber',$telephoneNumber)&lt;br /&gt;$Indiauser.put('givenName',$givenName)&lt;br /&gt;$Indiauser.put('company',$company)&lt;br /&gt;$Indiauser.put('mail',$mail)&lt;br /&gt;$Indiauser.put('homePhone',$homePhone)&lt;br /&gt;$Indiauser.put('mobile',$mobile)&lt;br /&gt;$Indiauser.put('userPrincipalName',$userPrincipalName) &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;$Indiauser.setinfo() &lt;span style="color:#ff8000;"&gt;#All data committed. There are lots of other properties you can &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#ff8000;"&gt;#add&lt;br /&gt;&lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;Below here I'm doing two things, First is enable the user and second set password. Because for some reason I'm not able to get these two things done in above loop. It throws exception. But I'm sure it can be included.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;$IndiaOU=new-object directoryservices.directoryentry("LDAP://ou=India,dc=zarays,dc=com")&lt;br /&gt;$UserDetails=Import-Csv "Buser.csv" &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;$userdetails=$IndiaOU.psbase.Children &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;foreach($UD in $UserDetails) {&lt;br /&gt;$CN=$UD.CN&lt;br /&gt;$accts=$IndiaOU.psbase.Children.Find("cn=$CN")&lt;br /&gt;$accts.psbase.Invoke("SetPassword","P@ssW0Rd")&lt;br /&gt;$accts.psbase.InvokeSet('Accountdisabled',$false)&lt;br /&gt;$accts.psbase.CommitChanges()&lt;br /&gt;}&lt;/span&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;Last and least, I'm sure there much better CMDlets to do this job, but what makes me proud it that I've created this script and I understand it very well. As compare to those VBScript scripts available on the net, I can use it but can't customize it. Thanks GOD there is PowerShell Team of Blogs. &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:d0aa8256-1186-4dfa-b1d3-53cafeb6fd0a" contenteditable="false" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;Technorati tags: &lt;a href="http://technorati.com/tags/Powershell" rel="tag"&gt;Powershell&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Active%20Directory" rel="tag"&gt;Active Directory&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:bcf1fe44-b093-4c2e-97b9-384abbe32685" contenteditable="false" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;IceRocket tags: &lt;a href="http://blogs.icerocket.com/search?q=Powershell" rel="tag"&gt;Powershell&lt;/a&gt;, &lt;a href="http://blogs.icerocket.com/search?q=Active%20Directory" rel="tag"&gt;Active Directory&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:ce263ab7-167b-4628-bc32-116fa3c1c021" contenteditable="false" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;del.icio.us tags: &lt;a href="http://del.icio.us/popular/Powershell" rel="tag"&gt;Powershell&lt;/a&gt;, &lt;a href="http://del.icio.us/popular/Active%20Directory" rel="tag"&gt;Active Directory&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;UPDATED :Please check comment where you will see the reason Why code has been updated.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;Marc !! Bingo here it goes..the way it should work. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$IndiaOU=[ADSI]"&lt;/span&gt;&lt;a href="ldap://localhost:389/ou=Singapore,dc=zarays,dc=com"&gt;&lt;span style="color:#000099;"&gt;LDAP://localhost:389/ou=Singapore,dc=zarays,dc=com&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#000099;"&gt;"$UserDetails=Import-Csv "latestusers.csv"&lt;br /&gt;foreach($UD in $UserDetails) {&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$CN=$UD.CN&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$SN=$UD.SN&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$title=$UD.title&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$description=$UD.description&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$department=$UD.department&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$streetAddress=$UD.streetAddress&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$postalcode=$UD.postalcode&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$telephoneNumber=$UD.telephoneNumber&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$givenName=$UD.givenName&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$company=$UD.company&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$mail=$UD.mail&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$homePhone=$UD.homePhone&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$mobile=$UD.mobile&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$userPrincipalName=$UD.userPrincipalName&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$Samaccountname=$UD.Samaccountname&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$Indiauser=$IndiaOU.create("user","cn=$cn")&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$Indiauser.Put("sAMAccountName",$Samaccountname)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$Indiauser.put("SN",$SN)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$Indiauser.put("Title",$title)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$Indiauser.put("Description",$description)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$Indiauser.put("department",$department)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$Indiauser.put("streetAddress",$streetAddress)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$Indiauser.put('telephoneNumber',$telephoneNumber)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$Indiauser.put('givenName',$givenName)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$Indiauser.put('company',$company)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$Indiauser.put('mail',$mail)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$Indiauser.put('homePhone',$homePhone)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$Indiauser.put('mobile',$mobile)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$Indiauser.put('userPrincipalName',$userPrincipalName)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$Indiauser.setinfo()&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$Indiauser.psbase.Invoke("SetPassword","&lt;/span&gt;&lt;a href="mailto:P@ssW0Rd"&gt;&lt;span style="color:#000099;"&gt;P@ssW0Rd")&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$Indiauser.psbase.InvokeSet('Accountdisabled',$false)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;$Indiauser.psbase.CommitChanges()&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-7239948673111347610?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/7239948673111347610/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=7239948673111347610&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/7239948673111347610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/7239948673111347610'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2007/02/bulk-user-creation-using-powershell.html' title='Bulk User Creation using PowerShell'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-7985948709703758064</id><published>2007-02-04T13:37:00.000+08:00</published><updated>2007-02-04T13:40:25.260+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><category scheme='http://www.blogger.com/atom/ns#' term='Active Directory'/><title type='text'>[DSQuery]-With PowerShell</title><content type='html'>&lt;p align="center"&gt;&lt;span style="font-family:georgia,times new roman,times,serif;font-size:180%;"&gt;[DSQuery]-With PowerShell&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family:Times New Roman;font-size:180%;"&gt;&lt;/span&gt;&lt;p align="left"&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;Below post talks about querying AD. However before you go through this post I strongly recommend you go through below link from&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;MOW : - &lt;/span&gt;&lt;a href="http://mow001.blogspot.com/2006/09/powershell-rc2-and-active-directory.html"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;http://mow001.blogspot.com/2006/09/powershell-rc2-and-active-directory.html&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;Let me admit it that below post are original ideas and concept by MOM, here at the most I using better formatting and pulling out corollary out of it.&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;br /&gt;&lt;span style="BACKGROUND-COLOR: rgb(255,255,255);font-family:tahoma,arial,helvetica,sans-serif;" &gt;&lt;strong&gt;Connect to AD&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:100%;"&gt;[adsi]''&lt;br /&gt;$root=[adsi]'' or $root=new-object directoryservices.directoryentry&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:85%;"&gt;&lt;strong&gt;List properties of AD Objects&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:100%;"&gt;$root  fl *&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:85%;"&gt;&lt;strong&gt;List methods of AD Objects&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;span style="font-size:100%;"&gt;$root.psbase  gm -membertype method # Get all methods&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;Walk to the Domain structure to wanted OU&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:100%;"&gt;$root.psbase.Children&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="BACKGROUND-COLOR: #0033ff;font-family:tahoma,arial,helvetica,sans-serif;color:#ffffff;"  &gt;distinguishedName&lt;br /&gt;-----------------&lt;br /&gt;{CN=Builtin,DC=Zarays,DC=com}&lt;br /&gt;{CN=Computers,DC=Zarays,DC=com}&lt;br /&gt;{OU=Domain Controllers,DC=Zarays,DC=com}&lt;br /&gt;{CN=ForeignSecurityPrincipals,DC=Zarays,DC=com}&lt;br /&gt;{OU=France,DC=Zarays,DC=com}&lt;br /&gt;{OU=India,DC=Zarays,DC=com}&lt;br /&gt;{CN=Infrastructure,DC=Zarays,DC=com}&lt;br /&gt;{CN=LostAndFound,DC=Zarays,DC=com}&lt;br /&gt;{CN=NTDS Quotas,DC=Zarays,DC=com}&lt;br /&gt;{CN=Program Data,DC=Zarays,DC=com}&lt;br /&gt;{OU=Singapore,DC=Zarays,DC=com}&lt;br /&gt;{CN=System,DC=Zarays,DC=com}&lt;br /&gt;{OU=UK,DC=Zarays,DC=com}&lt;br /&gt;{CN=Users,DC=Zarays,DC=com}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;$users=$root.psbase.children.find('CN=Users') or $users=new-object directoryservices.directoryentry("&lt;/span&gt;&lt;a&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;LDAP://CN=Users,DC=Zarays,DC=com&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;")&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;-To get properties of user containers&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;$users  fl *&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;-To find user in a container&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;$users.psbase.Children.Find('cn=Preetam')&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;$users.psbase.Children.Find('cn=Preetam')  fl *&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;"&gt;&lt;strong&gt;Corollary 01&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;Lets use this feature.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;$preetam=$users.psbase.Children.Find('cn=Preetam')&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;$shilpa=$users.psbase.Children.Find('cn=shilpa')&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;Compare-Object $preetam.memberOf $shilpa.memberOf&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;Output is&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="BACKGROUND-COLOR: #003399;font-family:tahoma,arial,helvetica,sans-serif;color:#ffffff;"  &gt;InputObject SideIndicator&lt;br /&gt;----------- -------------&lt;br /&gt;CN=Domain Admins,CN=Users,DC=Zarays,DC=com &amp;lt;=&lt;br /&gt;CN=Enterprise Admins,CN=Users,DC=Zarays,DC=com &amp;lt;=&lt;br /&gt;CN=Schema Admins,CN=Users,DC=Zarays,DC=com &amp;lt;=&lt;/span&gt;&lt;/p&gt;&lt;h4&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:85%;"&gt;Which means Shilpa is not member of above group&lt;/span&gt;&lt;/h4&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;strong&gt;Corollary 02&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;$OU=new-object directoryservices.directoryentr&lt;wbr&gt;y("LDAP://&lt;wbr&gt;ou=Singapore,dc=zarays&lt;wbr&gt;,dc=com")&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;$b=$ou.psbase.children&lt;br /&gt;foreach($c in $b) {&lt;br /&gt;$c.mail&lt;br /&gt;} &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;output is Email address of all users inside OU singapore. And these address are generally required when you need to communicate back with your colleagues when you leave you current job &lt;img alt="cool" src="http://writer.zoho.com/wo/images/smiley-cool.gif" border="0" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-7985948709703758064?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/7985948709703758064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=7985948709703758064&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/7985948709703758064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/7985948709703758064'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2007/02/dsquery-with-powershell-below-post.html' title='[DSQuery]-With PowerShell'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-2201016066999709870</id><published>2007-02-02T21:53:00.000+08:00</published><updated>2007-02-04T13:42:04.506+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><category scheme='http://www.blogger.com/atom/ns#' term='Active Directory'/><title type='text'></title><content type='html'>&lt;p&gt;&lt;span style="font-family:Georgia;color:#990000;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="center"&gt;&lt;span style="font-family:Georgia;"&gt;&lt;span style="BACKGROUND-COLOR: #ff99ff;font-size:130%;color:#990000;"  &gt;ACTIVE DIRECTORY AND POWERSHELL&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="center"&gt;&lt;span style="font-family:Georgia;color:#990000;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;"&gt;&lt;span style="color:#cc0000;"&gt;&lt;span style="font-size:+0;"&gt;I want to devote this and may be next month on Active directory and powershell.&lt;/span&gt;Just a simple search on google will lead you to very good posts by MOW. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;color:#cc0000;"&gt;I checked the datestamps and they where way back mid 2006.It is the best thing to start. Also Arul writes a lot on Ad mgmt. But lots of things changed with RC2. I'm looking forward to put same stuff in better format. And these are not only reference but there are lots articles on AD. However I'm looking forward to use powershell's power get proper format, in short MOre with less.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;color:#cc0000;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;color:#cc0000;"&gt;Broadly speaking there are always two things you do with Active directoy, Querying AD and committing changes to AD.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;color:#cc0000;"&gt;Both of these are very very interesting and I'm loving it with powershell by your side.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;"&gt;&lt;span style="font-family:Courier New;color:#003366;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:+0;"&gt;&lt;span style="font-family:Georgia;"&gt;&lt;span style="color:#cc0000;"&gt;&lt;span style="font-size:+0;"&gt;Within System.DirectoryServices &lt;/span&gt;there are two main classess&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:Georgia;color:#cc0000;"&gt;DirectoryEntry for creating objects [Committing changes]&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:Georgia;color:#cc0000;"&gt;DirectorySearcher for searching objects [Querying]&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="font-size:+0;"&gt;&lt;span style="color:#cc0000;"&gt;&lt;span style="font-family:Georgia;"&gt;&lt;code&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;"&gt;&lt;u&gt;Let first create OU's &lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;color:#333333;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;color:#333333;"&gt;Out of it I got little things done by myself. I have created multiple OU's in one go.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family:Georgia;"&gt;&lt;p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;"&gt;$objUser = [ADSI]"&lt;/span&gt;&lt;a&gt;&lt;span style="font-family:Georgia;"&gt;LDAP://localhost:389/Ou=India,dc=zarays,dc=com&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:Georgia;"&gt;" # Connection established with LDAP port&lt;br /&gt;$readfile=get-content "E:PowerShellActiveDirectoryOUList.txt" # Reading file&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;"&gt;foreach($readf in $readfile) {&lt;br /&gt;$ou=$objUser.create("organizationalunit", "ou=$readf") #Creating OU&lt;br /&gt;$ou.setinfo() # Committing changes&lt;br /&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="BACKGROUND-COLOR: #33cc00;font-family:Georgia;" &gt;Following OU's are created assuming India ou is already there&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="BACKGROUND-COLOR: #33cc00;font-family:Georgia;" &gt;Bangalore&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="BACKGROUND-COLOR: #33cc00;font-family:Georgia;" &gt;Chennai&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="BACKGROUND-COLOR: #33cc00;font-family:Georgia;" &gt;NewDelhi &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="BACKGROUND-COLOR: #33cc00;font-family:Georgia;" &gt;Mumbai&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="font-family:Georgia;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;"&gt;&lt;hr /&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;"&gt;&lt;u&gt;Let's edit properties of OU here&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;u&gt;&lt;span style="font-family:Georgia;"&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;color:#990000;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;color:#333333;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;color:#333333;"&gt;$readfile=get-content "E:PowerShellActiveDirectoryOUList.txt"&lt;br /&gt;foreach($ou in $readfile) {&lt;br /&gt;$u=$ou + " Operations"&lt;br /&gt;$OUC=new-object directoryservices.directoryentry("&lt;/span&gt;&lt;a&gt;&lt;span style="font-family:Georgia;color:#333333;"&gt;LDAP://OU=$ou,OU=India,Dc=zarays,dc=com&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:Georgia;"&gt;&lt;span style="color:#333333;"&gt;") &lt;span style="color:#9999ff;"&gt;#connect to OU&lt;br /&gt;&lt;/span&gt;$ouc&lt;br /&gt;$oUc.Put("description", $u) &lt;span style="color:#9999ff;"&gt;#Description but there is one more way to do this.&lt;br /&gt;&lt;/span&gt;$oUc.SetInfo() &lt;span style="color:#9999ff;"&gt;# very important line, this where you says please commit what has been said above.&lt;br /&gt;&lt;/span&gt;}&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="BACKGROUND-COLOR: #33cc00;font-family:Georgia;color:#990000;"  &gt;Descriptions changes to&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="BACKGROUND-COLOR: #33cc00;font-family:Georgia;" &gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family:Georgia;"&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="BACKGROUND-COLOR: #33cc00;font-family:Georgia;" &gt;Bangalore Operations&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="BACKGROUND-COLOR: #33cc00;font-family:Georgia;" &gt;Chennai Operations&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="BACKGROUND-COLOR: #33cc00;font-family:Georgia;" &gt;NewDelhi Operations&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="BACKGROUND-COLOR: #33cc00;font-family:Georgia;" &gt;Mumbai Operations&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family:Georgia;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;hr /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;color:#990000;"&gt;Contents of oulist.txt&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:Georgia;"&gt;Bangalore&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:Georgia;"&gt;Chennai&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:Georgia;"&gt;NewDelhi&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:Georgia;"&gt;Mumbai&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="font-family:Georgia;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;"&gt;REF:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;"&gt;MOW&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://mow001.blogspot.com/2006/06/powershel-and-active-directory-part-1.html"&gt;&lt;span style="font-family:Georgia;"&gt;http://mow001.blogspot.com/2006/06/powershel-and-active-directory-part-1.html&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Georgia;"&gt;ARULK &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://blogs.msdn.com/arulk/"&gt;&lt;span style="font-family:Georgia;"&gt;http://blogs.msdn.com/arulk/&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-2201016066999709870?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/2201016066999709870/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=2201016066999709870&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/2201016066999709870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/2201016066999709870'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2007/02/active-directory-and-powershell-i-want.html' title=''/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-3628259283598747983</id><published>2007-01-29T23:30:00.001+08:00</published><updated>2007-02-04T13:42:52.702+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HotFix'/><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><title type='text'>Hotfix by Powershell</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;p&gt;Script is actually not about Hotfix but more about formatting. How you customize the format of output. &lt;p&gt;$Hotfix=Get-WmiObject Win32_quickfixengineering&lt;br /&gt;$Bulk=@()&lt;br /&gt;foreach($hotf in $hotfix) { &lt;p&gt;if($hotf.hotfixid -like "KB*") {&lt;br /&gt;$Bulk += $Hotf&lt;br /&gt;}&lt;br /&gt;} &lt;p&gt;&lt;span style="color:#800000;"&gt;$Bulk  format-table @{Label="HotFixID" Expression={$_.HotFixID}},&lt;br /&gt;@{Label="InstalledBy"Expression={$_.InstalledBy}},&lt;br /&gt;@{Label="InstalledOn"Expression={$_.InstalledOn}},&lt;br /&gt;@{Label="Descr" Expression={$_.Description}} -autosize&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#400000;"&gt;The way you customize label and more important use of expression&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#400000;"&gt;To get more on this, I have two CSV files and my goal is to append data from both these files. I have imported here CSV but I 'm appending this csv file based on some critiera and that criteria here is Name. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#400000;"&gt;Contents of Name-NC.csv&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Name,NC&lt;br /&gt;Shilpa,1&lt;br /&gt;Paatu,1&lt;br /&gt;Anju,2&lt;br /&gt;Mom,3&lt;br /&gt;Papa,3&lt;br /&gt;Preetam,1 &lt;p&gt;&lt;span style="color:#400000;"&gt;Contents of  Name-City.csv&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Name,City,Age&lt;br /&gt;Preetam,Sng,30&lt;br /&gt;Shilpa,Sng,26&lt;br /&gt;Paatu,Ah,33&lt;br /&gt;Anju,Kh,38&lt;br /&gt;Mom,Ah,56&lt;br /&gt;Papa,Ah,66 &lt;p&gt;So I will check Name in Name-NC and append all the data if the name is present in Name-City.csv. &lt;p&gt;$NC=import-csv Name-NC.csv&lt;br /&gt;$NCT=import-csv Name-City.csv&lt;br /&gt;$BT =@()&lt;br /&gt;$CT =@()&lt;br /&gt;$Tot =@()&lt;br /&gt;foreach ($Name in $NC) {&lt;br /&gt;# write-host $Name.name `t $Name.NC&lt;br /&gt;$CT =$Name.NC&lt;br /&gt;$BT =$NCT  where {$_.name -eq $Name.name}&lt;br /&gt;$BT  format-table @{Label="Name" Expression={$_.name}}, @{Label="City" Expression={$_.city}},&lt;br /&gt;@{Label="Age"Expression={$_.Age}},&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#800000;"&gt;@{Label="Printer"Expression={$Name.NC}}&lt;/span&gt;&lt;/strong&gt; } &lt;p&gt;above code I've mark it as bold. actually I got the whole data (again based on name)from one file and only got one detail from other file(Name-city) . Hope you would be able to use this funda somewhere. &lt;p&gt;&lt;p&gt;Output: &lt;p&gt;&lt;p&gt;Name  City  Age Printer&lt;br /&gt;----       ----     --- -------&lt;br /&gt;Shilpa Sng     26  1 &lt;p&gt;Name City Age Printer&lt;br /&gt;----       ----  ---     -------&lt;br /&gt;Paatu  Ah  33       1 &lt;p&gt;Name City Age Printer&lt;br /&gt;---- ---- --- -------&lt;br /&gt;Anju Kh     38        2 &lt;p&gt;Name City Age Printer&lt;br /&gt;---- ---- --- -------&lt;br /&gt;Mom Ah   56        3 &lt;p&gt;Name City Age Printer&lt;br /&gt;---- ---- --- -------&lt;br /&gt;Papa Ah      66      3 &lt;p&gt;Name     City  Age Printer&lt;br /&gt;---- ---- --- -------&lt;br /&gt;Preetam Sng 30    1 &lt;p&gt;&lt;p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:6379f40a-fd6f-49b8-9a64-637eb20f02e4" contenteditable="false" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;Technorati tags: &lt;a href="http://technorati.com/tags/Powershell" rel="tag"&gt;Powershell&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:532801c2-8ff7-4857-a47e-63c8621eb95e" contenteditable="false" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;IceRocket tags: &lt;a href="http://blogs.icerocket.com/search?q=powershell" rel="tag"&gt;powershell&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-3628259283598747983?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/3628259283598747983/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=3628259283598747983&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/3628259283598747983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/3628259283598747983'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2007/01/hotfix-by-powershell.html' title='Hotfix by Powershell'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-7789612868118321769</id><published>2007-01-24T22:31:00.000+08:00</published><updated>2007-01-24T22:32:34.209+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><title type='text'>SurPriZED</title><content type='html'>&lt;span style="font-family:georgia;font-size:85%;"&gt;hoey, I'm surprised to find me script on Microsoft site. Not because I don't know from where they came to know but I forgot I've send script to win some Goodies on occassion Powershell scripts. Certainly it is Goodies for me. It is very inspiring for me. This continues to fire my senses. &lt;/span&gt;&lt;a href="http://www.microsoft.com/technet/scriptcenter/csc/scripts/media/itunes/index.mspx"&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;http://www.microsoft.com/technet/scriptcenter/csc/scripts/media/itunes/index.mspx&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-7789612868118321769?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.microsoft.com/technet/scriptcenter/csc/scripts/media/itunes/index.mspx' title='SurPriZED'/><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/7789612868118321769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=7789612868118321769&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/7789612868118321769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/7789612868118321769'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2007/01/surprized.html' title='SurPriZED'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-680575392781856648</id><published>2007-01-23T13:00:00.001+08:00</published><updated>2007-02-04T13:43:33.052+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CrashOnCtrl'/><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><title type='text'>Memory Dump configuration check</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;How to check  if Server is configured to capture memory dump . Answer is in the code. From my personal experience whenever Servers faced Bluescreen, we check if the Memory dump file is created if not then we check few things if they are configured properly. Script below simply does it.&lt;/span&gt; &lt;p&gt;______________________________________________________________________ &lt;p&gt;&lt;span style="font-size:85%;"&gt;Write-Host "" &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;# -----------------&amp;gt;Get free space on C Drive where generally memory dump file is configured&lt;br /&gt;$Cdrive=get-wmiobject -class win32_logicaldisk  where {$_.deviceid -eq "c:"}&lt;br /&gt;$CSpace=($Cdrive.FreeSpace/1MB) &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;#-------------------&amp;gt;Converted it in KB's Since all other values are in KB's&lt;br /&gt;Write-Host Free Space on C:\ $CSpace MB &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;#------------------&amp;gt;Lets get memory details of the computer&lt;br /&gt;$TotalMemory=get-wmiobject win32_logicalmemoryconfiguration&lt;br /&gt;$MEM=($totalmemory.TotalPhysicalMemory/1KB)&lt;br /&gt;$PAGE=($totalmemory.Totalpagefilespace/1KB)&lt;br /&gt;Write-host Physical RAM :- $MEM MB&lt;br /&gt;Write-host Pagefile Size :- $Page MB &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;#------------------&amp;gt;Page file size should be atleast 12MB more than Physical RAM&lt;br /&gt;$Recsize=($MEM+12) &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;if ($PAGE -ge $Recsize) { &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;#------------------&amp;gt;There should be enough free space on to capture memory dump. &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;if ($CSpace -ge $Recsize ) {&lt;br /&gt;write-host "Machine should be able to generate kernel dump"&lt;br /&gt;}&lt;br /&gt;else {&lt;br /&gt;write-host "Check disk Space on C: drive if memory dump file is configured on it"&lt;br /&gt;} &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;#------------------&amp;gt;Crash control values are enumerated here&lt;br /&gt;$CrashControl="hklm:\SYSTEM\CurrentControlSet\Control\CrashControl"&lt;br /&gt;$CrashProp=$CrashControl  Get-itemproperty&lt;br /&gt;$CrashNo=$CrashProp.CrashDumpEnabled &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;#----------------&amp;gt;Switch used over here.&lt;/span&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;Switch($CrashNo) { &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;0 { "Memory is NOT configured" }&lt;br /&gt;1 {"Complete memory dump is configured" }&lt;br /&gt;2 {"Kernel memory dump is configured"}&lt;br /&gt;3 {"Small memory dump (64KB)"} &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;} &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;Write-host Dump file location $CrashProp.DumpFile &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;$AutoNo=$CrashProp.AutoReboot&lt;br /&gt;If ($AutoNo -eq "0") {write-host Auto Reboot is not enabled} else {write-host AutoReboot is enabled} &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;$CrashNo=$CrashProp.Overwrite&lt;br /&gt;If ($CrashNo -eq "0") { write-host Overwrite Memory dump option is not enabled} else { write-host Overwrite Memory dump is enabled} &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;} &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;else {Write-Host "Page file size should be atleast 12MB more than RAM"} &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;Write-Host ""&lt;/span&gt; &lt;p&gt;______________________________________________________________________ &lt;p&gt;OutPut:&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:78%;"&gt;Free Space on C:\ 4029056 KB&lt;br /&gt;Physical RAM :- 1039744 KB&lt;br /&gt;Pagefile Size :- 2500248 KB&lt;br /&gt;Machine should be able to generate kernel dump&lt;br /&gt;Kernel memory dump is configured&lt;br /&gt;Dump file location C:\WINDOWS\MEMORY.DMP&lt;br /&gt;Auto Reboot is not enabled&lt;br /&gt;Overwrite Memory dump is enabled&lt;/span&gt;&lt;/p&gt;&lt;p&gt;----------------------------------------------------------&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:78%;"&gt;# References:&lt;br /&gt;#&lt;/span&gt;&lt;a href="http://support.microsoft.com/kb/244139"&gt;&lt;span style="font-size:78%;"&gt;http://support.microsoft.com/kb/244139&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;#&lt;/span&gt;&lt;a href="http://support.microsoft.com/kb/254649"&gt;&lt;span style="font-size:78%;"&gt;http://support.microsoft.com/kb/254649&lt;/span&gt;&lt;/a&gt; &lt;p&gt;&lt;span style="font-size:78%;"&gt;#CrashDumpEnabled REG_DWORD 0x0 = None&lt;br /&gt;#CrashDumpEnabled REG_DWORD 0x1 = Complete memory dump&lt;br /&gt;#CrashDumpEnabled REG_DWORD 0x2 = Kernel memory dump&lt;br /&gt;#CrashDumpEnabled REG_DWORD 0x3 = Small memory dump (64KB)&lt;/span&gt; &lt;p&gt;&lt;/p&gt;&lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:7280bc9b-9b6a-4030-bf5e-d31a0d94ca1e" contenteditable="false" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;Technorati tags: &lt;a href="http://technorati.com/tags/Powershell" rel="tag"&gt;Powershell&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:40ac469c-1afe-4c40-8533-1bf50237d921" contenteditable="false" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;IceRocket tags: &lt;a href="http://blogs.icerocket.com/search?q=Powershell" rel="tag"&gt;Powershell&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-680575392781856648?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/680575392781856648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=680575392781856648&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/680575392781856648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/680575392781856648'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2007/01/memory-dump-configuration-check.html' title='Memory Dump configuration check'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-6777378154753202121</id><published>2007-01-20T19:07:00.001+08:00</published><updated>2007-01-20T19:07:35.544+08:00</updated><title type='text'>One Good Day</title><content type='html'>&lt;p&gt;I discovered great thing today, you can divert the output of text file using out-file.&lt;/p&gt; &lt;p&gt;USAGE : &lt;strong&gt;.\RemoteSvc.ps1 . a* | Out-File services.txt&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;No big deal I know but it is always better to share it. I'm happy today as I was able to use powershell scripts in production enviornment and I was able to get satisfied results. Generally I don't check if the server is reachable, as result for few servers error was thrown. but script continued to work, for this to work in VBScript you will have to type &lt;/p&gt; &lt;p&gt;"On error resume next" at the top of text file or else script will exit&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt; &lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:0a6d2787-bdf8-4aa4-aa7a-96bb8806bcde" contenteditable="false" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;del.icio.us tags: &lt;a href="http://del.icio.us/popular/Powershell" rel="tag"&gt;Powershell&lt;/a&gt;&lt;/div&gt;&lt;/p&gt; &lt;p&gt; &lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:95d66136-9904-4218-9adc-a64c3376f34c" contenteditable="false" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati tags: &lt;a href="http://technorati.com/tags/Powershell" rel="tag"&gt;Powershell&lt;/a&gt;&lt;/div&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-6777378154753202121?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/6777378154753202121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=6777378154753202121&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/6777378154753202121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/6777378154753202121'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2007/01/one-good-day.html' title='One Good Day'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-1971703996752023430</id><published>2007-01-17T22:37:00.001+08:00</published><updated>2007-02-04T13:45:06.384+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='All Programs'/><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><title type='text'>Computer Inventry with Powershell</title><content type='html'>&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Garamond;font-size:100%;"&gt;I'm planning to put here series of code to get the computer inventory of machines. As you could remember last time I got the IP Address of the machine. This time I wanna know how many and what programs are installed on this machine. &lt;/span&gt;&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;color:#804040;"&gt;$ALLPROGS=Get-ChildItem "hklm:\software\microsoft\windows\currentversion\uninstall" ForEach-Object {Get-ItemProperty $_.pspath}&lt;br /&gt;if ($args -eq "sort" )&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;color:#804040;"&gt;{&lt;br /&gt;$ALLPROGS Select-Object displayname,publisher sort publisher&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;color:#804040;"&gt;}&lt;br /&gt;else &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;color:#804040;"&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;color:#804040;"&gt;$ALLPROGS Select-Object displayname,publisher group publisher sort count&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;span style="color:#804040;"&gt;}&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Garamond;font-size:100%;"&gt;I've purposely left this code hanging whether you wish to have group programs or sort by name of the application publisher. Program is simple but fact that I would like to mentioned here, I tried the other way round, which I've pasted just for the sake of not to do do this.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:Garamond;"&gt;USAGE: &lt;span style="color:#ff8000;"&gt;.\AllPrograms02.ps1&lt;/span&gt; sort or &lt;span style="color:#8000ff;"&gt;.\AllPrograms02.ps1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;color:#804000;"&gt;$ALLPROG="hklm:\Software\Microsoft\Windows\CurrentVersion\Uninstall"&lt;br /&gt;$CHILDPROG=get-childitem $ALLPROG&lt;br /&gt;$PROGNAME=$CHILDPROG select-object pschildname&lt;br /&gt;for($i=0;$i -lt $PROGNAME.length; $i++) {&lt;br /&gt;$EACHPROG=$PROGNAME[$i].pschildname&lt;br /&gt;$PROGS="hklm:\Software\Microsoft\Windows\CurrentVersion\Uninstall\$EACHPROG"&lt;br /&gt;$PROGS get-itemproperty select-object displayname,publisher sort displayname&lt;br /&gt;}&lt;/span&gt; &lt;p&gt;&lt;span style="font-family:Garamond;font-size:100%;"&gt;Even though I have mentioned sort by displayname it won't work, sorting fails here because it has to be with POST here... &lt;/span&gt;&lt;p&gt;&lt;a title="http://blogs.msdn.com/powershell/archive/2007/01/11/sorting-out-groupby.aspx" href="http://blogs.msdn.com/powershell/archive/2007/01/11/sorting-out-groupby.aspx"&gt;&lt;span style="font-family:Garamond;font-size:100%;"&gt;http://blogs.msdn.com/powershell/archive/2007/01/11/sorting-out-groupby.aspx&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:Garamond;font-size:100%;"&gt;, just though of keeping it in my mind. Please bear in mind this is not going to work on remote computer, But for me it doesn't matter. Because I'm going to run this everytime I built the server or someone asks me or Best one is to do by using psexec..hahaha. But certainly in future there is would be simpler way to run this across enterprise.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:19e4834f-ad10-4d82-a7d0-7cc4ff5e847f" contenteditable="false" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;Technorati tags: &lt;a href="http://technorati.com/tags/Powershell" rel="tag"&gt;Powershell&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:4859bedb-ce4a-4cab-8dd4-69ec138366bc" contenteditable="false" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; FLOAT: none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;del.icio.us tags: &lt;a href="http://del.icio.us/popular/Powershell" rel="tag"&gt;Powershell&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:250c2444-d815-4721-92dd-a3be6b551f26" contenteditable="false" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;IceRocket tags: &lt;a href="http://blogs.icerocket.com/search?q=Powershell" rel="tag"&gt;Powershell&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-1971703996752023430?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/1971703996752023430/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=1971703996752023430&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/1971703996752023430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/1971703996752023430'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2007/01/computer-inventry-with-powershell.html' title='Computer Inventry with Powershell'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-4027358888213539899</id><published>2007-01-15T12:40:00.001+08:00</published><updated>2007-02-04T13:45:57.530+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><category scheme='http://www.blogger.com/atom/ns#' term='Registry'/><title type='text'>Accessing Registry using PowerShell</title><content type='html'>&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:g;font-size:100%;color:#804040;"&gt;Accessing registry is quite common in Powershell Now, so lets get into it. Idea was to gather inventory of entire computer. I thought lets start with simple code.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;$regpath="HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion"&lt;br /&gt;$items=$regpath  get-itemproperty&lt;br /&gt;$items.RegisteredOwner&lt;br /&gt;$items.systemroot&lt;br /&gt;$items.SourcePath&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Garamond;font-size:100%;color:#804040;"&gt;Then I felt like exploring little more. I came with Idea of getting IP address of machine. When I wrote code I felt it was easy but it went too long than I felt.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#804040;"&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;$NICSPOOL="HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards"&lt;br /&gt;$NOSNIC=get-childitem $NICSPOOL&lt;br /&gt;$EACHNIC=$NOSNIC  select-object pschildname&lt;br /&gt;for($i=0;$i -lt $EACHNIC.length; $i++) {&lt;br /&gt;&lt;span style="color:#ff0080;"&gt;$CardName=$EACHNIC[$i].pschildname&lt;/span&gt;&lt;br /&gt;#Write-host CNAME $CARDNAME&lt;br /&gt;$NICCARDS="HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\$CardName"&lt;br /&gt;$NICPROP=$NICCARDS  Get-ItemProperty&lt;br /&gt;$SVCNAME=$NICPROP.ServiceName&lt;br /&gt;#Write-host $SVCNAME&lt;br /&gt;$Des=$NICPROP.Description&lt;br /&gt;Write-host $Des&lt;br /&gt;$IPPOOL="HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces"&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:Arial;"&gt;&lt;span style="color:#ff0080;"&gt;$IPS=$IPPOOL + "\" + $SVCNAME&lt;br /&gt;&lt;/span&gt;write-host IPS $IPS&lt;br /&gt;$IPPROP=$IPS  Get-itemproperty&lt;br /&gt;#$IPPROP&lt;br /&gt;if ($IPPROP.EnableDHCP -eq 1) {&lt;br /&gt;Write-host IPAddress $IPPROP.DhcpIPAddress&lt;br /&gt;Write-host SubnetMask $IPPROP.DhcpSubnetMask&lt;br /&gt;Write-host DefaultGateway $IPPROP.DhcpDefaultGateway&lt;br /&gt;Write-host DhcpServer $IPPROP.DhcpServer&lt;br /&gt;}&lt;br /&gt;if ($IPPROP.EnableDHCP -eq 0) {&lt;br /&gt;Write-host IPAddress $IPPROP.ipaddress&lt;br /&gt;Write-host SubnetMask $IPPROP.SubnetMask&lt;br /&gt;Write-host DefaultGateway $IPPROP.DefaultGateway&lt;br /&gt;Write-host DNSServer $IPPROP.NameServer&lt;br /&gt;}&lt;br /&gt;write-host ""&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Garamond;font-size:100%;color:#804040;"&gt;Few interesting things I discovered I've marked as pink.Above script assumes you have multiple NIC, nowadays it is more common. And I wanted this script to be enterprize compatible. Script would look for one parameter, DHCP if it is enabled it will get different out. Script did what I wished but only in parts. Again this won;t work across enterprize. So next step was googling.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#804040;"&gt;&lt;span style="font-family:Garamond;font-size:100%;"&gt;Found &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#804040;"&gt;&lt;a title="http://abhishek225.spaces.live.com/blog/cns!13469C7B7CE6E911!145.entry" href="http://abhishek225.spaces.live.com/blog/cns!13469C7B7CE6E911!145.entry"&gt;&lt;span style="font-family:Garamond;font-size:100%;"&gt;http://abhishek225.spaces.live.com/blog/cns!13469C7B7CE6E911!145.entry&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a title="http://mybsinfo.blogspot.com/2007/01/powershell-remote-registry-and-you-part.html" href="http://mybsinfo.blogspot.com/2007/01/powershell-remote-registry-and-you-part.html"&gt;&lt;span style="font-family:Garamond;font-size:100%;"&gt;http://mybsinfo.blogspot.com/2007/01/powershell-remote-registry-and-you-part.html&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Garamond;font-size:100%;color:#804040;"&gt;Both the blogs are quite interesting to an extend which explains remote registry access is possible.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Garamond;font-size:100%;color:#804040;"&gt;Let's take simple example&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;LOCAL REGISTRY ACCESS&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:Arial;"&gt;$regpath="HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\2"&lt;br /&gt;$items=$regpath  get-itemproperty&lt;br /&gt;&lt;span style="color:#ff0080;"&gt;$items.Servicename&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;REMOTE REGISTRY ACCESS&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;$Srv="Singaporelt"&lt;br /&gt;$key = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards"&lt;br /&gt;$type = [Microsoft.Win32.RegistryHive]::LocalMachine&lt;br /&gt;$regKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey($type, $Srv)&lt;br /&gt;$regKey = $regKey.OpenSubKey($key)&lt;br /&gt;Write-Host "Sub Keys"&lt;br /&gt;Write-Host "--------"&lt;br /&gt;Foreach($sub in $regKey.GetSubKeyNames()){&lt;br /&gt;$NICPOOLS = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\$sub"&lt;br /&gt;$regKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey($type, $Srv)&lt;br /&gt;$regKey = $regKey.OpenSubKey($NICPOOLS)&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:Arial;"&gt;&lt;span style="color:#ff0080;"&gt;Foreach($val in $regKey.GetValueNames()) {&lt;br /&gt;if ( $val -eq "Servicename") {&lt;br /&gt;$Keyvalue= $regKey.GetValue("$val")&lt;br /&gt;$Keyvalue&lt;br /&gt;&lt;/span&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Garamond;font-size:100%;color:#804040;"&gt;See the difference in code. No No....it is not about lines in the code but it is property and methods available in local registry are not easily available while accessing remote registry. I was able to get the IP address using remote registry class but output was not quite satisfying and code manipulation was nothing but another vbscript. Yeah I can't expect best of both the worlds...not so early. For simple reason, without .net  knowledge struggle will continue.&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-4027358888213539899?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/4027358888213539899/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=4027358888213539899&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/4027358888213539899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/4027358888213539899'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2007/01/accessing-registry-using-powershell.html' title='Accessing Registry using PowerShell'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-4671663392850632308</id><published>2007-01-12T04:03:00.000+08:00</published><updated>2007-01-13T09:47:42.377+08:00</updated><title type='text'></title><content type='html'>&lt;FONT color=#ffffff&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff"&gt;&lt;FONT face="Arial, sans-serif"&gt;&lt;FONT size=2&gt;&lt;SPAN style="BACKGROUND: #000000"&gt; &lt;P class=MsoNormal style="TEXT-ALIGN: center" align=center&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff"&gt;&lt;STRONG&gt;&lt;FONT size=4&gt;&lt;FONT face=Impact&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;FONT color=#000000 size=5&gt;&lt;FONT color=#cc0000&gt;i&lt;/FONT&gt;&lt;FONT color=#3333ff&gt;P&lt;/FONT&gt;&lt;FONT color=#cc33cc&gt;H&lt;/FONT&gt;&lt;FONT color=#666600&gt;O&lt;/FONT&gt;&lt;FONT color=#33ccff&gt;NE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt; &lt;P class=MsoNormal style="TEXT-ALIGN: center" align=center&gt;&lt;STRONG&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff" face=Impact size=4&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;FONT color=#000000&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff"&gt;&lt;/FONT&gt;&lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;FONT color=#000000&gt;With due release of iPhone, mobile phone market is going to change. Innovation always takes lead. Competitive product O2,HP PDA’s will also need to change their game in order to stay in Market.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff"&gt; &lt;P class=MsoNormal&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff" color=#000000&gt;&lt;/FONT&gt;&lt;/SPAN&gt; &lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff" color=#000000&gt;&lt;STRONG&gt;Another &lt;/STRONG&gt;&lt;/FONT&gt;&lt;A href="http://www.channelnewsasia.com/cna/cgi-bin/search/search_7days.pl?status=&amp;search=iphone&amp;id=251569"&gt;&lt;SPAN style="COLOR: windowtext"&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff"&gt;&lt;STRONG&gt;Article here is cool&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/FONT&gt; &lt;P class=MsoNormal&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff" color=#000000&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt; &lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;FONT style="BACKGROUND-COLOR: #009900" color=#cccccc&gt;&lt;STRONG&gt;I'm already planning one for me due in Asia 2008. It is pretty cheap when I compare with O2 Model. &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;FONT color=#000000&gt;&lt;/FONT&gt;&lt;/SPAN&gt; &lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;FONT style="BACKGROUND-COLOR: #330000"&gt;&lt;FONT color=#ffffff&gt;Full specification of iPhone could be found at&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;A href="http://www.apple.com/iphone"&gt;&lt;SPAN style="COLOR: windowtext"&gt;&lt;STRONG&gt;&lt;FONT style="BACKGROUND-COLOR: #330000" color=#ffffff&gt;http://www.apple.com/iphone&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;FONT style="BACKGROUND-COLOR: #330000" color=#ffffff&gt;.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT style="BACKGROUND-COLOR: #330000" color=#ffffff&gt; &lt;/FONT&gt;&lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: Georgia"&gt;&lt;FONT color=#000000&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff"&gt;&lt;/FONT&gt;&lt;/P&gt; &lt;P class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: Georgia"&gt;&lt;SPAN&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff" color=#000000&gt;                                                                                                                                   &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt; &lt;P class=western lang=en-GB&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff"&gt;&lt;FONT face="Georgia, serif"&gt; &lt;/FONT&gt; &lt;/FONT&gt;&lt;/P&gt; &lt;P class=western lang=en-GB&gt;&lt;BR&gt;&lt;/P&gt; &lt;P class=western lang=en-GB style="MARGIN-LEFT: 1.5in; TEXT-INDENT: 0.5in"&gt;&lt;IMG height=345 src="http://docs.google.com/File?id=d6tpg93_97zjb9xp" width=186 align=bottom border=0 name=graphics3&gt; &lt;/P&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-4671663392850632308?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/4671663392850632308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=4671663392850632308&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/4671663392850632308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/4671663392850632308'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2007/01/i-p-h-o-ne-with-due-release-of-iphone.html' title=''/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-8053969600513754381</id><published>2007-01-11T15:22:00.001+08:00</published><updated>2007-01-12T02:06:43.276+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Techincal'/><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><title type='text'>Managing remote/local services with Pow6r Sh6ll</title><content type='html'>&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:Arial;"&gt;When I was exploring various possibilites from Admin point of view in Powershell, I was never aware that such CMDLET would not work for managing servers remotely. However it was not difficult to implement it when blogs like &lt;/span&gt;&lt;a title="http://thepowershellguy.com/blogs/posh/" href="http://thepowershellguy.com/blogs/posh/"&gt;&lt;span style="font-family:Arial;color:#000000;"&gt;http://thepowershellguy.com/blogs/posh/&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:Arial;"&gt; are available on the Internet. I happen to see MOW blog entry on blogspot (&lt;/span&gt;&lt;a title="http://mow001.blogspot.com/" href="http://mow001.blogspot.com/"&gt;&lt;span style="font-family:Arial;color:#000000;"&gt;http://mow001.blogspot.com/&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:Arial;"&gt;)and there I realized yeah it is possible to do everything remotely same as sysinternal tools can do it. Again .NET Classes.With this idea in my mind, I was able to convert my all existing  CMDLETS for managing stuff remotely. For doing this you should be aware of one very important thing, which classes to load. For example if you run this script as it, it will error out&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;span style="font-size:85%;color:#800000;"&gt;"&lt;/span&gt;Unable to find type [System.ServiceProcess.ServiceController]: make sure that the assembly containing this type is loaded.&lt;span style="font-size:85%;color:#800000;"&gt;"&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;It means nothing but load the revelant classes before I can do anything. Let me admit it I don't know which class to load but to get it work you just run get-services before running the script below. It will internally load the relevant classes. Of course if the information comes from POWERSHELL GURU's, I will post it here.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;color:#800000;"&gt;Write-host $args[0]&lt;br /&gt;$LikeVar= $args[1]&lt;br /&gt;$remSVC=[System.ServiceProcess.ServiceController]::GetServices($args[0])&lt;br /&gt;$remSVC  where {$_.name -like $LikeVar} &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;Let's come to the script.&lt;/span&gt; &lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:Arial;"&gt;$args[0] which is standard variable(default) will pick first word which I have assigned for computername and second variable is your servicename string. Remember I have selected servicename not displayname to query.&lt;span style="font-size:85%;"&gt;Above CMDLET is similiar to sc query  findstr /i al* &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:Arial;"&gt;NOW &lt;span style="font-size:85%;"&gt; it is &lt;u&gt;.\svcvar.ps1 computername al*&lt;/u&gt;. Much simpler. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:Arial;"&gt;&lt;strong&gt;---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;/strong&gt;Now there is scenario where in you need to stop three services on 200 servers across Enterprize. In fact I got this idea because I had dealt with it in reality and I have us SC STOP stuff which was quite murky in a way.&lt;/span&gt;&lt;/span&gt; &lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;color:#800000;"&gt;$Services=get-content "E:\PowerShell\MakesSense\Ser-ices.txt"&lt;br /&gt;$Servers=get-content "E:\PowerShell\MakesSense\Servers.txt"&lt;br /&gt;ForEach($Server in $Servers)    {&lt;br /&gt;    $LOADSVC=[System.ServiceProcess.ServiceController]::GetServices($Server)&lt;br /&gt; foreach($service in $services) {&lt;br /&gt;  $REMSVC=$LOADSVC  where {$_.name -eq $service}&lt;br /&gt;   if ($REMSVC.status -eq "Running") {&lt;br /&gt;    Write-host $REMSVC.stop()&lt;br /&gt;    $REMsvc.WaitForStatus("stopped", (New-TimeSpan -seconds 3))&lt;br /&gt;    Write-host $REMsvc.displayname been successfully stopped on $server&lt;br /&gt;    }&lt;br /&gt;   elseif ($REMSVC.status -eq "Stopped") {&lt;br /&gt;    Write-host $REMsvc.displayname is already in $REMsvc.status state on $server  -foregroundcolor "RED"&lt;br /&gt;    }&lt;br /&gt;   else {&lt;br /&gt;    write-host Please check if $service Service exists on $server -foregroundcolor "RED"&lt;br /&gt;    }&lt;br /&gt;     }&lt;br /&gt; }&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;Write services which you wish to stop in ser-ices.txt and servers in servers.txt on which you wish to manage services. And then code is typical VBSCript code. Most important (new) thing here is how INFANTLY (Simply) I can manage output with $REMsvc.displayname, $REMsvc.status which Re-emphasize DO MORE WITH LESS Principle.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt; &lt;/p&gt;&lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:fc9cf3e7-e2ab-47d5-bd95-799d9b5bd437" contenteditable="false" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; FLOAT: none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;Technorati tags: &lt;a href="http://technorati.com/tags/Powershell" rel="tag"&gt;Powershell&lt;/a&gt;&lt;/div&gt;  &lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:c352ddac-a061-48e2-9a9a-d75b7a9d8e4b" contenteditable="false" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;del.icio.us tags: &lt;a href="http://del.icio.us/popular/Powershell" rel="tag"&gt;Powershell&lt;/a&gt;&lt;/div&gt;  &lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:7b5cef6c-536c-4030-93f5-2447c4677f77" contenteditable="false" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;IceRocket tags: &lt;a href="http://blogs.icerocket.com/search?q=Powershell" rel="tag"&gt;Powershell&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-8053969600513754381?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/8053969600513754381/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=8053969600513754381&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/8053969600513754381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/8053969600513754381'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2007/01/managing-remotelocal-services-with.html' title='Managing remote/local services with Pow6r Sh6ll'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-1063881119756347815</id><published>2007-01-08T18:06:00.001+08:00</published><updated>2007-01-12T02:07:07.984+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Techincal'/><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><title type='text'>Reading Eventlog before and after shutdown</title><content type='html'>&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;color:#800000;"&gt;$gener=Get-EventLog -LogName system  where{$_.eventid -eq "6005"}  sort timegenerated  Select-Object -last 1&lt;br /&gt;$timegen=$gener.timegenerated&lt;br /&gt;$afterReb=get-eventlog -logname system  where{$_.timegenerated -gt $timegen}&lt;br /&gt;Write-host "-------------------------Error Type --------------------------- " -foregroundcolor "WHITE"&lt;br /&gt;$afterReb  Group-Object entrytype&lt;br /&gt;#Start-Sleep -m 500&lt;br /&gt;Write-host " "&lt;br /&gt;Write-host "-------------------------ERRORS --------------------------- " -foregroundcolor "WHITE"&lt;br /&gt;#Start-Sleep -m 500&lt;br /&gt;$afterReb  where{$_.entrytype -eq "error"}  Select-Object timegenerated,Source,EventID,Message  format-list  out-host -paging&lt;br /&gt;#$afterReb  sort-Object entrytype format-list  Out-Host -Paging&lt;br /&gt;Write-host " "&lt;br /&gt;$BforeShtdn=$timegen.addhours(-1)&lt;br /&gt;Write-host "-------------------------Error 1 Hour Before ShutdownType --------------------------- " -foregroundcolor "WHITE"&lt;br /&gt;$LsbforeShtdn=Get-EventLog -LogName system  where{(($_.timegenerated -gt $BforeShtdn) -and ($_.timegenerated -lt $timegen))}&lt;br /&gt;$LsbforeShtdn  sort-Object entrytype format-list  Out-Host -Paging &lt;/span&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;  &lt;/span&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;Suppose you get a call from Helpdesk, that system has gone unexpected shutdown.And now system is up but you wish to know why it went down.So first thing you look is event log. And what is your area of concentration. Obiviously when system went down and if there were any errors before and after shutdown. Exactly same thing this script does. It gets all event logs when system went down unexpectedly. Event ID in this case should be either 6008/6005, you can certainly include that logic here.But not only this I also got event logs before system went down for 1 hour duration. And I'm again amazed by $BforeShtdn=$timegen.addhours(-1), it is simple mathematics. I don't have to do programatically subtraction. Simple Superb. Thanks to Powershell team. &lt;/span&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;Well the script is again very simple, But it should be unique.I parsed the eventlog and filtered out 6005. I got all logs from after this event. Logically all events after system is shutdown. &lt;/span&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;Apart from the script above I found a very simple method to detect the uptime of any computer across the network. &lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:Arial;color:#804040;"&gt;$wmip=get-wmiobject Win32_PerfFormattedData_PerfOS_System -computername "SystemName"&lt;br /&gt;$time=$wmip.SystemUpTime&lt;br /&gt;$uptime=new-timespan -seconds $time&lt;br /&gt;$formattime="{0:N}" -f $uptime&lt;br /&gt;Write-host $formattime [Days:Hours:Minutes:Seconds] &lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family:Arial;color:#804040;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:330ccc0b-67e9-4434-862d-dc0ac12814a4" contenteditable="false" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;Technorati tags: &lt;a href="http://technorati.com/tags/Powershell" rel="tag"&gt;Powershell&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:e3095b73-870b-4b11-8983-a3b69adab74f" contenteditable="false" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;IceRocket tags: &lt;a href="http://blogs.icerocket.com/search?q=Powershell" rel="tag"&gt;Powershell&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-1063881119756347815?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/1063881119756347815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=1063881119756347815&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/1063881119756347815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/1063881119756347815'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2007/01/reading-eventlog-before-and-after.html' title='Reading Eventlog before and after shutdown'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-316632457458475904</id><published>2007-01-05T21:40:00.000+08:00</published><updated>2007-01-05T21:50:19.765+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Techincal'/><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><title type='text'>PowerShell EventLog Parser</title><content type='html'>&lt;span style="font-family:arial;"&gt;&lt;span style="color:#330000;"&gt;#you need Error-Patters.txt which can include any pattern for example terminated failed Stopped unexpected&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;#----------------CODE BEGINS-------------------&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#660000;"&gt;&lt;span style="font-family:arial;"&gt;$Patterns=get-content "E:\Powershell\Makesense\Error-Patters.txt"&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="color:#660000;"&gt;foreach($Pattern in $Patterns) {&lt;br /&gt;$Errevents = get-eventlog -logname system -newest 1000 where{$_.entrytype -eq "error"}&lt;br /&gt;$failedpattern=$Errevents Select-Object eventid,timegenerated,message,source Select-String -Pattern $Pattern&lt;br /&gt;Write-host "________________________" $Pattern "_______________________" -Foregroundcolor "RED"&lt;br /&gt;for($i=0;$i -lt $failedpattern.length; $i++) {&lt;br /&gt;[string]$splitt=$failedpattern[$i]&lt;br /&gt;$splitt.Split(';')&lt;br /&gt;Write-Host "_____________________ " -foregroundcolor "GRAY"&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;#--------------------CODE ENDS---------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;color:#330000;"&gt;Yesterday I was going through basic of Powershell again. Just to see If I could dig out more. I came across select-string, Wow..another beautiful feature. I just wanted to utilized it's full powerBelow example is just sleek and does what things which always expect.&lt;br /&gt;C:\PS&gt;$events = get-eventlog -logname application -newest 100$events select-string -inputobject {$_.message} -pattern "failed"&lt;br /&gt;Below is example in powershell inbuilt help. GET-HELP SELECT-STRING -EXAMPLES&lt;br /&gt;Let's talk about the script. I'm basically going into system event log and then filtering only errors.Once I have errors I check content of the message for text likefailed,stopped,unexpected,terminated. Since this strings might differ in individually cases, I have included them in text file. One I thing I noticed here, output which select-string produceincludes message,eventid,source seperated by ";" So I have to use split command to manipulate the output. I have used again color backgrounds to make it more readable. I'm delighted by the output. Do try out.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-316632457458475904?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/316632457458475904/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=316632457458475904&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/316632457458475904'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/316632457458475904'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2007/01/powershell-eventlog-parser.html' title='PowerShell EventLog Parser'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-3853262895417720240</id><published>2007-01-01T21:31:00.001+08:00</published><updated>2007-01-12T02:07:40.358+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Techincal'/><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><title type='text'>Schedule reboot with PowerShell</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#800000;"&gt;$now=get-date &lt;/span&gt;&lt;p&gt;&lt;span style="color:#800000;"&gt;$MachineName=read-host "Please Enter Machine Name you wish to reboot :" &lt;/span&gt;&lt;p&gt;&lt;span style="color:#800000;"&gt;$When=read-host "Please enter time when you wish to reboot the server Later THAN ($now) :" &lt;/span&gt;&lt;p&gt;&lt;span style="color:#800000;"&gt;$results=$now.subtract($when) &lt;/span&gt;&lt;p&gt;&lt;span style="color:#800000;"&gt;#write-host $Results Results &lt;/span&gt;&lt;p&gt;&lt;span style="color:#800000;"&gt;$time2act=$now.Subtract($results) &lt;/span&gt;&lt;p&gt;&lt;span style="color:#800000;"&gt;#Write-host $time2act is time2act &lt;/span&gt;&lt;p&gt;&lt;span style="color:#800000;"&gt;$action=$time2act.subtract($now) &lt;/span&gt;&lt;p&gt;&lt;span style="color:#800000;"&gt;$Sec2Act= $action.totalseconds &lt;/span&gt;&lt;p&gt;&lt;span style="color:#800000;"&gt;$totalsecs="{0:N0}" -f $Sec2Act &lt;/span&gt;&lt;p&gt;&lt;span style="color:#800000;"&gt;$SecINint=[int]$totalsecs &lt;/span&gt;&lt;p&gt;&lt;span style="color:#800000;"&gt;write-host $testint &lt;/span&gt;&lt;p&gt;&lt;span style="color:#800000;"&gt;if($results -le 0)&lt;br /&gt;{&lt;br /&gt;write-host "done"&lt;br /&gt;Write-host $MachineName "will Reboot in next " $SecINint Seconds&lt;br /&gt;shutdown -s -m $machineName -t $SecINint&lt;br /&gt;}&lt;br /&gt;else {&lt;br /&gt;write-host "Time entered has already past,please enter time later than " [$now] -Background "RED"&lt;br /&gt;}&lt;/span&gt; &lt;p&gt;Due you remember days when you have to apply patches on 1000 servers in phased manner. But in this scenario servers are not rebooted, they are rebooted only when customer/client gives downtime. Such scenario needs a schedule reboot for the server. But what happens when each client gives different reboot time. I thought lets write something on similiar lines, where in we can schedule a reboot of the server as per client's requirement. Above is just the logic, but the script requires few more additions. First is we need to read content of server name, time it is schedule to reboot, which is easily possible to read from text file. And certainly this is small step towards automation. &lt;p&gt;Here I was able to use shutdown.exe command without invoking wscript.shell, which I like the most, which was not possible to do with VBScript. If you run this command you would get computer name prompt, time to enter in specific format and that it. I have tested the script. But I think it will require little more finishing. &lt;p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:1e59b409-407d-4929-aebe-8569f4495760" contenteditable="false" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;Technorati tags: &lt;a href="http://technorati.com/tags/powershell" rel="tag"&gt;powershell&lt;/a&gt;&lt;/div&gt; ; &lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:d8405048-6d0b-4e79-b1dc-63568522a636" contenteditable="false" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; FLOAT: none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;del.icio.us tags: &lt;a href="http://del.icio.us/popular/Powershell" rel="tag"&gt;Powershell&lt;/a&gt;&lt;/div&gt; ; &lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:f461e62b-8247-4419-9347-2365b42be245" contenteditable="false" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;IceRocket tags: &lt;a href="http://blogs.icerocket.com/search?q=Powershell" rel="tag"&gt;Powershell&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-3853262895417720240?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/3853262895417720240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=3853262895417720240&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/3853262895417720240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/3853262895417720240'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2007/01/schedule-reboot-with-powershell.html' title='Schedule reboot with PowerShell'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-6589645345323615133</id><published>2006-12-30T19:46:00.000+08:00</published><updated>2006-12-30T19:53:06.368+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Personal'/><category scheme='http://www.blogger.com/atom/ns#' term='Daily Feeds'/><title type='text'>Review Year 2006</title><content type='html'>&lt;p align="center"&gt;&lt;span style="color:#009900;"&gt;&lt;span style="font-family:Tahoma;"&gt;&lt;span style="BACKGROUND-COLOR: #99ff99;font-size:130%;" &gt;&lt;u&gt;&lt;strong&gt;Review Year 2006&lt;/strong&gt;&lt;/u&gt;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="center"&gt;&lt;/p&gt;&lt;p align="center"&gt;&lt;u&gt;&lt;span style="font-size:100%;"&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;Year 2006, has been far far different than I can put in words. I certainly have experienced it in much different manner than I can imagine. January 2006 I have been to London Via Texaco. It was certainly great opportunity, to understand culture of UK. I liked the fact, people respect each other so much. &lt;u&gt;I have certainly gone down and shared that experience with my friend. Lot of them really liked it. &lt;/u&gt;More I say of UK it will be less. But difficult circumstances lead me to leave Texaco, and I joined Sussee,Singapore. Culture of Singapore is so much different than UK. Two totally different countries. These experience goes far beyond in understanding not only culture but also working style,Architechure of city, Construction, Innovation and above all collating all this information, to do similar things in India at &lt;u&gt;whatever level you can&lt;/u&gt;.I'm thankful to GOD and all other people who have helped me out time and when I needed them, to reach such places. &lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;&lt;span style="font-family:Verdana;color:#000000;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;On career front, I've learnt VB Script, the fact that I felt need within myself to learn, has paid me a lot. Understanding of VB Script has not only increased my domain knowledge but also gave me edge over all other Admins. It was like one day I went to Shop and got the Book for 350 Rs &lt;em&gt;(I'm surprised because I thought it was costly), &lt;/em&gt;Started learning from the Book daily. And what ...I made a daily schedule and started moving towards achieving the goal of finishing it in 3 months Flat. I did it. And during this journey I experienced how powerful,confident you feel when you are about to reach towards your goal. Joyful and pleasant to catch in lucid words. Multiple goal has potential to give this Kind of Happiness. &lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;All those planning,daily schedules got inspired by Robin Sharma's book Monk who .....Great Book. As we all know if you understanding (learn)something and you don't implement it, then you have not understood. Based on this experience I've decided to come up on number of books I should be reading in year 2007. I feel proud to apply the same VB Script knowledge to make Admin life easier in previous and current Organizations. When power shell got released, it was like dream came true, Because my knowledge of VB Script has cultivated my Mind, which obviously saw advantage of PowerShell. As result I have come up with Idea of Blog. &lt;/span&gt;&lt;a title="Techstarts- PowerShell Blog" href="http://techstarts.blogspot.com/" target="blank_"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;Techstarts&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt; has great ideas I had: To utilize power of shell. &lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;Financially year 2006 more or less can compete with BSE Index growth,India. Next year's goal is to leverage on it. &lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;Purchases: Laptop was major and most beneficial. &lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;Trips: Ooty,Kodai Kanal,Mysore &lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;Books Read: Cracking the Code of Millionaire;Monk who sold his Ferrari;Timeless Wisdom;The Man eater of Malgudi;The One Minute Manager;Adventures_of_Sherlock_Holmes. &lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;Relations:This is the front, I have continued to be at lost, Because every time I change my serving point, I lost all relations which has been built in that organization. This is deeply felt by me.Every time I think of it, Blame game starts in my Mind. &lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;hr /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#6666cc;"&gt;I wanted to keep review as small as possible, since I don't think everyone would love to read this. I'm currently reading 8th Habit of highly effective people, inspired by one of the chapters I decided to share few things with you.Since we all know "Knowledge is a power which continues to grow unless you share it." These events were certainly not planned but had I planned I can't say anymore how much effectively year 2006 would've been utilized. &lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#6666cc;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#6666cc;"&gt;But I certainly take this as starting point and this is the place I always consider as base point. From where I would continue to accelerate in forward direction. I would suggest you all to start something like this, so your planning for entire year would start for 2007. &lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#6666cc;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#6666cc;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#6666cc;"&gt;For example: &lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#6666cc;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;div align="left"&gt;&lt;span style="font-family:Tahoma;color:#6666cc;"&gt;How many books you are going to read this year &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="left"&gt;&lt;span style="font-family:Tahoma;color:#6666cc;"&gt;How many days you are planning vacation this year &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="left"&gt;&lt;span style="font-family:Tahoma;color:#6666cc;"&gt;How much you plan to save this year &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div align="left"&gt;&lt;span style="font-family:Tahoma;color:#6666cc;"&gt;Where you want to be at the end of the year &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#6666cc;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#6666cc;"&gt;&lt;em&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;"&gt;&lt;span style="color:#6666cc;"&gt;&lt;em&gt;Below mentioned article inspired me to review 2006 in my life...how about you?.........&lt;/em&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#6666cc;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#6666cc;"&gt;Please feel free to comment. I would certainly look forward at least ONE.&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#6666cc;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="center"&gt;&lt;span style="font-size:130%;"&gt;Happy New Year 200&lt;u&gt;7&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;&lt;hr /&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#009900;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Tahoma;color:#ff6600;"&gt;So, this holiday season, I respectfully suggest that you take the time to review 2006. Find a sacred space, grab your journal and write down your answers to the following questions. First, write the story of the year. Describe how 2006 went for you in as much detail as possible. Open your journal and describe the year that just happened. What were your successes? Your disappointments? What experiences were breathtakingly great? Try to recall each month or season and describe all aspects of your life. Your career, your finances, your relationships, your health, your contribution. Yes, I know that this will take some time. However, leadership is about doing the right things not the easy things.&lt;br /&gt;&lt;br /&gt;Second, look at your goal sheets, schedule and journal from the year. How did you do on your goals? Give yourself a mark for each of your goals. If you committed to running a faster 10k and you did then give yourself a ten out of ten. If you aimed to read 50 books and only read 40 then give yourself and 8 out of 10. After reviewing your performance (big idea: all great companies and leaders look at their past performance) look for patterns. Did you excel and business but let your health slide? Did you let disappointments get in the way? Did you make the necessary mid-course corrections when circumstances changed? Reflect on your decisions. How did you perform as a decision maker? Did later events confirm your assumptions? Did you act too quickly or not quickly enough? &lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#ff6600;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#ff6600;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="left"&gt;&lt;span style="font-family:Tahoma;color:#ff6600;"&gt;- &lt;span style="color:#990000;"&gt;&lt;strong&gt;Robin &lt;span style="BACKGROUND-COLOR: #ffffff"&gt;Sharma&lt;/span&gt;&lt;/strong&gt;&lt;span style="BACKGROUND-COLOR: #ffffff"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-6589645345323615133?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/6589645345323615133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=6589645345323615133&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/6589645345323615133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/6589645345323615133'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2006/12/review-year-2006-year-2006-has-been-far.html' title='Review Year 2006'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-3654001889399098438</id><published>2006-12-29T20:40:00.001+08:00</published><updated>2007-01-12T02:08:44.930+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Techincal'/><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><title type='text'>PowerShell RSS Reader</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;p&gt;&lt;strong&gt;$oIE=new-object -com internetexplorer.application&lt;br /&gt;$oIE.navigate2("About:blank")&lt;br /&gt;while ($oIE.busy) {&lt;br /&gt;sleep -milliseconds 50&lt;br /&gt;}&lt;br /&gt;#$oIE.visible=$true &lt;/strong&gt;&lt;p&gt;&lt;strong&gt;$feed=[xml](new-object system.net.webclient).downloadstring("&lt;/strong&gt;&lt;a href="http://www.rediff.com/rss/newsrss.xml"&gt;&lt;strong&gt;http://www.rediff.com/rss/newsrss.xml&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;") &lt;/strong&gt;&lt;p&gt;&lt;strong&gt;#$feed=[xml]$(get-content C:\Preetam\Money.xml)&lt;br /&gt;$results=$feed.rss.channel.item Select-Object TITLE,DESCRIPTION ConvertTo-Html&lt;br /&gt;$oDocBody=$oIE.document.documentelement.lastchild ;&lt;br /&gt;#populate the document.body&lt;br /&gt;$oDocBody.innerhtml=$results&lt;br /&gt;$oDocBody.style.font="10pt Arial";&lt;br /&gt;$oIE.document.bgcolor="#D7D7EA"&lt;br /&gt;#Reading back from IE.&lt;br /&gt;&lt;/strong&gt;&lt;a href="http://www2.blogger.com/" otbody=""&gt;&lt;strong&gt;$oTBody=@($oIE.document.getElementsByTagName("&gt;&lt;/a&gt;&lt;strong&gt;] ;&lt;br /&gt;foreach ($oRow in $oTBody.childNodes)&lt;br /&gt;{$oRow.bgColor="#AAAAAA" ;}&lt;br /&gt;#Prepare a title.&lt;br /&gt;$oTitle=$oIE.document.createElement("P")&lt;br /&gt;$oTitle.style.font="bold 20pt Arial"&lt;br /&gt;$oTitle.innerhtml="PowerShell NEWS Reader";&lt;br /&gt;$oTitle.align="center" ;&lt;br /&gt;#Display the title before the Table object.&lt;br /&gt;&lt;/strong&gt;&lt;a href="http://www2.blogger.com/" otable=""&gt;&lt;strong&gt;$oTable=@($oIE.document.getElementsByTagName("&gt;&lt;/a&gt;&lt;strong&gt;] ;&lt;br /&gt;$oDocBody.insertBefore($oTitle,$oTable) &amp;gt; $null; &lt;/strong&gt;&lt;p&gt;&lt;strong&gt;#$line=$oIE.document.createTextNode("MADEND")&lt;br /&gt;#$Para=$oIE.document.createElement("HR")&lt;br /&gt;#$oDocBody.appendchild($Para)&lt;br /&gt;#$oDocBody.appendchild($Para)&lt;br /&gt;#$oDocBody.appendchild($line) &lt;/strong&gt;&lt;p&gt;&lt;strong&gt;#--------------------------------------------------------------&lt;/strong&gt; &lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;p&gt;&lt;strong&gt;$feed01=[xml](new-object system.net.webclient).downloadstring("&lt;/strong&gt;&lt;a href="http://www.rediff.com/rss/moneyrss.xml"&gt;&lt;strong&gt;http://www.rediff.com/rss/moneyrss.xml&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;")&lt;br /&gt;$results01=$feed01.rss.channel.item Select-Object TITLE,DESCRIPTION ConvertTo-Html&lt;br /&gt;$oDocBody=$oIE.document.documentelement.lastchild.firstchild ;&lt;br /&gt;#populate the document.body&lt;br /&gt;$oDocBody.innerhtml=$results01&lt;br /&gt;$oDocBody.style.font="10pt Arial";&lt;br /&gt;$oIE.document.bgcolor="#D7D7EA"&lt;br /&gt;#Reading back from IE.&lt;br /&gt;&lt;/strong&gt;&lt;a href="http://www2.blogger.com/" otbody=""&gt;&lt;strong&gt;$oTBody=@($oIE.document.getElementsByTagName("&gt;&lt;/a&gt;&lt;strong&gt;] ;&lt;br /&gt;foreach ($oRow in $oTBody.childNodes)&lt;br /&gt;{&lt;br /&gt;$oRow.bgColor="#336600" ; &lt;/strong&gt;&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;p&gt;&lt;strong&gt;}&lt;br /&gt;#Prepare a title.&lt;br /&gt;$oTitle=$oIE.document.createElement("P")&lt;br /&gt;$oTitle.style.font="bold 20pt Arial"&lt;br /&gt;$oTitle.innerhtml="PowerShell NEWS Reader";&lt;br /&gt;$oTitle.align="center" ;&lt;br /&gt;#Display the title before the Table object.&lt;br /&gt;&lt;/strong&gt;&lt;a href="http://www2.blogger.com/" otable=""&gt;&lt;strong&gt;$oTable=@($oIE.document.getElementsByTagName("&gt;&lt;/a&gt;&lt;strong&gt;] ;&lt;br /&gt;$oDocBody.insertBefore($oTitle,$oTable) &amp;gt; $null;&lt;br /&gt;$oIE.visible=$true &lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;&lt;p&gt;Before I begin, what this script does, let me thank three people over here. &lt;p&gt;Scott Hansell --------&amp;gt; &lt;a href="http://www.hanselman.com/blog"&gt;http://www.hanselman.com/blog&lt;/a&gt; : &lt;i&gt;For giving such superb presentation on parsing XML via PowerShell&lt;/i&gt; ..worth watching... &lt;p&gt;Website Brainjar --------&amp;gt; &lt;a href="http://www.brainjar.com/dhtml/intro/default2.asp"&gt;http://www.brainjar.com/dhtml/intro/default2.asp&lt;/a&gt; &lt;i&gt;This site tells us how to parse HTML tags; I’ was absolutely dumb about it before I visited it. &lt;/i&gt;&lt;p&gt;&lt;i&gt;&lt;/i&gt;&lt;p&gt;PowerShell Blos --------&amp;gt; Yuksel Akinci &lt;a href="http://blogs.msdn.com/powershell/archive/2006/09/10/748883.aspx"&gt;http://blogs.msdn.com/powershell/archive/2006/09/10/748883.aspx&lt;/a&gt; &lt;i&gt;This where I got the hint of parsing and formatting html output.&lt;/i&gt; &lt;p&gt;&lt;i&gt;&lt;/i&gt;&lt;p&gt;Disclaimer: This is no way like a RSS reader, as you get on internet, it is just explains latent potential lies in Powershell to unleash power of XML, Non-programmer like me it has been very simple to prove it. Of course code can be made much more complex get our favourite RSS reader formatted in our own way. And there is already something like this on Wiki (&lt;a href="http://en.wikipedia.org/wiki/Windows_PowerShell"&gt;http://en.wikipedia.org/wiki/Windows_PowerShell&lt;/a&gt;) &lt;p&gt;Code is nothing if you know DOM (document object modelling). &lt;p&gt;$feed=[xml](new-object system.net.webclient).downloadstring(&lt;a href="http://www.rediff.com/rss/newsrss.xml"&gt;http://www.rediff.com/rss/newsrss.xml&lt;/a&gt;) &lt;p&gt;I have pulled two separate XML file from the internet and pasted into HTML document using DOM. To do this I have to typecast which means to convert thing specifically into XML;if this is missing it is normal HTML document. &lt;p&gt;After that I have converted them into html format &lt;p&gt;$results=$feed.rss.channel.item Select-Object TITLE,DESCRIPTION ConvertTo-Html &lt;p&gt;After this everything is about formatting HTML in way it looks as attractive HTML page &lt;p&gt;$oDocBody=$oIE.document.documentelement.lastchild.firstchild ; &lt;p&gt;Above line is important since this line actually pulls the second link and drops it in first child of last child, it can get tricky if you more xml links. &lt;p&gt;Lastly how to run it, you will need to change ("http://www.rediff.com/rss/newsrss.xml") and get your favourite XML link, of course one you have it you don’t need to change everytime. Atleast I’ve made provision for two RSS links, further can be made easily &lt;p&gt;&lt;i&gt;&lt;/i&gt;&lt;p&gt;&lt;i&gt;&lt;/i&gt;&lt;p&gt;&lt;i&gt;&lt;/i&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:80228e0e-6a99-4bca-b4a5-ed1f07378e7f" contenteditable="false" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;Technorati tags: &lt;a href="http://technorati.com/tags/Powershell" rel="tag"&gt;Powershell&lt;/a&gt;, &lt;a href="http://technorati.com/tags/RssReader" rel="tag"&gt;RssReader&lt;/a&gt;, &lt;a href="http://technorati.com/tags/XML" rel="tag"&gt;XML&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:2483eb73-5024-45b5-acb5-521b506aae5c" contenteditable="false" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;del.icio.us tags: &lt;a href="http://del.icio.us/popular/Powershell" rel="tag"&gt;Powershell&lt;/a&gt;, &lt;a href="http://del.icio.us/popular/XML" rel="tag"&gt;XML&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-3654001889399098438?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/3654001889399098438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=3654001889399098438&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/3654001889399098438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/3654001889399098438'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2006/12/powershell-rss-reader.html' title='PowerShell RSS Reader'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-4045631104194035207</id><published>2006-12-25T09:28:00.001+08:00</published><updated>2006-12-25T09:34:31.878+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Techincal'/><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><title type='text'>Bulk Ping Via PowerShell</title><content type='html'>&lt;p&gt;&lt;span style="color:#800040;"&gt;&lt;strong&gt;&lt;u&gt;CODE:&lt;/u&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color:#800040;"&gt;&lt;strong&gt;&lt;em&gt;$readfile=get-content "E:\PowerShell\MakesSense\Servers.txt"&lt;br /&gt;foreach($readf in $readfile)&lt;br /&gt;{&lt;br /&gt;$ALive=get-wmiobject win32_pingstatus -Filter "Address='$readf'" | Select-Object statuscode &lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color:#800040;"&gt;&lt;strong&gt;&lt;em&gt;if($ALive.statuscode -eq 0)&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#800040;"&gt;&lt;strong&gt;&lt;em&gt;{write-host $readf is REACHABLE -background "GREEN" -foreground "BLACk"}&lt;br /&gt;else&lt;br /&gt;{write-host $readf is NOT reachable -background "RED" -foreground "BLACk"}&lt;br /&gt;}&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_2wIB7UjnwnA/RY8qZ_Jv-pI/AAAAAAAAAQI/z6otkXeTUgA/s1600-h/Bulkping.png"&gt;&lt;img style="cursor: pointer;" src="http://4.bp.blogspot.com/_2wIB7UjnwnA/RY8qZ_Jv-pI/AAAAAAAAAQI/z6otkXeTUgA/s320/Bulkping.png" alt="" id="BLOGGER_PHOTO_ID_5012271536224074386" border="0" /&gt;&lt;/a&gt;   &lt;/p&gt;&lt;p&gt;I was reviewing my codes and I realise it would only start making difference only when I show the output. Also most of the codes in previous post might not work, because of formatting. But I want to know which are not actually working. Please let me know if you come across something like this. &lt;/p&gt;&lt;p&gt;Remember to create servers.txt file and put in all servers in txt file which you which to ping.&lt;/p&gt; &lt;p&gt;Apart from this, I'm getting question in similiar nature what can you do with powershell. Yes that is very simple to answer and believe it, if you go to the MS Site mentioned below.&lt;/p&gt; &lt;p&gt;Worth Visiting collection of Powershell Scripts, you are bound to love it.&lt;/p&gt; &lt;p&gt;&lt;a title="What Can I Do With Windows PowerShell?" href="http://www.microsoft.com/technet/scriptcenter/topics/msh/cmdlets/index.mspx" target="_blank"&gt;&lt;strike&gt;&lt;span style="color:#804000;"&gt;What Can I Do With Windows PowerShell?&lt;/span&gt;&lt;/strike&gt;&lt;/a&gt;&lt;/p&gt; &lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:7cfbe10e-621f-45e6-9d80-cbe362223a9e" contenteditable="false" style="margin: 0px; padding: 0px; display: inline; float: none;"&gt;Flickr tags: &lt;a href="http://flickr.com/photos/tags/Powershell" rel="tag"&gt;Powershell&lt;/a&gt;, &lt;a href="http://flickr.com/photos/tags/Scripting" rel="tag"&gt;Scripting&lt;/a&gt;&lt;/div&gt; &lt;p&gt;&lt;/p&gt; &lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:521f054d-517d-4362-9141-cbff623c9dad" contenteditable="false" style="margin: 0px; padding: 0px; display: inline; float: none;"&gt;Technorati tags: &lt;a href="http://technorati.com/tags/Powershell" rel="tag"&gt;Powershell&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Scripting" rel="tag"&gt;Scripting&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-4045631104194035207?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/4045631104194035207/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=4045631104194035207&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/4045631104194035207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/4045631104194035207'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2006/12/bulk-ping-via-powershell.html' title='Bulk Ping Via PowerShell'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_2wIB7UjnwnA/RY8qZ_Jv-pI/AAAAAAAAAQI/z6otkXeTUgA/s72-c/Bulkping.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-9080263880678059744</id><published>2006-12-22T21:15:00.001+08:00</published><updated>2006-12-22T21:15:31.538+08:00</updated><title type='text'>Windows Vista Capable and Premium Ready PCs</title><content type='html'>&lt;p&gt;&lt;font face="Garamond" color="#800080" size="3"&gt;&lt;strong&gt;Please check the link below to get official guide in what exactly is VISTA's requirement.&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Garamond" color="#800080" size="3"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;b&gt;&lt;font face="Garamond" color="#800080" size="3"&gt;A Windows Vista Premium Ready PC includes at least:&lt;/font&gt;&lt;/b&gt;  &lt;ul&gt; &lt;li&gt;&lt;font face="Garamond" color="#800080" size="3"&gt;1 GHz 32-bit (x86) or 64-bit (x64) processor&lt;sup&gt;&lt;a href="http://www.microsoft.com/windowsvista/getready/capablefootnotes.mspx"&gt;1&lt;/a&gt;&lt;/sup&gt;. &lt;/font&gt; &lt;li&gt;&lt;font face="Garamond" color="#800080" size="3"&gt;1 GB of system memory. &lt;/font&gt; &lt;li&gt;&lt;font face="Garamond" color="#800080" size="3"&gt;Support for DirectX 9 graphics with a WDDM driver, 128 MB of graphics memory (minimum)&lt;sup&gt;&lt;a href="http://www.microsoft.com/windowsvista/getready/capablefootnotes.mspx"&gt;2&lt;/a&gt;&lt;/sup&gt;, Pixel Shader 2.0 and 32 bits per pixel. &lt;/font&gt; &lt;li&gt;&lt;font face="Garamond" color="#800080" size="3"&gt;40 GB of hard drive capacity with 15 GB free space. &lt;/font&gt; &lt;li&gt;&lt;font face="Garamond" color="#800080" size="3"&gt;DVD-ROM Drive&lt;sup&gt;&lt;a href="http://www.microsoft.com/windowsvista/getready/capablefootnotes.mspx"&gt;3&lt;/a&gt;&lt;/sup&gt;. &lt;/font&gt; &lt;li&gt;&lt;font face="Garamond" color="#800080" size="3"&gt;Audio output capability. &lt;/font&gt; &lt;li&gt;&lt;font face="Garamond" color="#800080" size="3"&gt;Internet access capability.&lt;/font&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;font face="Garamond" color="#800080" size="3"&gt;Get Feeded here :&lt;/font&gt;&lt;a href="http://www.microsoft.com/windowsvista/getready/capable.mspx"&gt;&lt;font face="Garamond" color="#800080" size="3"&gt;Windows Vista Capable and Premium Ready PCs&lt;/font&gt;&lt;/a&gt;&lt;font face="Garamond" color="#800080" size="3"&gt; &lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="Garamond" color="#800080" size="3"&gt;Vista's Feature :&lt;/font&gt;&lt;a title="http://www.microsoft.com/windowsvista/features/default.mspx" href="http://www.microsoft.com/windowsvista/features/default.mspx" target="_blank"&gt;&lt;font face="Garamond" color="#800080" size="3"&gt;Aero Feature&lt;/font&gt;&lt;/a&gt;&lt;font face="Garamond" color="#800080" size="3"&gt;&amp;nbsp;&amp;nbsp; Let me know how many of them are requirment of daily use at the cost of Hardware.&lt;/font&gt;&lt;/p&gt; &lt;p&gt; &lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:5874b8d4-2bfb-4ce5-a454-76591421ac0b" contenteditable="false" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Flickr tags: &lt;a href="http://flickr.com/photos/tags/Vista" rel="tag"&gt;Vista&lt;/a&gt;, &lt;a href="http://flickr.com/photos/tags/Dailyfeeds" rel="tag"&gt;Dailyfeeds&lt;/a&gt;&lt;/div&gt;&lt;/p&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt; &lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:011d5ee5-5ad0-4902-8452-868e4e4dbe1f" contenteditable="false" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati tags: &lt;a href="http://technorati.com/tags/Vista" rel="tag"&gt;Vista&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Daily%20Feeds" rel="tag"&gt;Daily Feeds&lt;/a&gt;&lt;/div&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-9080263880678059744?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/9080263880678059744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=9080263880678059744&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/9080263880678059744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/9080263880678059744'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2006/12/windows-vista-capable-and-premium-ready.html' title='Windows Vista Capable and Premium Ready PCs'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-249727166289065598</id><published>2006-12-22T05:31:00.000+08:00</published><updated>2006-12-22T05:52:10.647+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MSClustering'/><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><title type='text'>PowerShell-MSClustering</title><content type='html'>&lt;span style="font-size:85%;"&gt;PowerShell -MSCluster-WMI&lt;br /&gt;Word multithreading itself is obfuscating for me, and then think what programming can be for me. But powershell renews interest in me to become one, specially when .Net classes are invoked from here.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#660000;"&gt;Simple example is here&lt;br /&gt;$shell=new-object -com shell.application&lt;br /&gt;$shell.ShutdownWindows()&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And not that, there are so many other Methods available which can of great use, to find them all here...just type&lt;br /&gt;&lt;br /&gt;$shell get-member&lt;br /&gt;&lt;br /&gt;There was some problem in watching recording of web cast, so I decided to download only PPT’s, since I was hungry of codes and the latent thinking that generates in me out of the codes. I saw foreground and background impact. Instantly I thought hmmm looks different. And then mind starts to think….as it is mentioned in &lt;/span&gt;&lt;a href="http://www.the8thhabit.com/"&gt;&lt;span style="font-size:85%;"&gt;8th Habit &lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;No thing is as powerful as the idea whose time has come…..&lt;br /&gt;&lt;br /&gt;Lots of jabbering lets get to the code.&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="color:#660000;"&gt;Write-Host "CLUSTER VIEW ONLY IN THE ORDER OF DEPENDANCY" -backgroundcolor "GREEN" -FOREGROUNDCOLOR "BLACK"&lt;br /&gt;WRITE-HOST " " -backgroundcolor "YELLOW"&lt;br /&gt;WRITE-HOST "RESOURCE: QUROUM" -backgroundcolor "DARKRED"&lt;br /&gt;Get-WmiObject -namespace root\mscluster -computername CLUSTERNAME -class mscluster_resource where{$_.type -eq "Physical Disk"} Select-Object Name,description,State&lt;br /&gt;WRITE-HOST " " -backgroundcolor "GRAY"&lt;br /&gt;WRITE-HOST "RESOURCE: NON SYSTEM DRIVES" -backgroundcolor "DARKRED"&lt;br /&gt;Get-WmiObject -namespace root\mscluster -computername CLUSTERNAME -class mscluster_resource where{$_.type -eq "Volume Manager Disk Group"}&lt;br /&gt;WRITE-HOST " " -backgroundcolor "GRAY"&lt;br /&gt;WRITE-HOST "RESOURCE: IP ADDRESS" -backgroundcolor "DARKRED"&lt;br /&gt;Get-WmiObject -namespace root\mscluster -computername CLUSTERNAME -class mscluster_resource where{$_.type -eq "IP address"}&lt;br /&gt;WRITE-HOST " " -backgroundcolor "GRAY"&lt;br /&gt;WRITE-HOST "RESOURCE: NETWORK NAME" -backgroundcolor "DARKRED"&lt;br /&gt;Get-WmiObject -namespace root\mscluster -computername CLUSTERNAME -class mscluster_resource where{$_.type -eq "Network Name"}&lt;br /&gt;WRITE-HOST " " -backgroundcolor "GRAY"&lt;br /&gt;WRITE-HOST "RESOURCE: FILE SHARE" -backgroundcolor "DARKRED"&lt;br /&gt;Get-WmiObject -namespace root\mscluster -computername CLUSTERNAME -class mscluster_resource where{$_.type -eq "File Share"}&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;Code is very simple but results you get out of it are truly superb. Formatting makes life easier and interesting.I thought of using WMI/Clustering to get the results.&lt;br /&gt;&lt;br /&gt;Lets get to first line&lt;br /&gt;WRITE-HOST "RESOURCE: QUROUM" -backgroundcolor "DARKRED"&lt;br /&gt;Get-WmiObject -namespace root\mscluster -computername CLUSTERNAME -class mscluster_resource where{$_.type -eq "Physical Disk"} Select-Object Name,description,State&lt;br /&gt;&lt;br /&gt;My intention here is to sort cluster resource by type. In other words you puch below line on CMD prompt.&lt;br /&gt;&lt;br /&gt;Cluster /cluster:CLUSTERNAME RESOURCE&lt;br /&gt;&lt;br /&gt;And you would get cluster resources. I sorted these resources by type. Common types are file share,Network Name,Physical disk and third party would like Volume Manager Disk Group. In order to get cluster WMI you have to specifically connect to it. You simply can’t do get-wmiobject win32_Service.&lt;br /&gt;&lt;br /&gt;Once that happen, next code is…&lt;br /&gt;&lt;br /&gt;Write-host “ “ –foregroundcolor “DARKRED”&lt;br /&gt;&lt;br /&gt;Above line, I have put lots of spaces to get you DARKRED thik border.&lt;br /&gt;&lt;br /&gt;Not much…&lt;br /&gt;&lt;br /&gt;I can't get you the output of it, or screen shot, But you won’t be feeling sorry if run similiar in any MSCluster enviornment.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-249727166289065598?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/249727166289065598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=249727166289065598&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/249727166289065598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/249727166289065598'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2006/12/powershell-msclustering.html' title='PowerShell-MSClustering'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-25926443093316946</id><published>2006-12-20T17:28:00.001+08:00</published><updated>2006-12-20T17:28:46.088+08:00</updated><title type='text'>Daily News</title><content type='html'>&lt;p&gt;&lt;font face="ar" size="2"&gt;Google has come with top search for year 2006, have a look.&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;a title="Google's 2006 Top Search" href="http://www.google.com/intl/en/press/zeitgeist2006.html"&gt;&lt;font face="ar" size="2"&gt;2006 Top Searchs&lt;/font&gt;&lt;/a&gt;&lt;/p&gt; &lt;hr&gt;  &lt;p&gt;&lt;font face="ar" size="2"&gt;Firefox version update Firefox 2.0.0.1 is available, as per them it is must to update it. With every update some or other extension stops working.Now blog this is not working for me.&lt;/font&gt;&lt;/p&gt; &lt;hr&gt;  &lt;p&gt;&lt;font face="ar" size="2"&gt;God and Bad of Year 2006 and whole lot of Trends which we have almost forgotten and certainly must read Time Person of the Year:YOU&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://www.time.com/time/magazine/article/0,9171,1570826,00.html"&gt;&lt;font face="ar" size="2"&gt;Go to Time&lt;/font&gt;&lt;/a&gt;&lt;/p&gt; &lt;hr&gt;  &lt;p&gt;&lt;font face="ar" size="2"&gt;To make things easier and faster always use Windows Live Writer, for latest version &lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://windowslivewriter.spaces.live.com/"&gt;&lt;font face="ar" size="2"&gt;Go Here&lt;/font&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;font face="ar" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;/p&gt; &lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:f2877c99-f4d2-4625-81d4-a9a15d07fc5e" contenteditable="false" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati tags: &lt;a href="http://technorati.com/tags/Google" rel="tag"&gt;Google&lt;/a&gt;, &lt;a href="http://technorati.com/tags/FireFox" rel="tag"&gt;FireFox&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Time%20Mag" rel="tag"&gt;Time Mag&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-25926443093316946?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/25926443093316946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=25926443093316946&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/25926443093316946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/25926443093316946'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2006/12/daily-news.html' title='Daily News'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-4669918284795464944</id><published>2006-12-20T09:00:00.001+08:00</published><updated>2006-12-20T09:00:48.817+08:00</updated><title type='text'>PowerShell Lab Experience</title><content type='html'>&lt;p&gt;Set-ExecutionPolicy&lt;/p&gt; &lt;p&gt;Get-ExecutionPolicy&lt;/p&gt; &lt;p&gt;PS E:\&amp;gt; Get-ChildItem E:\PowerShell | measure-object length -Average -Sum -Maximum -Minimum&lt;/p&gt; &lt;p&gt;Count : 4&lt;br&gt;Average : 19491&lt;br&gt;Sum : 77964&lt;br&gt;Maximum : 37856&lt;br&gt;Minimum : 768&lt;br&gt;Property : length&lt;/p&gt; &lt;p&gt;--------------------------------------&amp;nbsp;&lt;/p&gt; &lt;p&gt;PS E:\&amp;gt; Get-ChildItem E:\PowerShell | Group extension  &lt;p&gt;Count Name Group&lt;br&gt;----- ---- -----&lt;br&gt;2 {MakesSense, NeedtoTry}&lt;br&gt;4 .log {Ldisk.log, process.log, properties.log, service.log}&lt;/p&gt; &lt;p&gt;------------------------------------&lt;/p&gt; &lt;p&gt;PS E:\&amp;gt; ((Get-ChildItem C:\WINDOWS\system32 | Measure-Object length -sum).sum)/1MB&lt;br&gt;354.373404502869  &lt;p&gt;------------------------------------  &lt;p&gt;PS E:\&amp;gt; Get-ChildItem c:\ -Recurse -Include *.tmp | select-object pspath  &lt;p&gt;PSPath&lt;br&gt;Microsoft.PowerShell.Core\FileSystem::C:\WINDOWS\system32\CONFIG.TMP&lt;br&gt;Microsoft.PowerShell.Core\FileSystem::C:\WINDOWS\system32\setb6.tmp&lt;br&gt;Microsoft.PowerShell.Core\FileSystem::C:\WINDOWS\SET3.tmp&lt;br&gt;Microsoft.PowerShell.Core\FileSystem::C:\WINDOWS\SET4.tmp&lt;br&gt;Microsoft.PowerShell.Core\FileSystem::C:\WINDOWS\SET8.tmp  &lt;p&gt;------------------  &lt;p&gt;&amp;nbsp;  &lt;p&gt;PS E:\&amp;gt; Get-ChildItem c:\ -Recurse -Include *.tmp | select-object fullname  &lt;p&gt;FullName&lt;br&gt;--------&lt;br&gt;C:\WINDOWS\system32\CONFIG.TMP&lt;br&gt;C:\WINDOWS\system32\setb6.tmp&lt;br&gt;C:\WINDOWS\SET3.tmp&lt;br&gt;C:\WINDOWS\SET4.tmp&lt;br&gt;C:\WINDOWS\SET8.tmp  &lt;p&gt;-----------------------------------  &lt;p&gt;PS E:\&amp;gt; Get-ChildItem C:\Softwares -Recurse | where {$_.length -gt 100MB}  &lt;p&gt;Directory: Microsoft.PowerShell.Core\FileSystem::C:\Softwares\SeverSupportTools\ServicePack01-Win2k3  &lt;p&gt;Mode LastWriteTime Length Name&lt;br&gt;---- ------------- ------ ----&lt;br&gt;-a--- 14/10/2006 20:21 345322744 WindowsServer2003-KB889101-SP1-x86-ENU.exe  &lt;p&gt;-------------------------------------  &lt;p&gt;Get-ChildItem C:\WINDOWS\system32 | Select-Object extension | Sort-Object extension -Unique&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;-------------------------------------&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Get-ChildItem C:\backupfiles.bak -Recurse | ForEach-Object{$D=get-date;$_.lastwritetime=$D}&lt;/p&gt; &lt;p&gt;Technorati Tags:&lt;/p&gt;&lt;a href="http://technorati.com/tag/powershell" rel="tag"&gt;powershell&lt;/a&gt; &lt;a href="http://technorati.com/tag/Windows+powershell" rel="tag"&gt;Windows powershell&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-4669918284795464944?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/4669918284795464944/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=4669918284795464944&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/4669918284795464944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/4669918284795464944'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2006/12/powershell-lab-experience_20.html' title='PowerShell Lab Experience'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-5028684283712252958</id><published>2006-12-19T20:07:00.000+08:00</published><updated>2006-12-20T05:01:27.580+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Techincal'/><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><category scheme='http://www.blogger.com/atom/ns#' term='Daily Feeds'/><title type='text'>Power Shell  Folder Size</title><content type='html'>&lt;p&gt;Yesterday I was going through the Virtual Labs for powershell, and found few more powers of shell. I will posting that in different post soon, I just need to format it. Live writer from MS makes life easy in formatting blogs. Here we go. I wished to find out folder size, similiar like treesize (&lt;em&gt;But not tree size)&lt;/em&gt; &lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;$TotalFoldSZ=0 #total folder size&lt;br /&gt;$foltree=get-childitem "C:\Program Files\iTunes" &lt;span style="COLOR: rgb(128,0,0)"&gt;#Which fold size you wish to check out, this can be easily turn into user's by using read-host&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;foreach ($folt in $foltree) {&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;if($folt.mode -match "d") { &lt;span style="COLOR: rgb(128,0,0)"&gt;#I used mode attribute to get only directories, so what about files in the parent directory...hmm coming to in...:-)&lt;br /&gt;&lt;/span&gt;$fsz=((get-childItem $folt.fullname -recurse Measure-object length -sum).sum)/1MB #Got the size in MB&lt;br /&gt;FSize="{0:N2}" -f $fsz &lt;span style="COLOR: rgb(128,0,0)"&gt;#Formatted to two decimals&lt;br /&gt;&lt;/span&gt;write-host $folt.name $fsize MB &lt;span style="COLOR: rgb(128,0,0)"&gt;# wrote to screen FolderName,FolderSize&lt;br /&gt;&lt;/span&gt;$TotalFSZ=$TotalFSZ+$fsize &lt;span style="COLOR: rgb(128,0,0)"&gt;#To get the total folder size&lt;/span&gt;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;$filesize=(($foltree measure-object length -sum).sum)/1MB &lt;span style="COLOR: rgb(128,0,0)"&gt;#This is where I check if there are files present in the parent folder. If there are&lt;/span&gt; &lt;span style="COLOR: rgb(128,0,0)"&gt;#only files then I will get folder size zero, not to miss that out, I've to include it.&lt;br /&gt;&lt;/span&gt;$fsizeMB="{0:N2}" -f $filesize &lt;span style="COLOR: rgb(128,0,0)"&gt;#Formatted it get in MB&lt;/span&gt;&lt;br /&gt;Write-host Total Size of Folder is ($TotalFSZ+$fsizeMB) MB &lt;span style="COLOR: rgb(128,0,0)"&gt;#here finally I add each folder size and files inside parent folder.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Most important thing in this script is the usage of &lt;strong&gt;((get-childItem $folt.fullname -recurse Measure-object length -sum).sum)/1MB . &lt;/strong&gt;It is just makes life easy, you get powershell to add the file size and report it.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Try this &lt;u&gt;PS E:\&gt; Get-ChildItem E:\PowerShell measure-object length -Average -Sum -Maximum -Minimum&lt;/u&gt; and you will be pleased to see ..yeah it gives number of files in the folder,Average size of the file and maxmimum file size and Minimum file size. Just a thing to note, you can manipulate only file items, I've to checkout if there is something which can do for folders as well.Next thing I would like someone to helpout with the sorting stuff.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Technorati:&lt;a href="http://technorati.com/tag/powershell" rel="tag"&gt;powershell&lt;/a&gt; , &lt;a href="http://technorati.com/tag/Windows+powershell" rel="tag"&gt;Windows powershell&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-5028684283712252958?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/5028684283712252958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=5028684283712252958&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/5028684283712252958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/5028684283712252958'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2006/12/power-shell-folder-size.html' title='Power Shell  Folder Size'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-2749989871639766247</id><published>2006-12-19T06:11:00.000+08:00</published><updated>2006-12-20T05:02:05.497+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Techincal'/><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><category scheme='http://www.blogger.com/atom/ns#' term='Daily Feeds'/><title type='text'>Powershell to view EventLogs</title><content type='html'>I was actually expecting to see some noted difference in event viewer in Vista. If you are core System Admin your job is mostly revolved around finding out in digging logs and then relate it to some meaning full Unexpected Shutdown root cause analysis. And everytime we open event logs we normally tend to open error or warning logs around 6008, unexpected reboot. And then starts the double click attack on every event log in around...to delve in message details. I wonder if there is some better solutions planned in future OS's...just for time being I have got a work around with PowerShell, this is again one Length one liner....&lt;br /&gt;&lt;br /&gt;Get-EventLog -LogName application  where{$_.Entrytype -eq "error"} convertto-html -property timegenerated,Index,Source,Message -title "ErrorLogs" -body "Errors on Server" &gt; log.htm;invoke-item log.htm&lt;br /&gt;&lt;br /&gt;Lets get into details, in fact there is not much technical into, it is straight forward.&lt;br /&gt;&lt;br /&gt;Get-Eventlog -logname Application -------with this line we are in Application log. (Just imagine how many lines you will require to get into appln log via VBSCript)&lt;br /&gt;&lt;br /&gt;We piped it to get only error with $_.Entrytype...Hmmm I was searching for long where is eventtype embedded..in the help file.&lt;br /&gt;&lt;br /&gt;for example: &lt;strong&gt;get-eventlog -logname application  get-member..&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;finally I got it. &lt;span style="font-size:0;"&gt;&lt;i&gt;&lt;span style="font-size:78%;"&gt;I would like this help to be more descriptive, it says everything in greek to non-programmer like me&lt;/span&gt;.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;With above line we got all errors. Here you again have choice how many error/Warning/Information you wish to have. Just modify first line as "Get-EventLog -LogName application -&lt;u&gt;newest 10&lt;/u&gt;"&lt;br /&gt;&lt;br /&gt;Once I have all errors, I asked Powershell to converto-html and with properties as Header I selected TimeGenerated,Message,Source..you select as per your requirement.&lt;br /&gt;&lt;br /&gt;Now last step here is to re-direct the output to htm file and then invoke the same with Invoke-item.&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;a href="http://technorati.com/tag/powershell" rel="tag"&gt;powershell&lt;/a&gt;&lt;br /&gt;&lt;a href="http://technorati.com/tag/Windows+powershell" rel="tag"&gt;Windows powershell&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-2749989871639766247?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/2749989871639766247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=2749989871639766247&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/2749989871639766247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/2749989871639766247'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2006/12/powershell-to-view-eventlogs.html' title='Powershell to view EventLogs'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-3083331733294025159</id><published>2006-12-17T10:59:00.000+08:00</published><updated>2006-12-17T11:00:05.981+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><title type='text'>Power Shell's other side</title><content type='html'>&lt;p&gt;Remember last time I told you powershell's power are far beyond than what you  could observe in this simple blog. It is all because of .Net classes. I've to  get to that level but I few pointers in that directions, Please check this link.  And don't forget to open his homepage and pageflakes.com. For details check the  bottom of this page.&lt;/p&gt; &lt;p&gt;&lt;a href="http://www.codeproject.com/dotnet/DeploySite.asp" target="_blank"&gt;Deployment Scenario using PowerShell&lt;/a&gt;   &lt;/p&gt; &lt;p&gt;Found at &lt;a href="http://tfl09.blogspot.com/" target="_blank"&gt;Under the  Stairs&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://technorati.com/tags/PowerShell" target="_blank"&gt;Technorati:PowerShell&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-3083331733294025159?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/3083331733294025159/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=3083331733294025159&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/3083331733294025159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/3083331733294025159'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2006/12/power-shells-other-side.html' title='Power Shell&apos;s other side'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-1183944318335696715</id><published>2006-12-17T00:02:00.000+08:00</published><updated>2006-12-17T00:06:58.692+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><title type='text'>One Liner Saga Continues</title><content type='html'>Yesterday I read sapien blog yesterday about file age. I was amazed at the power of date formats. I was amazed by simple code&lt;br /&gt;&lt;br /&gt;$age=($now.subtract(($file.LastWriteTime))).days&lt;br /&gt;&lt;br /&gt;After reading, something just strike me, I though date manulation is becoming so easy, to do such a simple thing you have to all sorts of subroutines and method calls. Working in late night in office never gets me easy and happy sleep. I took that time to think about it and later in the morning I though of cracking UPtime from sysinternals via Powershell. So I began....&lt;br /&gt;&lt;br /&gt;With below mentioned code I find out the Magic of one Liner again.&lt;br /&gt;&lt;br /&gt;PS E:\PowerShell\MakesSense&gt; Get-EventLog -LogName system |where {$_.eventid -eq "6005"} |sort timegenerated&lt;br /&gt;&lt;br /&gt;Index Time Type Source EventID Message&lt;br /&gt;----- ---- ---- ------ ------- -------&lt;br /&gt;8237 Nov 29 19:21 Info EventLog 6005 The Event log service was started.&lt;br /&gt;8266 Nov 29 19:42 Info EventLog 6005 The Event log service was started.&lt;br /&gt;8299 Nov 29 20:27 Info EventLog 6005 The Event log service was started.&lt;br /&gt;8497 Dec 02 13:20 Info EventLog 6005 The Event log service was started.&lt;br /&gt;8553 Dec 03 03:55 Info EventLog 6005 The Event log service was started.&lt;br /&gt;8591 Dec 03 12:23 Info EventLog 6005 The Event log service was started.&lt;br /&gt;8632 Dec 03 15:32 Info EventLog 6005 The Event log service was started.&lt;br /&gt;8666 Dec 03 22:01 Info EventLog 6005 The Event log service was started.&lt;br /&gt;8740 Dec 04 22:49 Info EventLog 6005 The Event log service was started.&lt;br /&gt;8818 Dec 06 11:46 Info EventLog 6005 The Event log service was started.&lt;br /&gt;8843 Dec 06 16:51 Info EventLog 6005 The Event log service was started.&lt;br /&gt;8897 Dec 07 10:12 Info EventLog 6005 The Event log service was started.&lt;br /&gt;8957 Dec 08 13:17 Info EventLog 6005 The Event log service was started.&lt;br /&gt;9803 Dec 10 21:13 Info EventLog 6005 The Event log service was started.&lt;br /&gt;9859 Dec 11 14:20 Info EventLog 6005 The Event log service was started.&lt;br /&gt;9933 Dec 12 14:12 Info EventLog 6005 The Event log service was started.&lt;br /&gt;9962 Dec 12 20:20 Info EventLog 6005 The Event log service was started.&lt;br /&gt;10025 Dec 13 11:40 Info EventLog 6005 The Event log service was started.&lt;br /&gt;10077 Dec 14 14:12 Info EventLog 6005 The Event log service was started.&lt;br /&gt;10154 Dec 15 14:41 Info EventLog 6005 The Event log service was started.&lt;br /&gt;10551 Dec 16 22:19 Info EventLog 6005 The Event log service was started.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now next step was to get the system uptime. I got $now=get-date&lt;br /&gt;&lt;br /&gt;$uptime=($now.subtract(($Eve.timegenerated))).days but the next question was how I get the most recent 6005 event, time generated subtracted by current time. There was no way I can find when was last time 6005 was written. I was actually going to use bubble sort. I was stubborn of about not using it. Because somewhere I felt there is no need with Powershell, it will do that for me. And it did. After another 3 hours in struggle I realise there must be something to sort which will give me more specific result and below line cracks UPtime.&lt;br /&gt;&lt;br /&gt;$now=get-date&lt;br /&gt;$events=Get-EventLog -logname system | where {$_.eventid -eq "6005"} | sort timegenerated |select-object -last 1&lt;br /&gt;foreach($Eve in $Events) {&lt;br /&gt;$uptime=($now.subtract(($Eve.timegenerated))).days&lt;br /&gt;$uptimeh=($now.subtract(($Eve.timegenerated))).hours&lt;br /&gt;$uptimem=($now.subtract(($Eve.timegenerated))).Minutes&lt;br /&gt;$uptimes=($now.subtract(($Eve.timegenerated))).Seconds&lt;br /&gt;write-host $uptime Days - $uptimeh Hours - $uptimem Mins -$uptimes Sec&lt;br /&gt;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-1183944318335696715?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://techstarts.blogspot.com/' title='One Liner Saga Continues'/><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/1183944318335696715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=1183944318335696715&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/1183944318335696715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/1183944318335696715'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2006/12/one-liner-saga-continues.html' title='One Liner Saga Continues'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-4470639848043456333</id><published>2006-12-15T14:01:00.000+08:00</published><updated>2006-12-15T22:54:24.689+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><category scheme='http://www.blogger.com/atom/ns#' term='Daily Feeds'/><title type='text'>One Liner New ERA</title><content type='html'>&lt;p&gt;I guess with powershell new era has started, that is all about one liners. Code which takes about min 10 lines in VBScript is reducing to one line and with much better output. below is one of the example which finds out local drive on the computer and list there properties&lt;/p&gt;&lt;p&gt;&lt;em&gt;Power shell code&lt;/em&gt;&lt;/p&gt;&lt;p&gt;$process=get-wmiobject -class win32_logicaldisk where{$_.drivetype -eq 3} &lt;/p&gt;&lt;p&gt;foreach($proc in $process) { &lt;/p&gt;&lt;p&gt;write-host VolumeName :-&gt; $proc.VolumeName &lt;/p&gt;&lt;p&gt;write-host Filesystem :-&gt; $proc.filesystem &lt;/p&gt;&lt;p&gt;write-host Filesize :-&gt; $proc.size &lt;/p&gt;&lt;p&gt;write-host Freespace :-&gt; $proc.FreeSpace &lt;/p&gt;&lt;p&gt;Write-host ======================== &lt;/p&gt;&lt;p&gt;} &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Output is below&lt;/strong&gt; &lt;/p&gt;&lt;p&gt;VolumeName :-&gt;&lt;br /&gt;Filesystem :-&gt; NTFS&lt;br /&gt;Filesize :-&gt; 20974428160&lt;br /&gt;Freespace :-&gt; 2152263680&lt;br /&gt;========================&lt;br /&gt;VolumeName :-&gt; Windows2004&lt;br /&gt;Filesystem :-&gt; NTFS&lt;br /&gt;Filesize :-&gt; 39028953088&lt;br /&gt;Freespace :-&gt; 11977916416&lt;br /&gt;======================== &lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Get-WmiObject -Class win32_logicaldisk | where{$_.drivetype -eq 3} | sort size (Just one line...........) &lt;/p&gt;&lt;p&gt;&lt;strong&gt;OutPut is Below&lt;/strong&gt; &lt;/p&gt;&lt;p&gt;DeviceID : C:&lt;br /&gt;DriveType : 3&lt;br /&gt;ProviderName :&lt;br /&gt;FreeSpace : 2152235008&lt;br /&gt;Size : 20974428160&lt;br /&gt;VolumeName : &lt;/p&gt;&lt;p&gt;DeviceID : E:&lt;br /&gt;DriveType : 3&lt;br /&gt;ProviderName :&lt;br /&gt;FreeSpace : 11977916416&lt;br /&gt;Size : 39028953088&lt;br /&gt;VolumeName : Windows2004 &lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;But power of powershell is explored in different ways I know. I would soon get use to it and come with more examples like this.&lt;/p&gt;Technorati tags: &lt;p&gt;&lt;a href="http://technorati.com/tags/Windows%20PowerShell" rel="tag"&gt;Windows PowerShell&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-4470639848043456333?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/4470639848043456333/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=4470639848043456333&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/4470639848043456333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/4470639848043456333'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2006/12/one-liner-new-era.html' title='One Liner New ERA'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-6776895543749377829</id><published>2006-12-14T22:17:00.000+08:00</published><updated>2006-12-14T22:58:52.170+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Techincal'/><category scheme='http://www.blogger.com/atom/ns#' term='PowerShell'/><category scheme='http://www.blogger.com/atom/ns#' term='Daily Feeds'/><title type='text'>PowerShell -Great Computer Shell and Not just another</title><content type='html'>&lt;a href="http://3.bp.blogspot.com/_2wIB7UjnwnA/RYFewpa9FMI/AAAAAAAAAAM/hjRf2N8K8U4/s1600-h/img016.jpg"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I know there are lots of better and much better articles on Power shell, But still powers of powershell are so much immense that I can't resist tell you what I learnt so far.&lt;br /&gt;&lt;br /&gt;As per Jeffery there are 5 things you must know before you start powershell&lt;br /&gt;&lt;br /&gt;So let's start&lt;br /&gt;Get-Help&lt;br /&gt;Get-Command&lt;br /&gt;Get-alias&lt;br /&gt;Get-PSdrives&lt;br /&gt;Get-Member&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Any Get-Help (command name) has following option&lt;br /&gt;1) Syntax reference&lt;br /&gt;2) -Detail gives detail information&lt;br /&gt;3) –full everything plus more examples&lt;br /&gt;&lt;br /&gt;&lt;u&gt;For example:&lt;/u&gt;&lt;/p&gt;&lt;p&gt;Get-help wmi-object&lt;br /&gt;get-help WmiObject –full&lt;br /&gt;get-help WmiObject -detail&lt;br /&gt;&lt;br /&gt;Get-Help wmi -Examples out-file c:\wmiexa&lt;br /&gt;&lt;em&gt;&lt;span style="font-size:85%;"&gt;(Above command get the results and push over bridge(Pipe) to out-file wmiexa.txt )&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Get-command:&lt;/u&gt; this command not only show what command are available in PS but also can help in search any file on your C-drive. Just try get-command *.dll and see for yourself.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Get-PSDrives:&lt;/u&gt; one of the most daring innovations of PS. You can actually browse into registry using this command and check out what is stored over there and that too much much better format.&lt;br /&gt;&lt;br /&gt;First run get-psdrives and then simple CD into HKLM to get into registry. If you can get into registry sure there is specific way to modify it as well.&lt;br /&gt;&lt;br /&gt;Now G&lt;u&gt;et-member&lt;/u&gt;, I found this command very handy. You know to get details of methods of any class, I use to run scriptomatic if it was WMI Class or move to MSDN, where every min something keep changing, so after min change link goes dead. Don’t trust me, search for Media Player SDK and get proved. But now Jeffery and his team makes this very easy. I don’t mumble out any words check the screen shot below.&lt;br /&gt;&lt;br /&gt;One of the major source of inspiration for me to go for Power Shell , is the Dotnet class can also be invoked from here. This was lacking in VBScript and as result I was actually going to learn VB.net. Thank GOD..And Many thanks to &lt;a href="http://jdhitsolutions.blogspot.com/"&gt;Jeffery Hicks&lt;/a&gt; and his book on Powershell, Please download Powershell sample chapter to learn. &lt;/p&gt;I wanna put screen but it is not getting display properly...I will put in few days on my google pages.&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;a href="http://3.bp.blogspot.com/_2wIB7UjnwnA/RYFewpa9FMI/AAAAAAAAAAM/hjRf2N8K8U4/s1600-h/img016.jpg"&gt;&lt;/a&gt;&lt;p&gt;&lt;a href="http://1.bp.blogspot.com/_2wIB7UjnwnA/RYFfxJa9FNI/AAAAAAAAAAU/oG1egLHhABQ/s1600-h/img016.jpg"&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://1.bp.blogspot.com/_2wIB7UjnwnA/RYFfxJa9FNI/AAAAAAAAAAU/oG1egLHhABQ/s1600-h/img016.jpg"&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-6776895543749377829?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/6776895543749377829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=6776895543749377829&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/6776895543749377829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/6776895543749377829'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2006/12/i-know-there-are-lots-of-better-and.html' title='PowerShell -Great Computer Shell and Not just another'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-9025325570458697192</id><published>2006-12-11T22:00:00.000+08:00</published><updated>2006-12-13T18:40:35.105+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Daily Feeds'/><title type='text'>Daily Feeds</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;br /&gt;I found out a very good Webcast on PowerShell, Worth watching wish I get it some way downloaded for future use. It is given by powerShell Architect. And most important thing about this webcast is that it has 50 min of demo and it is very good quality video.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;There is no point in giving link so take down the title of the Webcast.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;TechNet Webcast: Windows PowerShell: Next Generation Command Line Scripting (Level 300) (ID:1032306183)&lt;/span&gt;&lt;br /&gt;  &lt;script language="JavaScript"&gt;&lt;br /&gt;&lt;!--&lt;br /&gt;&lt;br /&gt;  // Start hit counter code for BlogPatrol.com&lt;br /&gt;  var data = '&amp;r=' + escape(document.referrer)&lt;br /&gt; + '&amp;n=' + escape(navigator.userAgent)&lt;br /&gt; + '&amp;p=' + escape(navigator.userAgent)&lt;br /&gt; + '&amp;g=' + escape(document.location.href);&lt;br /&gt;&lt;br /&gt;  if (navigator.userAgent.substring(0,1)&gt;'3')&lt;br /&gt;    data = data + '&amp;sd=' + screen.colorDepth &lt;br /&gt; + '&amp;sw=' + escape(screen.width+'x'+screen.height);&lt;br /&gt;&lt;br /&gt;  document.write('&lt;a href="http://www.blogpatrol.com" target="_blank" &gt;');&lt;br /&gt;  document.write('&lt;img border=0 hspace=0 '+'vspace=0 src="http://www.blogpatrol.com/counter.php?i=60043' + data + '"&gt;');&lt;br /&gt;  document.write('&lt;/a&gt;');&lt;br /&gt;  // End hit counter code for BlogPatrol.com&lt;br /&gt;&lt;br /&gt;// --&gt;&lt;br /&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-9025325570458697192?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/9025325570458697192/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=9025325570458697192&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/9025325570458697192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/9025325570458697192'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2006/12/daily-feeds.html' title='Daily Feeds'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-6537822142694593150</id><published>2006-12-06T12:19:00.000+08:00</published><updated>2006-12-06T12:38:09.655+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='BookMarks'/><title type='text'>Favorites</title><content type='html'>&lt;span style="font-family:georgia;"&gt;Probably the easiest thing I do is post favorities on this Blog. Below are favorities which I use it frequently when I find nothing to do. Well guys you might be aware now even our favorites are shared and same could be used to get what others have stored in their favorities, this is achieved by utility which comes as add-on with fireFox. Well I have stored most of my book marks on Google's BookMarks, But unfortunately I don't see anyway to import it. Even in Firefox you &lt;u&gt;can't&lt;/u&gt; export BookMarks, sounds unrealistic for me&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;span style="font-family:georgia;font-size:180%;"&gt;SCRIPTING Resources&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size:180%;"&gt;&lt;/span&gt;&lt;div align="left"&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;SearchScripting.com - The Scripting Search Engine&lt;/span&gt;&lt;/div&gt;&lt;a href="http://www.searchscripting.com"&gt;&lt;span style="font-family:georgia;"&gt;www.searchscripting.com&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;ScriptingAnswers.com - VBScript samples&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.scriptinganswers.com"&gt;&lt;span style="font-family:georgia;"&gt;www.scriptinganswers.com&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;The Script Center Script Repository&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/technet/&amp;shy;scriptcenter/scripts/default.mspx"&gt;&lt;span style="font-family:georgia;"&gt;www.microsoft.com/technet/&amp;shy;scriptcenter/scripts/default.mspx&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;DevGuru VBScript Introduction&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.devguru.com"&gt;&lt;span style="font-family:georgia;"&gt;www.devguru.com&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;WMI and VBScript to Query Disk - Tutorial with Basic Examples&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.computerperformance.co.uk"&gt;&lt;span style="font-family:georgia;"&gt;www.computerperformance.co.uk&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;span style="font-family:georgia;font-size:180%;"&gt;Power Shell&lt;/span&gt;&lt;/div&gt;&lt;a href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx"&gt;&lt;span style="font-family:georgia;"&gt;http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;"&gt; POWER SHELL Home Page&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://blogs.msdn.com/PowerShell"&gt;&lt;span style="font-family:georgia;"&gt;http://blogs.msdn.com/PowerShell&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=B4720B00-9A66-430F-BD56-EC48BFCA154F&amp;displaylang=en"&gt;&lt;span style="font-family:georgia;"&gt;Windows PowerShell 1.0 Documentation Pack&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;span style="font-family:georgia;font-size:180%;"&gt;FAQ&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;br /&gt;&lt;a href="http://www.jsifaq.com/"&gt;&lt;span style="font-family:georgia;"&gt;http://www.jsifaq.com/&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://www.svein.dk/Visartikler.asp?ART_id=30&amp;amp;S_Menu=2"&gt;&lt;span style="font-family:georgia;"&gt;http://www.svein.dk/Visartikler.asp?ART_id=30&amp;S_Menu=2&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;"&gt; (WMI Classes non English site)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.windowsitpro.com/windowsnt20002003faq/"&gt;&lt;span style="font-family:georgia;"&gt;http://www.windowsitpro.com/windowsnt20002003faq/&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;span style="font-size:180%;"&gt;Great Resources on clustering Step-by-Step Guide to Installing Cluster Service &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/windows2000/techinfo/planning/server/clustersteps.asp"&gt;http://www.microsoft.com/windows2000/techinfo/planning/server/clustersteps.asp&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="left"&gt;WindowsCluster, windows cluster 2003 &lt;a href="http://www.microsoft.com/windowsserver2003/evaluation/overview/technologies/clustering.mspx"&gt;http://www.microsoft.com/windowsserver2003/evaluation/overview/technologies/clustering.mspx&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;a href="http://www.windowscluster.com/tools.html"&gt;http://www.windowscluster.com/tools.html&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;a href="http://www.nw-america.com/"&gt;http://www.nw-america.com/&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;a href="http://www.nwnetworks.com/cluster.html"&gt;http://www.nwnetworks.com/cluster.html&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;span style="font-family:georgia;"&gt;I would add more. may be a Monthly Activity would be better.&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-6537822142694593150?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/6537822142694593150/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=6537822142694593150&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/6537822142694593150'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/6537822142694593150'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2006/12/favorites.html' title='Favorites'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-3348241129204729866</id><published>2006-11-27T13:24:00.000+08:00</published><updated>2006-11-30T00:46:51.372+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Techincal'/><title type='text'>Command Line experience shared</title><content type='html'>&lt;p  style="font-family:Garamond;"&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;Few weeks back I discovered that you don't need to give anyone Join to domain account permission and neither you need to go to client's place to add the machine to domain, with Netdom you can easily achieve the purpose. Netdom command Microsoft introduced long back with Windows2003 &lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;netdom join /d:zarays.com clu_node_b /userd:zarayspzare_s07 /passwordd:* /usero:administrator /passwordo &lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;Above command is explained. &lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;d: domain name &lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;clu_node_b: Machine name &lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;Userd: who has permission to add machine to domain &lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;usero: who has admin permission on the machine/Workstation &lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;you also have a reboot option , if you use it entire process is automated. &lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;br /&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;Below mentioned commands are introduced starting WinXP SP2 I guess &lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;br /&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;span style="font-family:georgia;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;systeminfo /S \wkstn1 "c:sysinfo.txt"&lt;/strong&gt; this command will help you gather information of remote machine,especially the make/Model.Physical Memory and Page file size stuff, which helps you confirm if the machine is configured for dump analysis.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;sc \server2 query &lt;/strong&gt;this is of great help to control services running on remote machine. If it is way behind when you compare it with Sysinternal utilites.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;br /&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;span style="font-family:georgia;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;eventquery /L application&lt;/strong&gt; I don't want to put this command here but Ithought because it is waste of time using this command. So don't use it at all&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;br /&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;span style="font-family:georgia;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;openfiles /query –s server2 &lt;/strong&gt;: This command will help you get open files on the remote computer. This is generally require when you user call IT Helpdesk Excel is saying file is locked and owner of the file is the owner(user who call IT Helpdesk). It is of great use in this case. But again sysinternal tools are way ahead of it.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;tasklist /s server2 :&lt;/strong&gt; This is good starting point to get information about what is happening on the remote server. Infact it is quickest way of checking things.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;br /&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;span style="font-family:georgia;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;compmgmt.msc /computer=SERVERNAME &lt;/strong&gt;Run this stuff in RUN Box and you don;t need those redundant clicks. You directly get the management console of remote machine. Infact there is one more way of it, I can't recall it right now.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;br /&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;Sysinternals tools are way beyond these few command line tools mentioned above but these tools are not only handy but also widely accepted by cooporate enivornment by default as approved tools by MS. But as far as sysinternal is considered it won't be case any longer since they are working for Microsoft now. But anyways I would be most happy to share few tips and tricks on Sysinternal tools which I have used and customised it. But Next Time&lt;/span&gt;&lt;/p&gt;&lt;a href="http://www.technorati.com/claim/hhdcripri" rel="me"&gt;Technorati Profile&lt;/a&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:Garamond;"&gt;&lt;span style="font-family:georgia;font-size:85%;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-3348241129204729866?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/3348241129204729866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=3348241129204729866&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/3348241129204729866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/3348241129204729866'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2006/11/command-line-experience-shared-few.html' title='Command Line experience shared'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-5922547929086363886</id><published>2006-11-27T12:04:00.000+08:00</published><updated>2006-11-30T00:26:03.018+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Personal'/><title type='text'>thankS GIVING</title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;?xml:namespace prefix = v /&gt;&lt;v:stroke joinstyle="miter"&gt;&lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;v:f eqn="sum @0 1 0"&gt;&lt;v:f eqn="sum 0 0 @1"&gt;&lt;v:f eqn="prod @2 1 2"&gt;&lt;v:f eqn="prod @3 21600 pixelWidth"&gt;&lt;v:f eqn="prod @3 21600 pixelHeight"&gt;&lt;v:f eqn="sum @0 0 1"&gt;&lt;v:f eqn="prod @6 1 2"&gt;&lt;v:f eqn="prod @7 21600 pixelWidth"&gt;&lt;v:f eqn="sum @8 21600 0"&gt;&lt;v:f eqn="prod @7 21600 pixelHeight"&gt;&lt;v:f eqn="sum @10 21600 0"&gt;&lt;v:path extrusionok="f" gradientshapeok="t" connecttype="rect"&gt;&lt;?xml:namespace prefix = o /&gt;&lt;o:lock ext="edit" aspectratio="t"&gt;&lt;v:imagedata src="file:///C:\DOCUME~1\preetam\LOCALS~1\Temp\msohtml1\01\clip_image001.jpg" href="http://photos1.blogger.com/x/blogger2/5457/4530/320/125833/100_0740.jpg"&gt;&lt;br /&gt;&lt;span style="COLOR: rgb(51,0,51);font-family:georgia;font-size:85%;"  &gt;Yesterday I called my friend in &lt;?xml:namespace prefix = st1 /&gt;&lt;st1:country-region st="on"&gt;&lt;st1:place st="on"&gt;India&lt;/st1:place&gt;&lt;/st1:country-region&gt;, but not directly. I called &lt;st1:country-region st="on"&gt;UK&lt;/st1:country-region&gt; number from &lt;st1:country-region st="on"&gt;Singapore&lt;/st1:country-region&gt; and it went to &lt;st1:country-region st="on"&gt;UK&lt;/st1:country-region&gt; which was VOIPed to &lt;st1:country-region st="on"&gt;&lt;st1:place st="on"&gt;India&lt;/st1:place&gt;&lt;/st1:country-region&gt;. But normal person from &lt;st1:country-region st="on"&gt;India&lt;/st1:country-region&gt; cannot call officially from &lt;st1:country-region st="on"&gt;India&lt;/st1:country-region&gt; to anywhere in the &lt;st1:country-region st="on"&gt;&lt;st1:place st="on"&gt;India&lt;/st1:place&gt;&lt;/st1:country-region&gt;(Most Important) then world(less important) in the same manner. We are way behind implementing best technologies even though we are expert in Administration and Managing the same for other countries.&lt;br /&gt;&lt;br /&gt;What so ever. Reason to write a mail is way beyond this. It is To thank you all for being so much helpful. In this busy-ness of life we often forget to say this simple words, with time changing so fast and giving us less oppotunity to talk face - to face&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Sunita:&lt;/b&gt; Thank you for being making me understand what is true love.&lt;br /&gt;&lt;b&gt;Sangli(Place in &lt;st1:place st="on"&gt;Maharashtra&lt;/st1:place&gt;):&lt;/b&gt; Thank you for giving me the much need recluse when I needed the most.&lt;br /&gt;&lt;b&gt;Swati: &lt;/b&gt;Thank you for being helping me out in getting my first job.&lt;br /&gt;&lt;b&gt;Sharat:&lt;/b&gt; Thank you for sharing all your great Experience in UK/Malaysia AnnaLaxmi and so many others stories which are still fresh in My Mind. In way you were preparing me for &lt;st1:country-region st="on"&gt;&lt;st1:place st="on"&gt;Singapore&lt;/st1:place&gt;&lt;/st1:country-region&gt;. But list doesn't end here.It was fortunes of me to have your company.&lt;br /&gt;&lt;b&gt;Shobha:&lt;/b&gt; Thank you for helping out in getting hold of right people in Intricate IBM&lt;br /&gt;&lt;b&gt;Shweta: &lt;/b&gt;Thank you for smoothing out Pre-joining process in Microsoft&lt;br /&gt;&lt;b&gt;Sheila: &lt;/b&gt;Thank you for smoothing out Pre-joining process in Tesco&lt;br /&gt;&lt;b&gt;Srinidhi:&lt;/b&gt; If you where had not refer my name to Srikanth, probably I might never have got a call and had you not ask me to be patient I might be India to receive you at Bangalore airport&lt;br /&gt;&lt;b&gt;Srikanth:&lt;/b&gt; If you were not to act always on your words, I would never have felt confident enough to come to Singapore,Above all I simply miss Bangalore&lt;br /&gt;&lt;b&gt;Shanti: &lt;/b&gt;For finding me better house in Singapore.&lt;br /&gt;&lt;st1:country-region st="on"&gt;&lt;st1:place st="on"&gt;&lt;b&gt;Singapore&lt;/b&gt;&lt;/st1:place&gt;&lt;/st1:country-region&gt;&lt;b&gt; : &lt;/b&gt;Thank you for secure/Friendly and beautiful environment.&lt;br /&gt;&lt;br /&gt;Above all &lt;b&gt;Shilpa&lt;/b&gt; my wife I can't use more better word THANK YOU GOD&lt;br /&gt;&lt;br /&gt;There is certainly a pattern in all above mentioned people(who have had played great role in steering me in right direction), they all start with S. Sharat "S" is actually has brought me where I was destined. However it is not beginning or neither it is End, it is just a occasion where I found a opportunity to THANK YOU ALL on THANKS GIVING DAY. With technology now everything possible but getting support/Guidelines/Help will continue to require effort from all of us.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;span style="color:#333333;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/v:imagedata&gt;&lt;/o:lock&gt;&lt;/v:path&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:stroke&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-5922547929086363886?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/5922547929086363886/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=5922547929086363886&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/5922547929086363886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/5922547929086363886'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2006/11/thanks-giving.html' title='thankS GIVING'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-4181615649497039664</id><published>2006-11-16T12:09:00.000+08:00</published><updated>2006-12-13T18:53:39.657+08:00</updated><title type='text'>New things learnt</title><content type='html'>&lt;a href="http://photos1.blogger.com/blogger2/5457/4530/1600/forBlogs.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://photos1.blogger.com/blogger2/5457/4530/320/forBlogs.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;!--&lt;br /&gt;&lt;br /&gt;  // Start hit counter code for BlogPatrol.com&lt;br /&gt;  var data = '&amp;r=' + escape(document.referrer)&lt;br /&gt; + '&amp;n=' + escape(navigator.userAgent)&lt;br /&gt; + '&amp;p=' + escape(navigator.userAgent)&lt;br /&gt; + '&amp;g=' + escape(document.location.href);&lt;br /&gt;&lt;br /&gt;  if (navigator.userAgent.substring(0,1)&gt;'3')&lt;br /&gt;    data = data + '&amp;sd=' + screen.colorDepth &lt;br /&gt; + '&amp;sw=' + escape(screen.width+'x'+screen.height);&lt;br /&gt;&lt;br /&gt;  document.write('&lt;a href="http://www.blogpatrol.com" target="_blank" &gt;');&lt;br /&gt;  document.write('&lt;img border=0 hspace=0 '+'vspace=0 src="http://www.blogpatrol.com/counter.php?i=60043' + data + '"&gt;');&lt;br /&gt;  document.write('&lt;/a&gt;');&lt;br /&gt;  // End hit counter code for BlogPatrol.com&lt;br /&gt;&lt;br /&gt;// --&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-4181615649497039664?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/4181615649497039664/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=4181615649497039664&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/4181615649497039664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/4181615649497039664'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2006/11/new-things-learnt.html' title='New things learnt'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37115217.post-116263370374171069</id><published>2006-11-04T17:44:00.000+08:00</published><updated>2006-11-30T00:26:57.677+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Techincal'/><title type='text'>Cluster Diagnostic Tool</title><content type='html'>&lt;span style="font-family:georgia;"&gt;Hello Guys, &lt;/span&gt;&lt;p class="MsoNormal" style="TEXT-ALIGN: justify;font-family:arial;" &gt;&lt;?xml:namespace prefix = o /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="TEXT-ALIGN: justify;font-family:arial;" &gt;&lt;span style="font-family:georgia;"&gt;I have been googling for long time to get hold of good guide for cluster diagnostic tool published by MS. I ended up with &lt;/span&gt;&lt;a href="http://www.microsoft.com/technet/prodtechnol/exchange/2003/insider/cluster-diagnostics.mspx"&gt;&lt;span style="font-family:georgia;"&gt;one link&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;"&gt; which gives only way how it works but it never tells you what it is does and what are things which you use to make best of it. And what you should never do. That fact that there aren’t clear guidelines on this tool I decided to explore the tool. You certainly can't explore this tool on production enviornment so created a virtual server and set cluster in i t.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="TEXT-ALIGN: justify;font-family:arial;" &gt;&lt;o:p&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="TEXT-ALIGN: justify;font-family:arial;" &gt;&lt;span style="font-family:georgia;"&gt;CLUSDIAG: can be downloaded from Microsoft site or else if you have resource tool kit installed for windows 2003 then you just need to go to E:\Program Files\Windows Resource Kits\Tools and double click clusdiag.msi. Shortcut is automatically created for this tool on the desktop.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="TEXT-ALIGN: justify;font-family:arial;" &gt;&lt;o:p&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="TEXT-ALIGN: justify;font-family:arial;" &gt;&lt;span style="font-family:georgia;"&gt;Doubleclick the shortcut and start working on it. There are two things in this tool, you can read logs of cluster online (live) or offline. Live is pretty clear to understand and offline is nothing but copy cluster log and paste it any directory and then point this tool to pick log file from that location.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="TEXT-ALIGN: justify;font-family:arial;" &gt;&lt;o:p&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="TEXT-ALIGN: justify;font-family:arial;" &gt;&lt;span style="font-family:georgia;"&gt;Online will be very useful in doing pre-production activities. It gives you disk view and network view. In order to get disk view and network view you will have to run the diagnostic test available under Tools menu or simply press Ctrl+R.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="TEXT-ALIGN: justify;font-family:arial;" &gt;&lt;o:p&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="TEXT-ALIGN: justify;font-family:arial;" &gt;&lt;span style="font-family:georgia;"&gt;Other useful feature of this tool is that you can bookmark and toggle very easily between bookmarks which gives very clear view of what has happened and will helps you in keeping tab of things. By default filter is applied to these logs. You can remove the filter which is of less use because cluster log file becomes more verbose and it is bit of less use right now. To remove default filter navigate to View -&gt; Filer and clear (Shift+F4)&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="TEXT-ALIGN: justify;font-family:arial;" &gt;&lt;o:p&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="TEXT-ALIGN: justify;font-family:arial;" &gt;&lt;span style="font-family:georgia;"&gt;In the end you can also find error code, for example error code is 0 it means it was success, if the error code was 2 the source file couldn’t be located. In order to carry out this activity, open cluster log file, search for word status and check what is the number infront of it. Select only number (&lt;i&gt;try not to select 0 it doesn’t like it&lt;/i&gt;) and go Tools and find win32 error it will give you what will decode the error for you. Here you can try zero. J&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="TEXT-ALIGN: justify;font-family:arial;" &gt;&lt;o:p&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="TEXT-ALIGN: justify;font-family:arial;" &gt;&lt;span style="font-family:georgia;"&gt;Things which are mentioned above are steps which you would certainly like to carry out only on test machine. I hope this log might be of some help to all.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="TEXT-ALIGN: justify;font-family:arial;" &gt;&lt;o:p&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="FONT-FAMILY: arial; TEXT-ALIGN: justify"&gt;&lt;span style="font-family:georgia;"&gt;I'm finding ways how can I put images which makes this whole blog more helpful.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="TEXT-ALIGN: justify" face="arial"&gt;&lt;o:p&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="FONT-FAMILY: arial; TEXT-ALIGN: justify"&gt;&lt;?xml:namespace prefix = v /&gt;&lt;v:shapetype id="_x0000_t75" coordsize="21600,21600" spt="75" preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"&gt;&lt;v:stroke joinstyle="miter"&gt;&lt;v:formulas&gt;&lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;v:f eqn="sum @0 1 0"&gt;&lt;v:f eqn="sum 0 0 @1"&gt;&lt;v:f eqn="prod @2 1 2"&gt;&lt;v:f eqn="prod @3 21600 pixelWidth"&gt;&lt;v:f eqn="prod @3 21600 pixelHeight"&gt;&lt;v:f eqn="sum @0 0 1"&gt;&lt;v:f eqn="prod @6 1 2"&gt;&lt;v:f eqn="prod @7 21600 pixelWidth"&gt;&lt;v:f eqn="sum @8 21600 0"&gt;&lt;v:f eqn="prod @7 21600 pixelHeight"&gt;&lt;v:f eqn="sum @10 21600 0"&gt;&lt;/v:formulas&gt;&lt;v:path extrusionok="f" gradientshapeok="t" connecttype="rect"&gt;&lt;o:lock ext="edit" aspectratio="t"&gt;&lt;/v:shapetype&gt;&lt;v:shape id="_x0000_i1025" type="#_x0000_t75"&gt;&lt;v:imagedata title="Capture_002" src="file:///E:\DOCUME~1\Preetam\LOCALS~1\Temp\msohtml1\01\clip_image001.jpg"&gt;&lt;/v:shape&gt;&lt;span style="font-family:georgia;"&gt;&lt;!--[if !vml]--&gt;&lt;br /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;/p&gt;&lt;/v:imagedata&gt;&lt;/o:lock&gt;&lt;/v:path&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:stroke&gt;&lt;p class="MsoCaption" style="TEXT-ALIGN: justify;font-family:arial;" &gt;&lt;span style="font-family:georgia;"&gt;When you open Clusdiag 1&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;o:p&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;v:shape id="_x0000_i1026" type="#_x0000_t75"&gt;&lt;v:imagedata title="Capture_003" src="file:///E:\DOCUME~1\Preetam\LOCALS~1\Temp\msohtml1\01\clip_image003.jpg"&gt;&lt;/v:shape&gt;&lt;span style="font-family:georgia;"&gt;&lt;!--[if !vml]--&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/4955/4162/1600/Capture_005.jpg"&gt;&lt;span style="font-family:georgia;"&gt;&lt;img style="CURSOR: pointer" alt="" src="http://photos1.blogger.com/blogger/4955/4162/320/Capture_005.jpg" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;"&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;/p&gt;&lt;/v:imagedata&gt;&lt;p class="MsoCaption"  style="font-family:arial;"&gt;&lt;span style="font-family:georgia;"&gt;When you open Online Log 1&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;o:p&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;o:p&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;v:shape id="_x0000_i1027" type="#_x0000_t75"&gt;&lt;v:imagedata title="Capture_004" src="file:///E:\DOCUME~1\Preetam\LOCALS~1\Temp\msohtml1\01\clip_image005.jpg"&gt;&lt;/v:shape&gt;&lt;span style="font-family:georgia;"&gt;&lt;!--[if !vml]--&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/4955/4162/1600/Capture_008.0.jpg"&gt;&lt;span style="font-family:georgia;"&gt;&lt;img style="CURSOR: pointer" alt="" src="http://photos1.blogger.com/blogger/4955/4162/320/Capture_008.0.jpg" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;"&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;/p&gt;&lt;/v:imagedata&gt;&lt;v:shape id="_x0000_i1029" type="#_x0000_t75"&gt;&lt;v:imagedata title="Capture_007" src="file:///E:\DOCUME~1\Preetam\LOCALS~1\Temp\msohtml1\01\clip_image009.jpg"&gt;&lt;/v:shape&gt;&lt;/v:imagedata&gt;&lt;span style="font-family:georgia;"&gt;&lt;!--[if !vml]--&gt;&lt;br /&gt;&lt;!--[endif]--&gt; &lt;/span&gt;&lt;p class="MsoCaption"  style="font-family:arial;"&gt;&lt;span style="font-family:georgia;"&gt;Cluster Log file location 1&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" face="arial"&gt;&lt;o:p&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal" face="arial"&gt;&lt;o:p&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="FONT-FAMILY: arial"&gt;&lt;v:shape id="_x0000_i1030" type="#_x0000_t75"&gt;&lt;v:imagedata title="Capture_008" src="file:///E:\DOCUME~1\Preetam\LOCALS~1\Temp\msohtml1\01\clip_image011.jpg"&gt;&lt;/v:shape&gt;&lt;span style="font-family:georgia;"&gt;&lt;!--[if !vml]--&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/4955/4162/1600/Capture_007.jpg"&gt;&lt;span style="font-family:georgia;"&gt;&lt;img style="CURSOR: pointer" alt="" src="http://photos1.blogger.com/blogger/4955/4162/320/Capture_007.jpg" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;"&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;/p&gt;&lt;/v:imagedata&gt;&lt;p class="MsoCaption"  style="font-family:arial;"&gt;&lt;span style="font-family:georgia;"&gt;Cluster Log file view 1&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="FONT-FAMILY: arial"&gt;&lt;o:p&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="FONT-FAMILY: arial"&gt;&lt;v:shape id="_x0000_i1031" type="#_x0000_t75"&gt;&lt;v:imagedata title="Capture_012" src="file:///E:\DOCUME~1\Preetam\LOCALS~1\Temp\msohtml1\01\clip_image013.jpg"&gt;&lt;/v:shape&gt;&lt;span style="font-family:georgia;"&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;/p&gt;&lt;/v:imagedata&gt;&lt;p class="MsoCaption"  style="font-family:arial;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/4955/4162/1600/Capture_011.jpg"&gt;&lt;span style="font-family:georgia;"&gt;&lt;img style="WIDTH: 392px; CURSOR: pointer; HEIGHT: 248px" alt="" src="http://photos1.blogger.com/blogger/4955/4162/320/Capture_011.jpg" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="MsoCaption" style="FONT-FAMILY: arial"&gt;&lt;span style="font-family:georgia;"&gt;Log file without filter 1#&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="FONT-FAMILY: arial"&gt;&lt;o:p&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="FONT-FAMILY: arial"&gt;&lt;v:shape id="_x0000_i1032" type="#_x0000_t75"&gt;&lt;v:imagedata title="Capture_009" src="file:///E:\DOCUME~1\Preetam\LOCALS~1\Temp\msohtml1\01\clip_image015.jpg"&gt;&lt;/v:shape&gt;&lt;span style="font-family:georgia;"&gt;&lt;!--[if !vml]--&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/4955/4162/1600/Capture_012.jpg"&gt;&lt;span style="font-family:georgia;"&gt;&lt;img style="WIDTH: 387px; CURSOR: pointer; HEIGHT: 238px" alt="" src="http://photos1.blogger.com/blogger/4955/4162/320/Capture_012.jpg" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;"&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;/p&gt;&lt;/v:imagedata&gt;&lt;p class="MsoCaption" face="arial"&gt;&lt;span style="font-family:georgia;"&gt;Decode Win32 Error 1&lt;/span&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/4955/4162/1600/Capture_009.jpg"&gt;&lt;span style="font-family:georgia;"&gt;&lt;img style="CURSOR: pointer" alt="" src="http://photos1.blogger.com/blogger/4955/4162/320/Capture_009.jpg" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;"&gt;&lt;br /&gt;&lt;br /&gt;If you try to click on Network View or Disk view without running the test you are more likely to get this error.&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/4955/4162/1600/Capture_006.jpg"&gt;&lt;span style="font-family:georgia;"&gt;&lt;img style="CURSOR: pointer" alt="" src="http://photos1.blogger.com/blogger/4955/4162/320/Capture_006.jpg" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:georgia;"&gt;&lt;br /&gt;&lt;v:stroke joinstyle="miter"&gt;&lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;v:f eqn="sum @0 1 0"&gt;&lt;v:f eqn="sum 0 0 @1"&gt;&lt;v:f eqn="prod @2 1 2"&gt;&lt;v:f eqn="prod @3 21600 pixelWidth"&gt;&lt;v:f eqn="prod @3 21600 pixelHeight"&gt;&lt;v:f eqn="sum @0 0 1"&gt;&lt;v:f eqn="prod @6 1 2"&gt;&lt;v:f eqn="prod @7 21600 pixelWidth"&gt;&lt;v:f eqn="sum @8 21600 0"&gt;&lt;v:f eqn="prod @7 21600 pixelHeight"&gt;&lt;v:f eqn="sum @10 21600 0"&gt;&lt;v:path extrusionok="f" gradientshapeok="t" connecttype="rect"&gt;&lt;o:lock ext="edit" aspectratio="t"&gt;&lt;v:imagedata title="Capture_002" src="file:///E:\DOCUME~1\Preetam\LOCALS~1\Temp\msohtml1\01\clip_image001.jpg"&gt;&lt;v:imagedata title="Capture_003" src="file:///E:\DOCUME~1\Preetam\LOCALS~1\Temp\msohtml1\01\clip_image003.jpg"&gt;&lt;v:imagedata title="Capture_004" src="file:///E:\DOCUME~1\Preetam\LOCALS~1\Temp\msohtml1\01\clip_image005.jpg"&gt;&lt;v:imagedata title="Capture_007" src="file:///E:\DOCUME~1\Preetam\LOCALS~1\Temp\msohtml1\01\clip_image009.jpg"&gt;&lt;v:imagedata title="Capture_008" src="file:///E:\DOCUME~1\Preetam\LOCALS~1\Temp\msohtml1\01\clip_image011.jpg"&gt;&lt;v:imagedata title="Capture_012" src="file:///E:\DOCUME~1\Preetam\LOCALS~1\Temp\msohtml1\01\clip_image013.jpg"&gt;&lt;v:imagedata title="Capture_009" src="file:///E:\DOCUME~1\Preetam\LOCALS~1\Temp\msohtml1\01\clip_image015.jpg"&gt;&lt;/v:imagedata&gt;&lt;/v:imagedata&gt;&lt;/v:imagedata&gt;&lt;/v:imagedata&gt;&lt;/v:imagedata&gt;&lt;/v:imagedata&gt;&lt;/v:imagedata&gt;&lt;/o:lock&gt;&lt;/v:path&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:stroke&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37115217-116263370374171069?l=techstarts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techstarts.blogspot.com/feeds/116263370374171069/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37115217&amp;postID=116263370374171069&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/116263370374171069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37115217/posts/default/116263370374171069'/><link rel='alternate' type='text/html' href='http://techstarts.blogspot.com/2006/11/cluster-diagnostic-tool.html' title='Cluster Diagnostic Tool'/><author><name>PReetamZ</name><uri>http://www.blogger.com/profile/14324593561554437897</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
