<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>VMware Communities: Message List - How To: Configure freshly booted ESX with PowerShell</title>
    <link>http://communities.vmware.com/community/vmtn/vsphere/automationtools/windows_toolkit?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Wed, 21 Jan 2009 23:07:58 GMT</pubDate>
    <generator>Clearspace 1.10.12 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2009-01-21T23:07:58Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1150399?tstart=0#1150399</link>
      <description>&lt;br /&gt;
These are great ideas to improve configuring the DNS.  I will add them to a future version of the scripts.&lt;br /&gt;
&lt;p /&gt;
 lance&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Wed, 21 Jan 2009 23:07:58 GMT</pubDate>
      <author>lberc</author>
      <guid>http://communities.vmware.com/message/1150399?tstart=0#1150399</guid>
      <dc:date>2009-01-21T23:07:58Z</dc:date>
      <clearspace:dateToText>10 months, 5 days ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1148268?tstart=0#1148268</link>
      <description>Just a bit improvement: just define an array for the DNS servers instead of filling it form a list. The searchlist is just an char field...&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;$dnsServers = @(&amp;quot;192.168.111.3&amp;quot;,&amp;quot;192.168.111.4&amp;quot;)

Get-VMHost | Get-View | %{$ns = Get-View -Id $esx.configManager.networkSystem

$dns = $ns.networkConfig.dnsConfig

$dns.Address = $dnsservers

$dns.searchDomain = &amp;quot;domain1.xyz, domain2.abc&amp;quot;  
$ns.UpdateDnsConfig($dns)}
&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Tue, 20 Jan 2009 02:06:27 GMT</pubDate>
      <author>Windspirit</author>
      <guid>http://communities.vmware.com/message/1148268?tstart=0#1148268</guid>
      <dc:date>2009-01-20T02:06:27Z</dc:date>
      <clearspace:dateToText>10 months, 6 days ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1120354?tstart=0#1120354</link>
      <description>Thanks for that.</description>
      <pubDate>Wed, 10 Dec 2008 11:53:15 GMT</pubDate>
      <author>ChrisRu</author>
      <guid>http://communities.vmware.com/message/1120354?tstart=0#1120354</guid>
      <dc:date>2008-12-10T11:53:15Z</dc:date>
      <clearspace:dateToText>11 months, 2 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1120309?tstart=0#1120309</link>
      <description>See  &lt;a href="http://communities.vmware.com/message/1050478#1050478" class="jive-link-message"&gt;Re: HowTo change DNS servers on ESX host?&lt;/a&gt; for changing the DNS servers.&lt;br /&gt;
You can use the &lt;b&gt;searchDomain&lt;/b&gt; property to define the search domains.&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;$dnsServers = (&amp;quot;192.168.111.3&amp;quot;,&amp;quot;192.168.111.4&amp;quot;)

Get-VMHost | Get-View | %{
   $ns = Get-View -Id $esx.configManager.networkSystem
   $dns = $ns.networkConfig.dnsConfig
 
    $dns.Address = @()
    foreach($server in $dnsServers) {
      $dns.Address += $server
  }
  $dns.searchDomain = (&amp;quot;domain1.xyz&amp;quot;,&amp;quot;domain2.abc&amp;quot;)
  $ns.UpdateDnsConfig($dns)
}
&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 10 Dec 2008 11:01:25 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1120309?tstart=0#1120309</guid>
      <dc:date>2008-12-10T11:01:25Z</dc:date>
      <clearspace:dateToText>11 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1120298?tstart=0#1120298</link>
      <description>&lt;br /&gt;
great  &amp;#38; coll stuff what you are do here&lt;br /&gt;
&lt;p /&gt;
But I search for a way to modify the DNS-Servers and the dns search domains with powershell.&lt;br /&gt;
&lt;p /&gt;
 I tried itt with set-VMHostnetwork but this doesn't work.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
thanks &lt;br /&gt;
&lt;p /&gt;
Christian</description>
      <pubDate>Wed, 10 Dec 2008 10:53:50 GMT</pubDate>
      <author>ChrisRu</author>
      <guid>http://communities.vmware.com/message/1120298?tstart=0#1120298</guid>
      <dc:date>2008-12-10T10:53:50Z</dc:date>
      <clearspace:dateToText>11 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1091000?tstart=0#1091000</link>
      <description>See Appendix B in &lt;a class="jive-link-external" href="http://www.vmware.com/pdf/vi3_35/esx_3/r35u2/vi3_35_25_u2_installation_guide.pdf"&gt;ESX Server 3 and VirtualCenter Installation Guide&lt;/a&gt;</description>
      <pubDate>Tue, 04 Nov 2008 14:39:13 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1091000?tstart=0#1091000</guid>
      <dc:date>2008-11-04T14:39:13Z</dc:date>
      <clearspace:dateToText>1 year, 2 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1091021?tstart=0#1091021</link>
      <description>Where's the kickstart configurator?&lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;a class="jive-link-external" href="https://mvp.support.microsoft.com/profile=5547F213-A069-45F8-B5D1-17E5BD3F362F"&gt;PowerShell MVP&lt;/a&gt;, VI Toolkit forum moderator&lt;br /&gt;
Author of the upcoming book: &lt;a class="jive-link-external" href="http://sapienpress.com/vmware.asp"&gt;Managing VMware Infrastructure with PowerShell&lt;/a&gt;&lt;br /&gt;
Co-Host, PowerScripting Podcast (&lt;a class="jive-link-external" href="http://powerscripting.net"&gt;http://powerscripting.net&lt;/a&gt;)</description>
      <pubDate>Tue, 04 Nov 2008 14:29:27 GMT</pubDate>
      <author>halr9000</author>
      <guid>http://communities.vmware.com/message/1091021?tstart=0#1091021</guid>
      <dc:date>2008-11-04T14:29:27Z</dc:date>
      <clearspace:dateToText>1 year, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1090717?tstart=0#1090717</link>
      <description>The DHCP is just to get the thing started.  I agree you want to verify the inputs for auditing purposes and use static addresses&lt;br /&gt;
&lt;br /&gt;
If you do have a PS provisioning script, you can pipe the string outputs of the script to a log file using Tee-Object.  This can then be your installation record.  Also fairly easy to maintain a data store (e.g., CSV file, SQL table) of configuration inputs if you want to retrieve settings from a separate source.&lt;br /&gt;
&lt;br /&gt;
My ESX provisioning example at &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=doc%3A8170"&gt;NAEPS&lt;/a&gt; is fairly hands free and fairly complete, however, it doesn't do the DHCP or the static kickstart bits.  We had to stop somewhere.</description>
      <pubDate>Tue, 04 Nov 2008 03:32:36 GMT</pubDate>
      <author>SCampbell</author>
      <guid>http://communities.vmware.com/message/1090717?tstart=0#1090717</guid>
      <dc:date>2008-11-04T03:32:36Z</dc:date>
      <clearspace:dateToText>1 year, 2 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1090676?tstart=0#1090676</link>
      <description>&lt;br /&gt;
Exactly, SC!&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
We're mainly LInux on our VM side so I already have the entire infrastructure setup for kickstarts already.  And your point regarding ESXi is spot on.  &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
So when will VMware include a PS configuration script configurator similar to the kickstart configurator?  &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;</description>
      <pubDate>Tue, 04 Nov 2008 03:27:28 GMT</pubDate>
      <author>240Zeus</author>
      <guid>http://communities.vmware.com/message/1090676?tstart=0#1090676</guid>
      <dc:date>2008-11-04T03:27:28Z</dc:date>
      <clearspace:dateToText>1 year, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1090675?tstart=0#1090675</link>
      <description>&lt;br /&gt;
I'd love to but unfortunately the process at my current employer requires manucal verification of the input parameters for auditing purposes.  &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
I like how you're thinking though!</description>
      <pubDate>Tue, 04 Nov 2008 03:24:52 GMT</pubDate>
      <author>240Zeus</author>
      <guid>http://communities.vmware.com/message/1090675?tstart=0#1090675</guid>
      <dc:date>2008-11-04T03:24:52Z</dc:date>
      <clearspace:dateToText>1 year, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1090713?tstart=0#1090713</link>
      <description>I think the main reason I prefer PS to Kickstart customizations is that the PS stuff can also configure ESXi servers; so you can have a very similar/identical customization script no matter which target you are aiming for.&lt;br /&gt;
&lt;br /&gt;
Also there's a lot less infrastructure.  No website, kickstart customizations, etc.&lt;br /&gt;
&lt;br /&gt;
I would consider a static kickstart to create a baseline ESX DHCP-based server, then use the PS script to complete the customization of static addresses, root passwords, DNS names, etc.&lt;br /&gt;
&lt;br /&gt;
That's the nice thing about computers: there are 100 good ways to solve any problem, and 100 people with think their way is best. &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":-)" /&gt;</description>
      <pubDate>Tue, 04 Nov 2008 03:22:59 GMT</pubDate>
      <author>SCampbell</author>
      <guid>http://communities.vmware.com/message/1090713?tstart=0#1090713</guid>
      <dc:date>2008-11-04T03:22:59Z</dc:date>
      <clearspace:dateToText>1 year, 2 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1090707?tstart=0#1090707</link>
      <description>Why not automate the ks file checkout from revision control and the file modifications as well?  &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;a class="jive-link-external" href="https://mvp.support.microsoft.com/profile=5547F213-A069-45F8-B5D1-17E5BD3F362F"&gt;PowerShell MVP&lt;/a&gt;, VI Toolkit forum moderator&lt;br /&gt;
Author of the upcoming book: &lt;a class="jive-link-external" href="http://sapienpress.com/vmware.asp"&gt;Managing VMware Infrastructure with PowerShell&lt;/a&gt;&lt;br /&gt;
Co-Host, PowerScripting Podcast (&lt;a class="jive-link-external" href="http://powerscripting.net"&gt;http://powerscripting.net&lt;/a&gt;)</description>
      <pubDate>Tue, 04 Nov 2008 03:09:30 GMT</pubDate>
      <author>halr9000</author>
      <guid>http://communities.vmware.com/message/1090707?tstart=0#1090707</guid>
      <dc:date>2008-11-04T03:09:30Z</dc:date>
      <clearspace:dateToText>1 year, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1090669?tstart=0#1090669</link>
      <description>&lt;br /&gt;
Fair enough. &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/blush.gif" alt=":8}" /&gt;   I came from a Windows background as well but projects in the past 3-4 years have necessitated Linux use.  I'm all about automation and the kickstart files are simple text-based files that the ESX installer uses to automate installs.  &lt;br /&gt;
&lt;p /&gt;
 I simply have a template ks file in the source control repository, check it out, modify IP's, VLAN information, DNS, etc... for the specific host I want to build, add it back to the repository, and deploy it to an internal http server that my ESX servers can see on the service console VLAN.  A "ks=" option with the proper information entered at the ESX install screen and ten minutes later I have a fully configured ESX host ready to add to VirtualCenter.  If I ever need to rebuild the host as it originally was six months later, I just boot off of that kickstart file again.&lt;br /&gt;
&lt;p /&gt;
 Sorry if I've hijacked the thread here.  I've been doing VMware for a few years now and am starting to port some of my historical perl scripts over to PS - I'm glad to have found this community.&lt;br /&gt;
&lt;p /&gt;
 If you'd like to see a ks file you can use for automated install/configure just let me know!&lt;br /&gt;
&lt;p /&gt;
 Z&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Tue, 04 Nov 2008 02:25:10 GMT</pubDate>
      <author>240Zeus</author>
      <guid>http://communities.vmware.com/message/1090669?tstart=0#1090669</guid>
      <dc:date>2008-11-04T02:25:10Z</dc:date>
      <clearspace:dateToText>1 year, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1090664?tstart=0#1090664</link>
      <description>Well, there's several reasons. The first and most important (to me) is that I don't know a darn thing about kickstart beyond its purpose. &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt; While I know other platforms pretty well, I'm only an expert at one, and that's Windows. I'm sure I'm not the only one in this boat.&lt;br /&gt;
&lt;br /&gt;
Second, this will likely prove to be easier to maintain. The tasks you can do in PowerShell will be more consistent than those done without.&lt;br /&gt;
&lt;br /&gt;
It's probably easier to do it via kickstart for someone who knows bash scripting well, as well as the Linux command-line utilities on the COS.&lt;br /&gt;
&lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;a class="jive-link-external" href="https://mvp.support.microsoft.com/profile=5547F213-A069-45F8-B5D1-17E5BD3F362F"&gt;PowerShell MVP&lt;/a&gt;, VI Toolkit forum moderator&lt;br /&gt;
Author of the upcoming book: &lt;a class="jive-link-external" href="http://sapienpress.com/vmware.asp"&gt;Managing VMware Infrastructure with PowerShell&lt;/a&gt;&lt;br /&gt;
Co-Host, PowerScripting Podcast (&lt;a class="jive-link-external" href="http://powerscripting.net"&gt;http://powerscripting.net&lt;/a&gt;)</description>
      <pubDate>Tue, 04 Nov 2008 01:43:51 GMT</pubDate>
      <author>halr9000</author>
      <guid>http://communities.vmware.com/message/1090664?tstart=0#1090664</guid>
      <dc:date>2008-11-04T01:43:51Z</dc:date>
      <clearspace:dateToText>1 year, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>8</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1090592?tstart=0#1090592</link>
      <description>&lt;br /&gt;
I know this goes against the OP's needs, but why not just perform the majority of this in a kickstart file for installation?  The only thing I do not perform in my kickstarts is adding the host to a cluster and a few other small(ish) VC-related tasks, but vSwitch setup/port group assignment, enabling vMotion, vmnic speed/duplex settings, licensing, hostname configuration, IP/DNS assignment, etc... can all be done via VIM commands in the post-processing section of the Kickstart file....&lt;br /&gt;
&lt;p /&gt;
Z</description>
      <pubDate>Mon, 03 Nov 2008 22:48:17 GMT</pubDate>
      <author>240Zeus</author>
      <guid>http://communities.vmware.com/message/1090592?tstart=0#1090592</guid>
      <dc:date>2008-11-03T22:48:17Z</dc:date>
      <clearspace:dateToText>1 year, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>9</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1051407?tstart=0#1051407</link>
      <description>Has anyone succeeded in configuring the license server and edition on an ESX server using Powershell?&lt;br /&gt;
&lt;br /&gt;
I am about to embark on using the Java sample in the SDK to try to do it. I have also looked at the C++ code posted in the community.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
Update2: Sep 23. This is extracted from code that I believe is working properly, even though are likely more efficient ways. Some of these are used for other aspects of my provisioning script so there may be more than you need. Note in particular the use of the $ESXHostView.MoRef. -- Start of rant -- It cost an hour of head scratching and random guesses and finally get-member to find that. Sure would be nice to have some documentation of the VMware.VIM .Net Classes. (Hint. Hint.) Note that cmdlet help and that SDK website don't count for newbie PS/VIM people who need to access the .Net libraries. The .Net libraries help is a good start with its 5 classes. I think we need to see the same thing for all the "real" classes too. Of course, maybe it's all there, and I haven't been able to find it. If so, please accept my apologies. -- End of rant --&lt;br /&gt;
&lt;br /&gt;
$LicenseServer="27000@myVCS.myDomain.local"&lt;br /&gt;
$HostPassword=Read-Host "Enter the password to the root account on the ESX Host" -asSecureString&lt;br /&gt;
$ESXConnect=Connect-VIServer -Server $HostIP -User $HostUser `&lt;br /&gt;
-Password ([System.Runtime.InteropServices.Marshal]::PtrToStringAuto( `&lt;br /&gt;
[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($HostPassword))) `&lt;br /&gt;
-ErrorAction Inquire&lt;br /&gt;
$ESXHost=Get-VMHost -Name $HostFQDN&lt;br /&gt;
$ESXHostView=$ESXHost | Get-View&lt;br /&gt;
$ServiceInstance=Get-View -Server $ESXConnect ServiceInstance&lt;br /&gt;
$LicManRef=$ServiceInstance.Content.LicenseManager&lt;br /&gt;
$LicManView=Get-View -Server $ESXConnect $LicManRef&lt;br /&gt;
$LicServerSource=New-Object VMWARE.VIM.LicenseServerSource&lt;br /&gt;
$LicServerSource.LicenseServer=$LicenseServer&lt;br /&gt;
$LicManView.SetLicenseEdition($ESXHostView.MoRef,"esxFull")&lt;br /&gt;
$LicManView.ConfigureLicenseSource($ESXHostView.MoRef,$LicServerSource)</description>
      <pubDate>Tue, 16 Sep 2008 11:20:08 GMT</pubDate>
      <author>SCampbell</author>
      <guid>http://communities.vmware.com/message/1051407?tstart=0#1051407</guid>
      <dc:date>2008-09-16T11:20:08Z</dc:date>
      <clearspace:dateToText>1 year, 2 months ago</clearspace:dateToText>
      <clearspace:replyCount>16</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1051415?tstart=0#1051415</link>
      <description>This:&lt;br /&gt;
&lt;div class="jive-quote"&gt;$HostView=Get-View -Viewtype HostSystem -Filter @{"Name"=($HostName + "." + $HostPath)}&lt;/div&gt;
&lt;br /&gt;
Can simply be replaced by:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;$HostView = Get-VMHost $HostName | Get-View
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Otherwise, looks ok but I haven't tested it.  I have an aversion to messing around with licensing ever since a bad 48 hours when I downed some production terminal servers several years ago.  &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Author of the upcoming book: &lt;a class="jive-link-external" href="http://sapienpress.com/vmware.asp"&gt;Managing VMware Infrastructure with PowerShell&lt;/a&gt;&lt;br /&gt;
Co-Host, PowerScripting Podcast (&lt;a class="jive-link-external" href="http://powerscripting.net"&gt;http://powerscripting.net&lt;/a&gt;)</description>
      <pubDate>Tue, 16 Sep 2008 12:26:09 GMT</pubDate>
      <author>halr9000</author>
      <guid>http://communities.vmware.com/message/1051415?tstart=0#1051415</guid>
      <dc:date>2008-09-16T12:26:09Z</dc:date>
      <clearspace:dateToText>1 year, 2 months ago</clearspace:dateToText>
      <clearspace:replyCount>15</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1034552?tstart=0#1034552</link>
      <description>Updated and named to be different than the other here.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;ul&gt;
&lt;li&gt;recent - I have a newer version that takes hosts from a CSV file. This eliminates the need to create a hostname.ps1 for each server. when you get over 90 servers those files are unmanageable, and any changes made to the template means a rebuild of them.... So I now use a CSV.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
I'm thinking of rearchitecting it again... if there's any interest i'll look at posting it. I have to de customize if for the job i'm doing here to post it which is some extra work....&lt;br /&gt;
&lt;p /&gt;
 Unpublished updates.&lt;br /&gt;
&lt;p /&gt;
&lt;ul class="jive-dash"&gt;
&lt;li&gt;fixed NTP auto start and DNS Search Suffix- Thanks LucD&lt;/li&gt;
&lt;/ul&gt;
&lt;p /&gt;
&lt;ul class="jive-dash"&gt;
&lt;li&gt;added blat email option to email log or report&lt;/li&gt;
&lt;/ul&gt;
&lt;p /&gt;
&lt;ul class="jive-dash"&gt;
&lt;li&gt;added csv function for hosts to replace having individual host-template.ps1 files for each host.&lt;/li&gt;
&lt;/ul&gt;
&lt;p /&gt;
&lt;ul class="jive-dash"&gt;
&lt;li&gt;fixed a few minor issues&lt;/li&gt;
&lt;/ul&gt;</description>
      <pubDate>Tue, 26 Aug 2008 19:45:56 GMT</pubDate>
      <author>olan025</author>
      <guid>http://communities.vmware.com/message/1034552?tstart=0#1034552</guid>
      <dc:date>2008-08-26T19:45:56Z</dc:date>
      <clearspace:dateToText>1 year, 2 months ago</clearspace:dateToText>
      <clearspace:replyCount>20</clearspace:replyCount>
    </item>
    <item>
      <title>How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1014670?tstart=0#1014670</link>
      <description>As part of a larger project I've been working on a set of scripts which configure a freshly-installed ESX (or ESXi) system into Virtual Center (after first attempting to remove previous VC state and clean state from the host).  Currently they follow a typical post-boot configuration pattern:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Set ESX password&lt;/li&gt;
&lt;li&gt;Add to Virtual Center cluster&lt;/li&gt;
&lt;li&gt;Configure Virtual Switches&lt;/li&gt;
&lt;li&gt;Configure Port Groups&lt;/li&gt;
&lt;li&gt;Add NFS partitions&lt;/li&gt;
&lt;li&gt;Add iSCSI partitions&lt;/li&gt;
&lt;li&gt;Configure NTP&lt;/li&gt;
&lt;li&gt;Configure VMotion&lt;/li&gt;
&lt;/ol&gt;
Before trying, modify esx-master.ps1 and esx-profile.ps1 to local conditions (or your password will be set to "CHANGEME").&lt;br /&gt;
&lt;br /&gt;
Command: esx-autoconfigure.ps1 "hostname|ip-address"&lt;br /&gt;
&lt;br /&gt;
As this is my initial foray into PowerShell, please excuse any idiosyncracies. &lt;br /&gt;
&lt;p /&gt;
This is a work-in-progress - feedback welcome.  Points awarded for the best suggestions in the next few days.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
lance&lt;br /&gt;
&lt;p /&gt;
(2008-Sep-02 - I've moved the script files to &lt;a class="jive-link-wiki" href="http://communities.vmware.com/docs/DOC-7511" title="These scripts automate much of the drudgery needed to incorporate a fresh ESXi or ESX Classic Server into a Virtual Center DRS cluster.  Automation is the backbone of scalability."&gt;ESX Automated Configuration Midwife&lt;/a&gt;)</description>
      <pubDate>Wed, 06 Aug 2008 22:21:42 GMT</pubDate>
      <author>lberc</author>
      <guid>http://communities.vmware.com/message/1014670?tstart=0#1014670</guid>
      <dc:date>2008-08-06T22:21:42Z</dc:date>
      <clearspace:dateToText>1 year, 2 months ago</clearspace:dateToText>
      <clearspace:replyCount>29</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1040583?tstart=0#1040583</link>
      <description>My ESXi hosts run NTP when I configure the server addresses without having to explicitly enable the service, but LucD's command should work if necessary.</description>
      <pubDate>Tue, 02 Sep 2008 22:39:58 GMT</pubDate>
      <author>lberc</author>
      <guid>http://communities.vmware.com/message/1040583?tstart=0#1040583</guid>
      <dc:date>2008-09-02T22:39:58Z</dc:date>
      <clearspace:dateToText>1 year, 2 months ago</clearspace:dateToText>
      <clearspace:replyCount>17</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1040404?tstart=0#1040404</link>
      <description>You could use the Set-VMHostService cmdlet.&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;Set-VMHostService -HostService (Get-VMHostservice -VMHost (Get-VMHost esx1.test.local) | Where-Object {$_.key -eq &amp;quot;ntpd&amp;quot;}) -policy &amp;quot;automatic&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
A bit of a cryptic command I admit, but it seems to work.&lt;br /&gt;
For -policy you can use "on", "off" or "automatic"</description>
      <pubDate>Tue, 02 Sep 2008 19:19:15 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1040404?tstart=0#1040404</guid>
      <dc:date>2008-09-02T19:19:15Z</dc:date>
      <clearspace:dateToText>1 year, 2 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1040385?tstart=0#1040385</link>
      <description>&lt;br /&gt;
I am able to configure the NTP Servers (as many of you have done in your scripts), but how do I check the "NTP Client Enabled" checkbox?  I presume that this is required to tell the ESX server to use the NTP servers configured.  Thanks in advance.&lt;br /&gt;
&lt;p /&gt;
Lee</description>
      <pubDate>Tue, 02 Sep 2008 19:00:00 GMT</pubDate>
      <author>LeeTheMC</author>
      <guid>http://communities.vmware.com/message/1040385?tstart=0#1040385</guid>
      <dc:date>2008-09-02T19:00:00Z</dc:date>
      <clearspace:dateToText>1 year, 2 months ago</clearspace:dateToText>
      <clearspace:replyCount>19</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1020246?tstart=0#1020246</link>
      <description>&lt;br /&gt;
Hal,&lt;br /&gt;
&lt;p /&gt;
How about making an exception to allow me a sneak peak at your new book? My scripting needs to be tuned up as you can tell i'm a beginner if you looked at my earlier attachments.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
I'm making changes and updates to those, if anyone does care for them post it. otherwise my stuff is pretty basic compared to Lance's functionalized code.</description>
      <pubDate>Tue, 12 Aug 2008 14:38:05 GMT</pubDate>
      <author>olan025</author>
      <guid>http://communities.vmware.com/message/1020246?tstart=0#1020246</guid>
      <dc:date>2008-08-12T14:38:05Z</dc:date>
      <clearspace:dateToText>1 year, 3 months ago</clearspace:dateToText>
      <clearspace:replyCount>21</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1017782?tstart=0#1017782</link>
      <description>Looks great! &lt;br /&gt;
&lt;br /&gt;
Lance, do you know Aiden Dalgleish? He's a PSO Consultant from the UK and already created a hell of a lot scripts for installing. Talk to him, he's got some cool stuff!&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
Duncan&lt;br /&gt;
My virtualisation blog:&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.yellow-bricks.com"&gt;http://www.yellow-bricks.com&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
If you find this information useful, please award points for "correct" or "helpful".</description>
      <pubDate>Sun, 10 Aug 2008 08:08:14 GMT</pubDate>
      <author>depping</author>
      <guid>http://communities.vmware.com/message/1017782?tstart=0#1017782</guid>
      <dc:date>2008-08-10T08:08:14Z</dc:date>
      <clearspace:dateToText>1 year, 3 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1015838?tstart=0#1015838</link>
      <description>My cover has been blown. - l</description>
      <pubDate>Thu, 07 Aug 2008 18:59:14 GMT</pubDate>
      <author>lberc</author>
      <guid>http://communities.vmware.com/message/1015838?tstart=0#1015838</guid>
      <dc:date>2008-08-07T18:59:14Z</dc:date>
      <clearspace:dateToText>1 year, 3 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1015873?tstart=0#1015873</link>
      <description>&lt;br /&gt;
Lance works for VMware, no $5000 for him, for us 3rd prize is we're fired &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/sad.gif" alt=":(" /&gt;</description>
      <pubDate>Thu, 07 Aug 2008 18:55:23 GMT</pubDate>
      <author>c_shanklin</author>
      <guid>http://communities.vmware.com/message/1015873?tstart=0#1015873</guid>
      <dc:date>2008-08-07T18:55:23Z</dc:date>
      <clearspace:dateToText>1 year, 3 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1015620?tstart=0#1015620</link>
      <description>iberc,&lt;br /&gt;
&lt;br /&gt;
I'm doing a large roll-out of esxi. I have been working on the exact same as what you're doing. If I can add anything across what you got i may post it.&lt;br /&gt;
&lt;p /&gt;
You're scripts look to be more portable. This is my first dive into significant scripting not to mention powershell. The envronment i'm building for is very homogenous so the work reflects it. this is definately work in progress. these files on their own need to be edited etc and linked.&lt;br /&gt;
&lt;p /&gt;
 I've been looking for awhile now for configuration of ESXi via powershell and it seems very limited.  Most resources are directed at management of existing.&lt;br /&gt;
&lt;br /&gt;
Message was edited by: olan025</description>
      <pubDate>Thu, 07 Aug 2008 16:14:07 GMT</pubDate>
      <author>olan025</author>
      <guid>http://communities.vmware.com/message/1015620?tstart=0#1015620</guid>
      <dc:date>2008-08-07T16:14:07Z</dc:date>
      <clearspace:dateToText>1 year, 3 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1015030?tstart=0#1015030</link>
      <description>&lt;p /&gt;
Very nice, you should definately enter the comp.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Alan Renouf&lt;br /&gt;
VMware, Citrix, Microsoft Consultant&lt;br /&gt;
UK&lt;br /&gt;
&lt;p /&gt;
&lt;a class="jive-link-external" href="http://teckinfo.blogspot.com/"&gt;My Blog&lt;/a&gt;</description>
      <pubDate>Thu, 07 Aug 2008 08:15:45 GMT</pubDate>
      <author>alanrenouf</author>
      <guid>http://communities.vmware.com/message/1015030?tstart=0#1015030</guid>
      <dc:date>2008-08-07T08:15:45Z</dc:date>
      <clearspace:dateToText>1 year, 3 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1015007?tstart=0#1015007</link>
      <description>Some suggestions:&lt;br /&gt;
&lt;ul class="jive-dash"&gt;
&lt;li&gt;configure or check DNS and gateways before steps 3/4/7/8. Critical for clustering, HA and DRS!&lt;/li&gt;
&lt;li&gt;configure the firewall&lt;/li&gt;
&lt;li&gt;(eventually) configure some advanced ESX settings. See for example a recent discussion about NFS.MaxVolumes&lt;/li&gt;
&lt;li&gt;check (and eventually configure) licensing before using clustering with HA/DRS/vMotion&lt;/li&gt;
&lt;li&gt;configure (or adjust) resource pool(s). Adding an ESX server will increase the available resources.&lt;/li&gt;
&lt;/ul&gt;</description>
      <pubDate>Thu, 07 Aug 2008 05:55:46 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1015007?tstart=0#1015007</guid>
      <dc:date>2008-08-07T05:55:46Z</dc:date>
      <clearspace:dateToText>1 year, 3 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: How To: Configure freshly booted ESX with PowerShell</title>
      <link>http://communities.vmware.com/message/1014852?tstart=0#1014852</link>
      <description>My comments are as follows:&lt;br /&gt;
&lt;br /&gt;
1. &lt;a class="jive-link-external" href="http://www.vmware.com/landing_pages/toolkit_contest.html"&gt;http://www.vmware.com/landing_pages/toolkit_contest.html&lt;/a&gt;&lt;br /&gt;
2. Cool, &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;  I've been working on something similar for a project at work (not to mention for my book).&lt;br /&gt;
3. I'm a judge for #1, so I'll refrain from commenting directly on your code in case you decide to submit it, which I suggest you do.&lt;br /&gt;
&lt;p /&gt;
Author of the upcoming book: &lt;a class="jive-link-external" href="http://sapienpress.com/vmware.asp"&gt;Managing VMware Infrastructure with PowerShell&lt;/a&gt;&lt;br /&gt;
Co-Host, PowerScripting Podcast (&lt;a class="jive-link-external" href="http://powerscripting.net"&gt;http://powerscripting.net&lt;/a&gt;)</description>
      <pubDate>Thu, 07 Aug 2008 01:46:27 GMT</pubDate>
      <author>halr9000</author>
      <guid>http://communities.vmware.com/message/1014852?tstart=0#1014852</guid>
      <dc:date>2008-08-07T01:46:27Z</dc:date>
      <clearspace:dateToText>1 year, 3 months ago</clearspace:dateToText>
      <clearspace:replyCount>24</clearspace:replyCount>
    </item>
  </channel>
</rss>

