<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
	>
<channel>
	<title>Comments on: PowersHell &#8211; (re)setting the root account password</title>
	<atom:link href="http://www.rtfm-ed.co.uk/2009/08/26/powershell-resetting-the-root-account-password/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rtfm-ed.co.uk/2009/08/26/powershell-resetting-the-root-account-password/</link>
	<description>Beyond the Manual, with Mike Laverick (VCI, VCP, CCI, CCEA, MCT, MCSE)</description>
	<lastBuildDate>Tue, 07 Feb 2012 21:25:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Mike Laverick</title>
		<link>http://www.rtfm-ed.co.uk/2009/08/26/powershell-resetting-the-root-account-password/comment-page-1/#comment-38884</link>
		<dc:creator>Mike Laverick</dc:creator>
		<pubDate>Fri, 25 Sep 2009 11:59:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.rtfm-ed.co.uk/?p=1630#comment-38884</guid>
		<description>What I&#039;d like to do with PowerShell is ENABLE the SSH access to ESXi. At the moment I have to use Tech Support Mode to edit the inetd.conf file and remark out the # for the sshd daemon... Every factory reset I do puts the ESXi host back to the default settings...</description>
		<content:encoded><![CDATA[<p>What I&#8217;d like to do with PowerShell is ENABLE the SSH access to ESXi. At the moment I have to use Tech Support Mode to edit the inetd.conf file and remark out the # for the sshd daemon&#8230; Every factory reset I do puts the ESXi host back to the default settings&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: What would happen if I tried this Linux command? &#124; Linux Accounting</title>
		<link>http://www.rtfm-ed.co.uk/2009/08/26/powershell-resetting-the-root-account-password/comment-page-1/#comment-38880</link>
		<dc:creator>What would happen if I tried this Linux command? &#124; Linux Accounting</dc:creator>
		<pubDate>Fri, 25 Sep 2009 07:38:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.rtfm-ed.co.uk/?p=1630#comment-38880</guid>
		<description>[...] RTFM Education » Blog Archive » PowersHell - (re)setting the root &#8230; [...]</description>
		<content:encoded><![CDATA[<p>[...] RTFM Education » Blog Archive » PowersHell &#8211; (re)setting the root &#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh A.</title>
		<link>http://www.rtfm-ed.co.uk/2009/08/26/powershell-resetting-the-root-account-password/comment-page-1/#comment-38822</link>
		<dc:creator>Josh A.</dc:creator>
		<pubDate>Wed, 23 Sep 2009 20:43:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.rtfm-ed.co.uk/?p=1630#comment-38822</guid>
		<description>Thanks for the submit.  I will find this very helpful.

One thing that would also be helpful is to bulk remove ssh access for &#039;root&#039; for those environments that still have that enabled.  I presumed it would be something along the lines of:

Set-VMhostAccount -UserAccount &quot;root&quot; -GrantShellAccess $False

using PowerCLI 4.  I manually removed SSH access through the VIClient and I can connect with Connect-VIServer as &#039;root&#039; and restore access by setting the Boolean to $True but not disable it by setting to $False.</description>
		<content:encoded><![CDATA[<p>Thanks for the submit.  I will find this very helpful.</p>
<p>One thing that would also be helpful is to bulk remove ssh access for &#8216;root&#8217; for those environments that still have that enabled.  I presumed it would be something along the lines of:</p>
<p>Set-VMhostAccount -UserAccount &#8220;root&#8221; -GrantShellAccess $False</p>
<p>using PowerCLI 4.  I manually removed SSH access through the VIClient and I can connect with Connect-VIServer as &#8216;root&#8217; and restore access by setting the Boolean to $True but not disable it by setting to $False.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RobSF</title>
		<link>http://www.rtfm-ed.co.uk/2009/08/26/powershell-resetting-the-root-account-password/comment-page-1/#comment-37853</link>
		<dc:creator>RobSF</dc:creator>
		<pubDate>Wed, 26 Aug 2009 15:44:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.rtfm-ed.co.uk/?p=1630#comment-37853</guid>
		<description>Whoops ... ignore the group stuff. Copy-paste error from another script. :(

Better example:
# Connect to the VI Server
Write-Host &quot;Connecting to vCenter&quot;
Connect-VIServer &quot;vcenter.example.com&quot;
$VMHosts = Get-VMHost &#124; Sort-Object Name
Disconnect-VIServer -Confirm:$False

ForEach ($VMHost in $VMHosts)
{
	$HostName = $VMHost.Name
	Connect-VIServer $HostName -User &quot;root&quot;
	Set-VMHostAccount -UserAccount &quot;root&quot; -password &quot;vmware&quot;
	Disconnect-VIServer -Confirm:$False
}
</description>
		<content:encoded><![CDATA[<p>Whoops &#8230; ignore the group stuff. Copy-paste error from another script. <img src='http://www.rtfm-ed.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Better example:<br />
# Connect to the VI Server<br />
Write-Host &#8220;Connecting to vCenter&#8221;<br />
Connect-VIServer &#8220;vcenter.example.com&#8221;<br />
$VMHosts = Get-VMHost | Sort-Object Name<br />
Disconnect-VIServer -Confirm:$False</p>
<p>ForEach ($VMHost in $VMHosts)<br />
{<br />
	$HostName = $VMHost.Name<br />
	Connect-VIServer $HostName -User &#8220;root&#8221;<br />
	Set-VMHostAccount -UserAccount &#8220;root&#8221; -password &#8220;vmware&#8221;<br />
	Disconnect-VIServer -Confirm:$False<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RobSF</title>
		<link>http://www.rtfm-ed.co.uk/2009/08/26/powershell-resetting-the-root-account-password/comment-page-1/#comment-37852</link>
		<dc:creator>RobSF</dc:creator>
		<pubDate>Wed, 26 Aug 2009 15:43:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.rtfm-ed.co.uk/?p=1630#comment-37852</guid>
		<description>For bulk password resets, there is a workaround. You can connect to vCenter and load all of your hosts into an array. Then you disconnect from vCenter and use a ForEach loop to connect to each host directly.

Example:
# Connect to the VI Server
Write-Host &quot;Connecting to vCenter&quot;
Connect-VIServer &quot;vcenter.example.com&quot;
$VMHosts = Get-VMHost &#124; Sort-Object Name
Disconnect-VIServer -Confirm:$False

ForEach ($VMHost in $VMHosts)
{
	$HostName = $VMHost.Name
	$myGroups = @()
	$myGroups += &quot;wheel&quot;
	$myGroups += &quot;users&quot;
	Connect-VIServer $HostName -User &quot;root&quot;
	Set-VMHostAccount -UserAccount &quot;root&quot; -password &quot;vmware&quot;
	Disconnect-VIServer -Confirm:$False
}
</description>
		<content:encoded><![CDATA[<p>For bulk password resets, there is a workaround. You can connect to vCenter and load all of your hosts into an array. Then you disconnect from vCenter and use a ForEach loop to connect to each host directly.</p>
<p>Example:<br />
# Connect to the VI Server<br />
Write-Host &#8220;Connecting to vCenter&#8221;<br />
Connect-VIServer &#8220;vcenter.example.com&#8221;<br />
$VMHosts = Get-VMHost | Sort-Object Name<br />
Disconnect-VIServer -Confirm:$False</p>
<p>ForEach ($VMHost in $VMHosts)<br />
{<br />
	$HostName = $VMHost.Name<br />
	$myGroups = @()<br />
	$myGroups += &#8220;wheel&#8221;<br />
	$myGroups += &#8220;users&#8221;<br />
	Connect-VIServer $HostName -User &#8220;root&#8221;<br />
	Set-VMHostAccount -UserAccount &#8220;root&#8221; -password &#8220;vmware&#8221;<br />
	Disconnect-VIServer -Confirm:$False<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

