<?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: PowerShell script to check ESX patch status</title>
	<atom:link href="http://pshell.info/vmware/171/powershell-script-to-check-esx-patch-status/feed/" rel="self" type="application/rss+xml" />
	<link>http://pshell.info/vmware/171/powershell-script-to-check-esx-patch-status/</link>
	<description>PowerShell for Everyone</description>
	<pubDate>Tue, 06 Jan 2009 12:56:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: James Kamienski</title>
		<link>http://pshell.info/vmware/171/powershell-script-to-check-esx-patch-status/#comment-662</link>
		<dc:creator>James Kamienski</dc:creator>
		<pubDate>Mon, 19 Nov 2007 22:38:06 +0000</pubDate>
		<guid isPermaLink="false">http://pshell.info/basics/171/powershell-script-to-check-esx-patch-status/#comment-662</guid>
		<description>Oops! A little too quick on the draw...

You also need to add this so it decrypts the password back so it can be used with plink.exe

Below this line:

$password = Read-Host -assecurestring â€œEnter root passwordâ€

Add these:

$Ptr=[System.Runtime.InteropServices.Marshal]::SecureStringToCoTaskMemUnicode($password)
$password = [System.Runtime.InteropServices.Marshal]::PtrToStringUni($Ptr)

Now it should all work....

*8)</description>
		<content:encoded><![CDATA[<p>Oops! A little too quick on the draw&#8230;</p>
<p>You also need to add this so it decrypts the password back so it can be used with plink.exe</p>
<p>Below this line:</p>
<p>$password = Read-Host -assecurestring â€œEnter root passwordâ€</p>
<p>Add these:</p>
<p>$Ptr=[System.Runtime.InteropServices.Marshal]::SecureStringToCoTaskMemUnicode($password)<br />
$password = [System.Runtime.InteropServices.Marshal]::PtrToStringUni($Ptr)</p>
<p>Now it should all work&#8230;.</p>
<p>*8)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Kamienski</title>
		<link>http://pshell.info/vmware/171/powershell-script-to-check-esx-patch-status/#comment-661</link>
		<dc:creator>James Kamienski</dc:creator>
		<pubDate>Mon, 19 Nov 2007 21:35:22 +0000</pubDate>
		<guid isPermaLink="false">http://pshell.info/basics/171/powershell-script-to-check-esx-patch-status/#comment-661</guid>
		<description>A quick suggestion...

Put this line at the top of the script....

$password = Read-Host -assecurestring "Enter root password"

and remove this one...

$password=â€passwordâ€

This way you will be prompted for a password won't have a text file sitting out there with your root password! *8)</description>
		<content:encoded><![CDATA[<p>A quick suggestion&#8230;</p>
<p>Put this line at the top of the script&#8230;.</p>
<p>$password = Read-Host -assecurestring &#8220;Enter root password&#8221;</p>
<p>and remove this one&#8230;</p>
<p>$password=â€passwordâ€</p>
<p>This way you will be prompted for a password won&#8217;t have a text file sitting out there with your root password! *8)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
