<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Using PowerShell To Get Content From a File</title>
	<atom:link href="http://www.thevirtualblackhole.com/virtual-tech/using-powershell-to-get-content-from-a-file/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thevirtualblackhole.com/virtual-tech/using-powershell-to-get-content-from-a-file</link>
	<description>The Virtual Black Hole</description>
	<pubDate>Thu, 29 Jul 2010 23:58:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: uberVU - social comments</title>
		<link>http://www.thevirtualblackhole.com/virtual-tech/using-powershell-to-get-content-from-a-file#comment-6994</link>
		<dc:creator>uberVU - social comments</dc:creator>
		<pubDate>Tue, 08 Dec 2009 18:01:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.thevirtualblackhole.com/?p=818#comment-6994</guid>
		<description>&lt;strong&gt;Social comments and analytics for this post...&lt;/strong&gt;

This post was mentioned on Twitter by sbeaver: New Blog Post: Using PowerShell To Get Content From a File --  http://bit.ly/6uV5Tl...</description>
		<content:encoded><![CDATA[<p><strong>Social comments and analytics for this post&#8230;</strong></p>
<p>This post was mentioned on Twitter by sbeaver: New Blog Post: Using PowerShell To Get Content From a File &#8212;  <a href="http://bit.ly/6uV5Tl.." rel="nofollow">http://bit.ly/6uV5Tl..</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Twitter Trackbacks for Virtual Black Hole » Blog Archive » Using PowerShell To Get Content From a File [thevirtualblackhole.com] on Topsy.com</title>
		<link>http://www.thevirtualblackhole.com/virtual-tech/using-powershell-to-get-content-from-a-file#comment-6992</link>
		<dc:creator>Twitter Trackbacks for Virtual Black Hole » Blog Archive » Using PowerShell To Get Content From a File [thevirtualblackhole.com] on Topsy.com</dc:creator>
		<pubDate>Tue, 08 Dec 2009 17:05:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.thevirtualblackhole.com/?p=818#comment-6992</guid>
		<description>[...] Virtual Black Hole » Blog Archive » Using PowerShell To Get Content From a File  www.thevirtualblackhole.com/virtual-tech/using-powershell-to-get-content-from-a-file &#8211; view page &#8211; cached  On my quest for PowerShell knowledge I was working on a script to rescan HBA’s and then to list the paths to the datastores but, I only wanted the script to run on certain specific hosts at a time.... Read moreOn my quest for PowerShell knowledge I was working on a script to rescan HBA’s and then to list the paths to the datastores but, I only wanted the script to run on certain specific hosts at a time. Usually the rule is when you add storage or paths to an ESX host you would do this to all hosts in the cluster at the same time and could use PowerShell to list the members of a cluster to work with but I was exploring the option of creating a list of the ESX hosts that I wanted the script to run on and have that list saved in a file. Using the “get-content” cmdlet, I was able to do just that. The only other things was the “foreach” loop, when reading the content of a file, you need to use “foreach-object” cmdlet. Below is an example of the code to read the serverlist.txt file and then use that information to rescan and then refresh the HBA’s. View page [...]</description>
		<content:encoded><![CDATA[<p>[...] Virtual Black Hole » Blog Archive » Using PowerShell To Get Content From a File  <a href="http://www.thevirtualblackhole.com/virtual-tech/using-powershell-to-get-content-from-a-file" rel="nofollow">http://www.thevirtualblackhole.com/virtual-tech/using-powershell-to-get-content-from-a-file</a> &ndash; view page &ndash; cached  On my quest for PowerShell knowledge I was working on a script to rescan HBA’s and then to list the paths to the datastores but, I only wanted the script to run on certain specific hosts at a time&#8230;. Read moreOn my quest for PowerShell knowledge I was working on a script to rescan HBA’s and then to list the paths to the datastores but, I only wanted the script to run on certain specific hosts at a time. Usually the rule is when you add storage or paths to an ESX host you would do this to all hosts in the cluster at the same time and could use PowerShell to list the members of a cluster to work with but I was exploring the option of creating a list of the ESX hosts that I wanted the script to run on and have that list saved in a file. Using the “get-content” cmdlet, I was able to do just that. The only other things was the “foreach” loop, when reading the content of a file, you need to use “foreach-object” cmdlet. Below is an example of the code to read the serverlist.txt file and then use that information to rescan and then refresh the HBA’s. View page [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
