<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TechProsaic &#187; Software</title>
	<atom:link href="http://halr9000.com/article/category/software/feed" rel="self" type="application/rss+xml" />
	<link>http://halr9000.com</link>
	<description>(powershell &#38; other stuff)</description>
	<lastBuildDate>Sat, 28 Jan 2012 21:29:12 +0000</lastBuildDate>
	<language>en-us</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>PowerCLI v5 is available today, download it NOW!</title>
		<link>http://halr9000.com/article/943</link>
		<comments>http://halr9000.com/article/943#comments</comments>
		<pubDate>Thu, 25 Aug 2011 13:51:51 +0000</pubDate>
		<dc:creator>halr9000</dc:creator>
				<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://halr9000.com/article/943</guid>
		<description><![CDATA[Run, don’t walk to vmware.com/go/powercli to grab the latest version of the world’s best PowerShell snapin. That’s right, v5 is out and you can grab it now! And the coolest part is that while nobody will have vSphere 5 in production on day one (ok, there’s a couple of you out there), PowerCLI v5 is [...]]]></description>
			<content:encoded><![CDATA[<!-- no icon for 'PowerCLI' --><a href="http://halr9000.com/article/category/programming/scripting/powershell" title="Powershell"><img src="/wp-content/icons/topic_powershell.png" align="right" width="70" height="53" alt="Powershell" /></a>
<!-- no icon for 'VMware' --><p>Run, don’t walk to <a href="http://vmware.com/go/powercli">vmware.com/go/powercli</a> to grab the latest version of the world’s best PowerShell snapin. That’s right, v5 is out and you can grab it now! And the coolest part is that while nobody will have vSphere 5 in production on day one (ok, there’s a couple of you out there), PowerCLI v5 is a client-based tool with no dependencies, and it’s downwards-compatible! There is literally no reason for you not to upgrade right this instant! I am using exclamations here, people!</p>
<p>I’ve had beta builds installed for some time, but I didn’t want to do blog posts based on pre-release builds for fear that things would change. Now that it’s out, I’ll start pushing out some posts about what’s new and all that, so stay tuned. For now, some quick stats and info:</p>
<p>There are now FOUR VMware snap-ins installed with PowerCLI v5:</p>
<blockquote><p><font face="Courier New">PowerCLI U:\&gt; Get-PSSnapin vmware*</font></p>
<p><font face="Courier New">Name&#160;&#160;&#160;&#160;&#160;&#160;&#160; : VMware.VimAutomation.Core       <br />PSVersion&#160;&#160; : 2.0        <br />Description : This Windows PowerShell snap-in contains Windows PowerShell cmdlets for managing vSphere.</font></p>
<p><font face="Courier New">Name&#160;&#160;&#160;&#160;&#160;&#160;&#160; : VMware.VimAutomation.License       <br />PSVersion&#160;&#160; : 2.0        <br />Description : This Windows Powershell snap-in contains cmdlets for managing License components.</font></p>
<p><font face="Courier New">Name&#160;&#160;&#160;&#160;&#160;&#160;&#160; : VMware.DeployAutomation       <br />PSVersion&#160;&#160; : 2.0        <br />Description : Cmdlets for Rule-Based-Deployment</font></p>
<p><font face="Courier New">Name&#160;&#160;&#160;&#160;&#160;&#160;&#160; : VMware.ImageBuilder       <br />PSVersion&#160;&#160; : 2.0        <br />Description : This Windows PowerShell snap-in contains VMware ESXi Image Builder cmdlets used to generate custom images.</font></p>
</blockquote>
<p>There are 293 cmdlets in total across these snap-ins. Here they are, grouped by Noun and Verb:</p>
<blockquote><p><font size="1" face="Courier New">PowerCLI U:\&gt; $c = Get-Command -Module vmware*       <br />PowerCLI U:\&gt; $c.Length        <br />293        <br />PowerCLI U:\&gt; $c | group verb</font></p>
<p><font size="1" face="Courier New">Count Name&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Group       <br />&#8212;&#8211; &#8212;-&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#8212;&#8211;        <br />&#160;&#160;&#160; 6 Add&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Add-DeployRule, Add-EsxSoftwareDepot, Add-E&#8230;        <br />&#160;&#160;&#160; 3 Apply&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Apply-DrsRecommendation, Apply-ESXImageProf&#8230;        <br />&#160;&#160;&#160; 1 Compare&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Compare-EsxImageProfile}        <br />&#160;&#160;&#160; 1 Connect&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Connect-VIServer}        <br />&#160;&#160;&#160; 4 Copy&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Copy-DatastoreItem, Copy-DeployRule, Copy-H&#8230;        <br />&#160;&#160;&#160; 1 Disconnect&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Disconnect-VIServer}        <br />&#160;&#160;&#160; 1 Dismount&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Dismount-Tools}        <br />&#160;&#160;&#160; 3 Export&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Export-EsxImageProfile, Export-VApp, Export&#8230;        <br />&#160;&#160;&#160; 1 Format&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Format-VMHostDiskPartition}        <br />&#160;&#160; 95 Get&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-AdvancedSetting, Get-AlarmAction, Get-A&#8230;        <br />&#160;&#160;&#160; 2 Import&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Import-VApp, Import-VMHostProfile}        <br />&#160;&#160;&#160; 1 Install&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Install-VMHostPatch}        <br />&#160;&#160;&#160; 1 Invoke&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Invoke-VMScript}        <br />&#160;&#160;&#160; 1 Mount&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Mount-Tools}        <br />&#160;&#160;&#160; 9 Move&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Move-Cluster, Move-Datacenter, Move-Folder,&#8230;        <br />&#160;&#160; 37 New&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {New-AdvancedSetting, New-AlarmAction, New-A&#8230;        <br />&#160;&#160; 42 Remove&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Remove-AdvancedSetting, Remove-AlarmAction,&#8230;        <br />&#160;&#160;&#160; 2 Repair&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Repair-DeployImageCache, Repair-DeployRuleS&#8230;        <br />&#160;&#160;&#160; 4 Restart&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Restart-VM, Restart-VMGuest, Restart-VMHost&#8230;        <br />&#160;&#160; 58 Set&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Set-AdvancedSetting, Set-AlarmDefinition, S&#8230;        <br />&#160;&#160;&#160; 1 Shutdown&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Shutdown-VMGuest}        <br />&#160;&#160;&#160; 4 Start&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Start-VApp, Start-VM, Start-VMHost, Start-V&#8230;        <br />&#160;&#160;&#160; 5 Stop&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Stop-Task, Stop-VApp, Stop-VM, Stop-VMHost&#8230;}        <br />&#160;&#160;&#160; 3 Suspend&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Suspend-VM, Suspend-VMGuest, Suspend-VMHost}        <br />&#160;&#160;&#160; 1 Switch&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Switch-ActiveDeployRuleSet}        <br />&#160;&#160;&#160; 3 Test&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Test-DeployRuleSetCompliance, Test-VMHostPr&#8230;        <br />&#160;&#160;&#160; 1 Update&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Update-Tools}        <br />&#160;&#160;&#160; 2 Wait&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Wait-Task, Wait-Tools}</font></p>
<p><font size="1" face="Courier New">PowerCLI U:\&gt; $c | group noun</font></p>
<p><font size="1" face="Courier New">Count Name&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Group       <br />&#8212;&#8211; &#8212;-&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#8212;&#8211;        <br />&#160;&#160;&#160; 6 DeployRule&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Add-DeployRule, Copy-DeployRule, Get-Deploy&#8230;        <br />&#160;&#160;&#160; 2 EsxSoftwareDepot&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Add-EsxSoftwareDepot, Remove-EsxSoftwareDepot}        <br />&#160;&#160;&#160; 3 EsxSoftwarePackage&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Add-EsxSoftwarePackage, Get-EsxSoftwarePack&#8230;        <br />&#160;&#160;&#160; 3 PassthroughDevice&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Add-PassthroughDevice, Get-PassthroughDevic&#8230;        <br />&#160;&#160;&#160; 9 VMHost&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Add-VMHost, Get-VMHost, Move-VMHost, Remove&#8230;        <br />&#160;&#160;&#160; 3 VmHostNtpServer&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Add-VmHostNtpServer, Get-VMHostNtpServer, R&#8230;        <br />&#160;&#160;&#160; 2 DrsRecommendation&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Apply-DrsRecommendation, Get-DrsRecommendat&#8230;        <br />&#160;&#160;&#160; 6 ESXImageProfile&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Apply-ESXImageProfile, Compare-EsxImageProf&#8230;        <br />&#160;&#160;&#160; 7 VMHostProfile&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Apply-VMHostProfile, Export-VMHostProfile, &#8230;        <br />&#160;&#160;&#160; 2 VIServer&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Connect-VIServer, Disconnect-VIServer}        <br />&#160;&#160;&#160; 1 DatastoreItem&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Copy-DatastoreItem}        <br />&#160;&#160;&#160; 5 HardDisk&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Copy-HardDisk, Get-HardDisk, New-HardDisk, &#8230;        <br />&#160;&#160;&#160; 1 VMGuestFile&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Copy-VMGuestFile}        <br />&#160;&#160;&#160; 4 Tools&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Dismount-Tools, Mount-Tools, Update-Tools, &#8230;        <br />&#160;&#160;&#160; 9 VApp&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Export-VApp, Get-VApp, Import-VApp, Move-VA&#8230;        <br />&#160;&#160;&#160; 2 VMHostDiskPartition&#160;&#160;&#160;&#160;&#160;&#160; {Format-VMHostDiskPartition, Get-VMHostDiskP&#8230;        <br />&#160;&#160;&#160; 4 AdvancedSetting&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-AdvancedSetting, New-AdvancedSetting, R&#8230;        <br />&#160;&#160;&#160; 3 AlarmAction&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-AlarmAction, New-AlarmAction, Remove-Al&#8230;        <br />&#160;&#160;&#160; 3 AlarmActionTrigger&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-AlarmActionTrigger, New-AlarmActionTrig&#8230;        <br />&#160;&#160;&#160; 2 AlarmDefinition&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-AlarmDefinition, Set-AlarmDefinition}        <br />&#160;&#160;&#160; 2 Annotation&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-Annotation, Set-Annotation}        <br />&#160;&#160;&#160; 4 CDDrive&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-CDDrive, New-CDDrive, Remove-CDDrive, S&#8230;        <br />&#160;&#160;&#160; 5 Cluster&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-Cluster, Move-Cluster, New-Cluster, Rem&#8230;        <br />&#160;&#160;&#160; 4 CustomAttribute&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-CustomAttribute, New-CustomAttribute, R&#8230;        <br />&#160;&#160;&#160; 5 Datacenter&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-Datacenter, Move-Datacenter, New-Datace&#8230;        <br />&#160;&#160;&#160; 4 Datastore&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-Datastore, New-Datastore, Remove-Datast&#8230;        <br />&#160;&#160;&#160; 1 DatastoreCluster&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-DatastoreCluster}        <br />&#160;&#160;&#160; 2 DeployRuleSet&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-DeployRuleSet, Set-DeployRuleSet}        <br />&#160;&#160;&#160; 4 DrsRule&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-DrsRule, New-DrsRule, Remove-DrsRule, S&#8230;        <br />&#160;&#160;&#160; 1 ErrorReport&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-ErrorReport}        <br />&#160;&#160;&#160; 1 EsxCli&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-EsxCli}        <br />&#160;&#160;&#160; 1 EsxSoftwareChannel&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-EsxSoftwareChannel}        <br />&#160;&#160;&#160; 1 EsxTop&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-EsxTop}        <br />&#160;&#160;&#160; 4 FloppyDrive&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-FloppyDrive, New-FloppyDrive, Remove-Fl&#8230;        <br />&#160;&#160;&#160; 5 Folder&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-Folder, Move-Folder, New-Folder, Remove&#8230;        <br />&#160;&#160;&#160; 1 HAPrimaryVMHost&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-HAPrimaryVMHost}        <br />&#160;&#160;&#160; 3 Inventory&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-Inventory, Move-Inventory, Remove-Inven&#8230;        <br />&#160;&#160;&#160; 4 IScsiHbaTarget&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-IScsiHbaTarget, New-IScsiHbaTarget, Rem&#8230;        <br />&#160;&#160;&#160; 1 LicenseDataManager&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-LicenseDataManager}        <br />&#160;&#160;&#160; 1 Log&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-Log}        <br />&#160;&#160;&#160; 1 LogType&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-LogType}        <br />&#160;&#160;&#160; 4 NetworkAdapter&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-NetworkAdapter, New-NetworkAdapter, Rem&#8230;        <br />&#160;&#160;&#160; 2 NicTeamingPolicy&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-NicTeamingPolicy, Set-NicTeamingPolicy}        <br />&#160;&#160;&#160; 4 OSCustomizationNicMapping {Get-OSCustomizationNicMapping, New-OSCustom&#8230;        <br />&#160;&#160;&#160; 4 OSCustomizationSpec&#160;&#160;&#160;&#160;&#160;&#160; {Get-OSCustomizationSpec, New-OSCustomizatio&#8230;        <br />&#160;&#160;&#160; 2 PowerCLIConfiguration&#160;&#160;&#160;&#160; {Get-PowerCLIConfiguration, Set-PowerCLIConf&#8230;        <br />&#160;&#160;&#160; 1 PowerCLIVersion&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-PowerCLIVersion}        <br />&#160;&#160;&#160; 5 ResourcePool&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-ResourcePool, Move-ResourcePool, New-Re&#8230;        <br />&#160;&#160;&#160; 3 ScsiController&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-ScsiController, New-ScsiController, Set&#8230;        <br />&#160;&#160;&#160; 2 ScsiLun&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-ScsiLun, Set-ScsiLun}        <br />&#160;&#160;&#160; 2 ScsiLunPath&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-ScsiLunPath, Set-ScsiLunPath}        <br />&#160;&#160;&#160; 4 Snapshot&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-Snapshot, New-Snapshot, Remove-Snapshot&#8230;        <br />&#160;&#160;&#160; 1 Stat&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-Stat}        <br />&#160;&#160;&#160; 4 StatInterval&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-StatInterval, New-StatInterval, Remove-&#8230;        <br />&#160;&#160;&#160; 1 StatType&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-StatType}        <br />&#160;&#160;&#160; 3 Task&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-Task, Stop-Task, Wait-Task}        <br />&#160;&#160;&#160; 5 Template&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-Template, Move-Template, New-Template, &#8230;        <br />&#160;&#160;&#160; 2 UsbDevice&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-UsbDevice, Remove-UsbDevice}        <br />&#160;&#160;&#160; 1 VIAccount&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VIAccount}        <br />&#160;&#160;&#160; 3 VICredentialStoreItem&#160;&#160;&#160;&#160; {Get-VICredentialStoreItem, New-VICredential&#8230;        <br />&#160;&#160;&#160; 1 VIEvent&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VIEvent}        <br />&#160;&#160;&#160; 1 View&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-View}        <br />&#160;&#160;&#160; 1 VIObjectByVIView&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VIObjectByVIView}        <br />&#160;&#160;&#160; 4 VIPermission&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VIPermission, New-VIPermission, Remove-&#8230;        <br />&#160;&#160;&#160; 1 VIPrivilege&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VIPrivilege}        <br />&#160;&#160;&#160; 3 VIProperty&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VIProperty, New-VIProperty, Remove-VIPr&#8230;        <br />&#160;&#160;&#160; 4 VIRole&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VIRole, New-VIRole, Remove-VIRole, Set-&#8230;        <br />&#160;&#160;&#160; 4 VirtualPortGroup&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VirtualPortGroup, New-VirtualPortGroup,&#8230;        <br />&#160;&#160;&#160; 4 VirtualSwitch&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VirtualSwitch, New-VirtualSwitch, Remov&#8230;        <br />&#160;&#160;&#160; 9 VM&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VM, Move-VM, New-VM, Remove-VM&#8230;}        <br />&#160;&#160;&#160; 4 VMGuest&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VMGuest, Restart-VMGuest, Shutdown-VMGu&#8230;        <br />&#160;&#160;&#160; 2 VMGuestNetworkInterface&#160;&#160; {Get-VMGuestNetworkInterface, Set-VMGuestNet&#8230;        <br />&#160;&#160;&#160; 3 VMGuestRoute&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VMGuestRoute, New-VMGuestRoute, Remove-&#8230;        <br />&#160;&#160;&#160; 4 VMHostAccount&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VMHostAccount, New-VMHostAccount, Remov&#8230;        <br />&#160;&#160;&#160; 2 VMHostAdvancedConfigur&#8230; {Get-VMHostAdvancedConfiguration, Set-VMHost&#8230;        <br />&#160;&#160;&#160; 1 VMHostAttributes&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VMHostAttributes}        <br />&#160;&#160;&#160; 2 VMHostAuthentication&#160;&#160;&#160;&#160;&#160; {Get-VMHostAuthentication, Set-VMHostAuthent&#8230;        <br />&#160;&#160;&#160; 1 VMHostAvailableTimeZone&#160;&#160; {Get-VMHostAvailableTimeZone}        <br />&#160;&#160;&#160; 2 VMHostDiagnosticPartition {Get-VMHostDiagnosticPartition, Set-VMHostDi&#8230;        <br />&#160;&#160;&#160; 1 VMHostDisk&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VMHostDisk}        <br />&#160;&#160;&#160; 2 VMHostFirewallDefaultP&#8230; {Get-VMHostFirewallDefaultPolicy, Set-VMHost&#8230;        <br />&#160;&#160;&#160; 2 VMHostFirewallException&#160;&#160; {Get-VMHostFirewallException, Set-VMHostFire&#8230;        <br />&#160;&#160;&#160; 2 VMHostFirmware&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VMHostFirmware, Set-VMHostFirmware}        <br />&#160;&#160;&#160; 2 VMHostHba&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VMHostHba, Set-VMHostHba}        <br />&#160;&#160;&#160; 1 VMHostImageProfile&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VMHostImageProfile}        <br />&#160;&#160;&#160; 1 VMHostMatchingRules&#160;&#160;&#160;&#160;&#160;&#160; {Get-VMHostMatchingRules}        <br />&#160;&#160;&#160; 2 VMHostModule&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VMHostModule, Set-VMHostModule}        <br />&#160;&#160;&#160; 2 VMHostNetwork&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VMHostNetwork, Set-VMHostNetwork}        <br />&#160;&#160;&#160; 4 VMHostNetworkAdapter&#160;&#160;&#160;&#160;&#160; {Get-VMHostNetworkAdapter, New-VMHostNetwork&#8230;        <br />&#160;&#160;&#160; 2 VMHostPatch&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VMHostPatch, Install-VMHostPatch}        <br />&#160;&#160;&#160; 1 VMHostProfileRequiredI&#8230; {Get-VMHostProfileRequiredInput}        <br />&#160;&#160;&#160; 4 VMHostRoute&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VMHostRoute, New-VMHostRoute, Remove-VM&#8230;        <br />&#160;&#160;&#160; 5 VMHostService&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VMHostService, Restart-VMHostService, S&#8230;        <br />&#160;&#160;&#160; 3 VMHostSnmp&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VMHostSnmp, Set-VMHostSnmp, Test-VMHost&#8230;        <br />&#160;&#160;&#160; 2 VMHostStartPolicy&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VMHostStartPolicy, Set-VMHostStartPolicy}        <br />&#160;&#160;&#160; 2 VMHostStorage&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VMHostStorage, Set-VMHostStorage}        <br />&#160;&#160;&#160; 2 VMHostSysLogServer&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VMHostSysLogServer, Set-VMHostSysLogSer&#8230;        <br />&#160;&#160;&#160; 2 VMQuestion&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VMQuestion, Set-VMQuestion}        <br />&#160;&#160;&#160; 2 VMResourceConfiguration&#160;&#160; {Get-VMResourceConfiguration, Set-VMResource&#8230;        <br />&#160;&#160;&#160; 2 VMStartPolicy&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Get-VMStartPolicy, Set-VMStartPolicy}        <br />&#160;&#160;&#160; 1 VMScript&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Invoke-VMScript}        <br />&#160;&#160;&#160; 3 CustomField&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {New-CustomField, Remove-CustomField, Set-Cu&#8230;        <br />&#160;&#160;&#160; 1 DeployImageCache&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {Repair-DeployImageCache}        <br />&#160;&#160;&#160; 2 DeployRuleSetCompliance&#160;&#160; {Repair-DeployRuleSetCompliance, Test-Deploy&#8230;        <br />&#160;&#160;&#160; 1 ActiveDeployRuleSet&#160;&#160;&#160;&#160;&#160;&#160; {Switch-ActiveDeployRuleSet}        <br />&#160;&#160;&#160; 1 VMHostProfileCompliance&#160;&#160; {Test-VMHostProfileCompliance}</font></p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://halr9000.com/article/943/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Can&#8217;t make it to VMWorld and live in Atlanta? Come to our VMUG!</title>
		<link>http://halr9000.com/article/942</link>
		<comments>http://halr9000.com/article/942#comments</comments>
		<pubDate>Tue, 23 Aug 2011 12:37:18 +0000</pubDate>
		<dc:creator>halr9000</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[Atlanta]]></category>
		<category><![CDATA[VMUG]]></category>
		<category><![CDATA[vmworld]]></category>

		<guid isPermaLink="false">http://halr9000.com/article/942</guid>
		<description><![CDATA[The Atlanta VMUG is gearing up for its huge annual event at the Georgia World Congress Center this October 24th! You can register for the one-day event at myvmug.org. They have not yet posted the agenda, but one thing that I know they will be have there is me talking about PowerCLI. I haven’t yet [...]]]></description>
			<content:encoded><![CDATA[<!-- no icon for 'VMware' --><p>The Atlanta VMUG is gearing up for its huge annual event at the Georgia World Congress Center this October 24th! You can <a href="http://www.myvmug.org/e/in/eid=71">register for the one-day event at myvmug.org</a>. They have not yet posted the agenda, but one thing that I know they will be have there is me talking about <a href="http://vmware.com/go/powercli">PowerCLI</a>. <img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://halr9000.com/wp-content/uploads/2011/08/wlEmoticon-smile.png" /> I haven’t yet come up with a topic, but you can assume that:</p>
<ul>
<li>I’ll talk about PowerCLI</li>
<li>I won’t bore you</li>
</ul>
<p>Beyond that is anyone’s guess, but suggestions are welcome. Leave your ideas in the comments below! I’m sure I’ll have a copy or two of some books or training videos to give away, so if nothing else, just show up for a chance at that. <img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://halr9000.com/wp-content/uploads/2011/08/wlEmoticon-smile.png" /></p>
<p>But seriously folks—this will be a huge event. The VMUG leaders are telling me to expect more than 1,000 attendees. Don’t miss it, <a href="http://www.myvmug.org/e/in/eid=71">register now</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://halr9000.com/article/942/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thanks For Nothing, MOM! (I mean, System Center Operations Manager, not you, Mom)</title>
		<link>http://halr9000.com/article/936</link>
		<comments>http://halr9000.com/article/936#comments</comments>
		<pubDate>Mon, 23 May 2011 12:29:26 +0000</pubDate>
		<dc:creator>halr9000</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[System Center Operations Manager]]></category>

		<guid isPermaLink="false">http://halr9000.com/article/936</guid>
		<description><![CDATA[Just wanted to vent a bit of frustration with System Center Operations Manager this morning. As you can see from the task manager shot below, SCOM (showing its Microsoft Operations Manager roots with the process name) likes to eat memory. I left it running over the weekend on my work PC. Bad idea. P.S. Mom, [...]]]></description>
			<content:encoded><![CDATA[<a href="http://halr9000.com/article/category/software/windows" title="Windows"><img src="/wp-content/icons/topic_windows.gif" align="right" width="54" height="46" alt="Windows" /></a>
<p>Just wanted to vent a bit of frustration with System Center Operations Manager this morning. As you can see from the task manager shot below, SCOM (showing its Microsoft Operations Manager roots with the process name) likes to eat memory. I left it running over the weekend on my work PC. Bad idea. </p>
<p><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://halr9000.com/wp-content/uploads/2011/05/image_thumb1.png" width="597" height="568" /></p>
<p>P.S. Mom, this has nothing to do with you, I promise!</p>
]]></content:encoded>
			<wfw:commentRss>http://halr9000.com/article/936/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quickly Duplicate Windows Features and Roles On Another Server Using PowerShell</title>
		<link>http://halr9000.com/article/934</link>
		<comments>http://halr9000.com/article/934#comments</comments>
		<pubDate>Fri, 20 May 2011 15:59:24 +0000</pubDate>
		<dc:creator>halr9000</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[ServerManager]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>

		<guid isPermaLink="false">http://halr9000.com/article/934</guid>
		<description><![CDATA[If you have a server that needs to have the same Windows Server features and roles as another system, here’s an easy way to quickly get that done using PowerShell. I did this logged into each server locally, but you could easily use PowerShell remoting to do the same thing. Step 1: Run PowerShell with [...]]]></description>
			<content:encoded><![CDATA[<a href="http://halr9000.com/article/category/programming/scripting/powershell" title="Powershell"><img src="/wp-content/icons/topic_powershell.png" align="right" width="70" height="53" alt="Powershell" /></a>
<a href="http://halr9000.com/article/category/software/windows" title="Windows"><img src="/wp-content/icons/topic_windows.gif" align="right" width="54" height="46" alt="Windows" /></a>
<p>If you have a server that needs to have the same Windows Server features and roles as another system, here’s an easy way to quickly get that done using PowerShell. I did this logged into each server locally, but you could easily use PowerShell remoting to do the same thing.</p>
<h3>Step 1: Run PowerShell with ServerManager module:</h3>
<p><a href="http://halr9000.com/wp-content/uploads/2011/05/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://halr9000.com/wp-content/uploads/2011/05/image_thumb.png" width="353" height="501"/></a></p>
<h3>Step 2: Export list of currently installed features to XML</h3>
<pre style="font-family: consolas,; font-size: small" class="powershell" #ffffff;? background-color: monospace; courier, New?, Courier>&nbsp;</pre>
<pre style="font-family: consolas,; font-size: small" class="powershell" #ffffff;? background-color: monospace; courier, New?, Courier>Get<span style="color: pink">-</span>WindowsFeature <span style="color: pink">|</span> <span style="color: pink">?</span> <span style="color: #000000">{</span> <a href="about:blank"><span style="color: #000080">$_</span></a>.installed <span style="color: #000000">}</span> <span style="color: pink">|</span> <span style="color: #008080; font-weight: bold">Export-Clixml</span> <a href="file://\\server\share\features.xml">\\server\share\features.xml</a></pre>
<h3>&nbsp;</h3>
<h3>Step 3: On second server, run PowerShell and import XML</h3>
<pre style="font-family: consolas,; font-size: small" class="powershell" #ffffff;? background-color: monospace; courier, New?, Courier><span style="color: #800080"></span>&nbsp;</pre>
<pre style="font-family: consolas,; font-size: small" class="powershell" #ffffff;? background-color: monospace; courier, New?, Courier><span style="color: #800080">$f</span> <span style="color: pink">=</span> <span style="color: #008080; font-weight: bold">Import-Clixml</span> <a href="file://\\server\share\features.xml">\\server\share\features.xml</a></pre>
<h3>&nbsp;</h3>
<h3>Step 4: Pipe that bad boy into Add-WindowsFeature!</h3>
<pre style="font-family: consolas,; font-size: small" class="powershell" #ffffff;? background-color: monospace; courier, New?, Courier><span style="color: #800080"></span>&nbsp;</pre>
<pre style="font-family: consolas,; font-size: small" class="powershell" #ffffff;? background-color: monospace; courier, New?, Courier><span style="color: #800080">$f</span> <span style="color: pink">|</span> Add<span style="color: pink">-</span>WindowsFeature</pre>
<h3>&nbsp;</h3>
<h3>Step 5: Restart, if needed</h3>
<pre style="font-family: consolas,; font-size: small" class="powershell" #ffffff;? background-color: monospace; courier, New?, Courier>&nbsp;</pre>
<pre style="font-family: consolas,; font-size: small" class="powershell" #ffffff;? background-color: monospace; courier, New?, Courier>Restart<span style="color: pink">-</span>Computer</pre>
<p>That’s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://halr9000.com/article/934/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>TechMentor is coming soon!</title>
		<link>http://halr9000.com/article/929</link>
		<comments>http://halr9000.com/article/929#comments</comments>
		<pubDate>Fri, 25 Feb 2011 03:50:14 +0000</pubDate>
		<dc:creator>halr9000</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[asides]]></category>

		<guid isPermaLink="false">http://halr9000.com/article/929</guid>
		<description><![CDATA[I’m not speaking this year, but I was really impressed when I spoke at TM Orlando a couple of years ago. You should check it out, and here’s a discount! You&#8217;re not too late for TechMentor Orlando (http://www.techmentorevents.com/orlando2011), March 14 &#8211; 18, 2011 at Disney&#8217;s Yacht Club. TechMentor is offering you the best discount so [...]]]></description>
			<content:encoded><![CDATA[<a href="http://halr9000.com/article/category/programming/scripting/powershell" title="Powershell"><img src="/wp-content/icons/topic_powershell.png" align="right" width="70" height="53" alt="Powershell" /></a>
<!-- no icon for 'VMware' --><!-- no icon for 'asides' --><p>I’m not speaking this year, but I was really impressed when I spoke at TM Orlando a couple of years ago. You should check it out, and here’s a discount!</p>
<p>You&#8217;re not too late for TechMentor Orlando (<a href="http://www.techmentorevents.com/orlando2011">http://www.techmentorevents.com/orlando2011</a>), March 14 &#8211; 18, 2011 at Disney&#8217;s Yacht Club.    <br />TechMentor is offering you the best discount so far &#8211; $400 discount off the 5 Day Best Value Conference Pass (discount applies to the Standard rate and new registrations only)! Register at <a href="http://bit.ly/TMReg">http://bit.ly/TMReg</a> with the code UGTM10 for the discount.    <br />If you&#8217;ve never attended it, TechMentor is 5 intensive and informative days of immediately-applicable training on today&#8217;s critical IT topics &#8211; everything from Active Directory to Virtualization &#8211; with a specific track and several sessions on PowerShell. Go to <a href="http://bit.ly/TMPwrShl">http://bit.ly/TMPwrShl</a> if you want to know more about sessions and speakers.</p>
]]></content:encoded>
			<wfw:commentRss>http://halr9000.com/article/929/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Kill that VM!</title>
		<link>http://halr9000.com/article/928</link>
		<comments>http://halr9000.com/article/928#comments</comments>
		<pubDate>Tue, 15 Feb 2011 04:06:44 +0000</pubDate>
		<dc:creator>halr9000</dc:creator>
				<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[stuck vm]]></category>
		<category><![CDATA[TrainSignal]]></category>

		<guid isPermaLink="false">http://halr9000.com/article/928</guid>
		<description><![CDATA[That’s right, I’m going to go there—with PowerCLI! The topic of how to kill a stuck or hung VM has been done to death using SSH and a few arcane shell commands, or a long-running support script. But did you know you can do the same thing using PowerCLI? I’ll be teaching you how in [...]]]></description>
			<content:encoded><![CDATA[<!-- no icon for 'PowerCLI' --><a href="http://halr9000.com/article/category/programming/scripting/powershell" title="Powershell"><img src="/wp-content/icons/topic_powershell.png" align="right" width="70" height="53" alt="Powershell" /></a>
<p>That’s right, I’m going to go there—with <a href="http://vmware.com/go/powercli">PowerCLI</a>! The topic of how to kill a stuck or hung VM has been done to death using SSH and a few arcane shell commands, or a long-running support script. But did you know you can do the same thing using PowerCLI? I’ll be teaching you how in my latest PowerCLI training video from <a href="http://trainsignal.com">TrainSignal</a>. If I get the time, I’ll put put up a detailed blog post detailing how its done. For now though—just a tease. <img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://halr9000.com/wp-content/uploads/2011/02/wlEmoticon-smile1.png" /></p>
<p><a href="http://halr9000.com/wp-content/uploads/2011/02/image.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://halr9000.com/wp-content/uploads/2011/02/image_thumb.png" width="644" height="484" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://halr9000.com/article/928/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>PowerCLI Quick Tip: Get VM Uptime</title>
		<link>http://halr9000.com/article/922</link>
		<comments>http://halr9000.com/article/922#comments</comments>
		<pubDate>Wed, 02 Feb 2011 20:21:23 +0000</pubDate>
		<dc:creator>halr9000</dc:creator>
				<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[uptime]]></category>
		<category><![CDATA[Virtual Machine]]></category>
		<category><![CDATA[VM]]></category>

		<guid isPermaLink="false">http://halr9000.com/article/922</guid>
		<description><![CDATA[Well, technically, it’s not uptime, it’s “last boot time”, but you know what I mean. I think this is much more useful than the number of seconds since the last boot anyway… $LastBootProp = @{ Name = 'LastBootTime' Expression = { ( Get-Date ) - ( New-TimeSpan -Seconds $_.Summary.QuickStats.UptimeSeconds ) } } Get-VM &#124; Get-View [...]]]></description>
			<content:encoded><![CDATA[<!-- no icon for 'PowerCLI' --><a href="http://halr9000.com/article/category/programming/scripting/powershell" title="Powershell"><img src="/wp-content/icons/topic_powershell.png" align="right" width="70" height="53" alt="Powershell" /></a>
<!-- no icon for 'VMware' --><p>Well, technically, it’s not uptime, it’s “last boot time”, but you know what I mean. I think this is much more useful than the number of seconds since the last boot anyway…</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:4c80c01d-bdb3-411b-a65e-f811a74ba576" class="wlWriterEditableSmartContent">
<pre class="brush: perl; gutter: true; first-line: 1; tab-size: 4;  toolbar: false;  width: 747px; height: 134px;" style=" width: 747px; height: 134px;overflow: auto;">$LastBootProp = @{
  Name = 'LastBootTime'
    Expression = {
      ( Get-Date ) - ( New-TimeSpan -Seconds $_.Summary.QuickStats.UptimeSeconds )
	}
}
Get-VM | Get-View | select Name, $LastBootProp</pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>In case you are curious, a “quick tip” means that I don’t have time to write a longer post. <img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://halr9000.com/wp-content/uploads/2011/02/wlEmoticon-smile.png" /> Hey, it’s better than not sharing!</p>
]]></content:encoded>
			<wfw:commentRss>http://halr9000.com/article/922/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Which Dream (Virtualization) Layer Are We In Again?</title>
		<link>http://halr9000.com/article/920</link>
		<comments>http://halr9000.com/article/920#comments</comments>
		<pubDate>Sun, 30 Jan 2011 17:49:57 +0000</pubDate>
		<dc:creator>halr9000</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[diagram]]></category>
		<category><![CDATA[inception]]></category>
		<category><![CDATA[lab]]></category>
		<category><![CDATA[visio]]></category>

		<guid isPermaLink="false">http://halr9000.com/article/920</guid>
		<description><![CDATA[I think the movie Inception was a pretty good analogy to my home virtual lab. Here’s my latest Visio diagram. All of this is hosted on a single quad-core HP workstation with 8 GB RAM.]]></description>
			<content:encoded><![CDATA[<!-- no icon for 'VMware' --><p><a href="http://www.amazon.com/gp/product/B002ZG981E?ie=UTF8&amp;tag=techprosaic-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=B002ZG981E"><img style="display: inline; float: left" align="left" src="http://ecx.images-amazon.com/images/I/510BJ7kkgNL._SL160_.jpg" /></a>I think the movie Inception was a pretty good analogy to my home virtual lab. Here’s my latest Visio diagram. All of this is hosted on a single quad-core HP workstation with 8 GB RAM.</p>
<p><a href="http://halr9000.com/wp-content/uploads/2011/01/image.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://halr9000.com/wp-content/uploads/2011/01/image_thumb.png" width="644" height="453" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://halr9000.com/article/920/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Deleting Computer Objects with PowerShell</title>
		<link>http://halr9000.com/article/916</link>
		<comments>http://halr9000.com/article/916#comments</comments>
		<pubDate>Fri, 14 Jan 2011 15:41:41 +0000</pubDate>
		<dc:creator>halr9000</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Quest AD Cmdlets;Active Directory;100-level]]></category>

		<guid isPermaLink="false">http://halr9000.com/article/916</guid>
		<description><![CDATA[First of all—I feel like such a n00b to be posting this. It’s fair to say that I know a bit about PowerShell but, man, the world is so big and I certainly do not know it all. As I always say, if I didn’t learn something today, then I must be dead. Ok, on [...]]]></description>
			<content:encoded><![CDATA[<a href="http://halr9000.com/article/category/programming/scripting/powershell" title="Powershell"><img src="/wp-content/icons/topic_powershell.png" align="right" width="70" height="53" alt="Powershell" /></a>
<a href="http://halr9000.com/article/category/software/windows" title="Windows"><img src="/wp-content/icons/topic_windows.gif" align="right" width="54" height="46" alt="Windows" /></a>
<p>First of all—I feel like such a n00b to be posting this. It’s fair to say that I know a bit about PowerShell but, man, the world is so big and I certainly do not know it all. As I always say, if I didn’t learn something today, then I must be dead.</p>
<p>Ok, on to the learning. As you may have heard, I changed jobs recently. I now work at a 500-person insurance company with a 70-person IT staff. By far the smallest company I’ve ever worked for (following MCI, HP, IBM, The Home Depot). In this new job, I have to wear many hats, which should be no surprise to those of you who work in SMB! I think it’s great, actually, because I’m exercising my brain in ways it hasn’t been in ages. For example, I don’t know crap about Active Directory, at least relative to other aspects of Windows considering the amount of time that I’ve called myself a Windows admin. So when it came time for me to do some routine AD cleanup, I certainly had to learn a few things—which is a good thing to me.</p>
<p>The task ahead of me was that there were tons of stale AD computer accounts in our domain. (See, I call it a domain, that’s how old my AD knowledge is.) Normally, this doesn’t hurt anything, but in our case, we have an anti-virus app which allocates licenses automatically based on the computer objects! So we were wasting licenses on computers which didn’t exist, and that needed cleaning up.</p>
<p>Of course, my first thought was to do it with PowerShell. I already had the venerable Quest AD snap-in loaded, so I just ran a quick one-liner to make my list of potential accounts. This was the easy part.</p>
<pre style="font-family: consolas,; font-size: small" class="powershell" courier="courier" new?,="New?," courier,="courier," monospace;="monospace;" background-color:="background-color:" #ffffff;?="#ffffff;?"><span style="color: #800080">$c</span> <span style="color: pink">=</span> Get<span style="color: pink">-</span>QADComputer <span style="color: pink">-</span>InactiveFor <span style="color: #804000">90</span></pre>
<p>After doing some sanity ping checks to make sure this list was good, I went to delete the first one:</p>
<pre style="font-family: consolas,; font-size: small" class="powershell" courier="courier" new?,="New?," courier,="courier," monospace;="monospace;" background-color:="background-color:" #ffffff;?="#ffffff;?">PS<span style="color: pink">&gt;</span> <span style="color: #800080">$c</span><span style="color: #000000">[</span><span style="color: #804000">0</span><span style="color: #000000">]</span> <span style="color: pink">|</span> Remove<span style="color: pink">-</span>QADObject</pre>
<pre style="font-family: consolas,; font-size: small" class="powershell" courier="courier" new?,="New?," courier,="courier," monospace;="monospace;" background-color:="background-color:" #ffffff;?="#ffffff;?">&#160;&#160; </pre>
<pre style="font-family: consolas,; font-size: small" class="powershell" courier="courier" new?,="New?," courier,="courier," monospace;="monospace;" background-color:="background-color:" #ffffff;?="#ffffff;?">Warning<span style="color: pink">!</span>
Are you sure you want to delete this object: CN<span style="color: pink">=</span>foobar<span style="color: pink">,</span>DC<span style="color: pink">=</span>domain<span style="color: pink">,</span>DC<span style="color: pink">=</span>com<span style="color: pink">?</span>
<span style="color: #000000">[</span>Y<span style="color: #000000">]</span> Yes  <span style="color: #000000">[</span>A<span style="color: #000000">]</span> Yes to All  <span style="color: #000000">[</span>N<span style="color: #000000">]</span> No  <span style="color: #000000">[</span>L<span style="color: #000000">]</span> No to All  <span style="color: #000000">[</span>S<span style="color: #000000">]</span> Suspend  <span style="color: #000000">[</span><span style="color: pink">?</span><span style="color: #000000">]</span> Help <span style="color: #000000">(</span>default is <span style="color: #800000">&quot;Y&quot;</span><span style="color: #000000">)</span>:
Remove<span style="color: pink">-</span>QADObject : The directory service can perform the requested operation only on a leaf object.
At line:<span style="color: #804000">1</span> char:<span style="color: #804000">25</span>
<span style="color: pink">+</span> <span style="color: #800080">$c</span><span style="color: #000000">[</span><span style="color: #804000">0</span><span style="color: #000000">]</span> <span style="color: pink">|</span> Remove<span style="color: pink">-</span>QADObject <span style="color: pink">&lt;&lt;&lt;&lt;</span>
    <span style="color: pink">+</span> CategoryInfo          : NotSpecified: <span style="color: #000000">(</span>:<span style="color: #000000">)</span> <span style="color: #000000">[</span>Remove<span style="color: pink">-</span>QADObject<span style="color: #000000">]</span><span style="color: pink">,</span> DirectoryServicesCOMException
    <span style="color: pink">+</span> FullyQualifiedErrorId : System.DirectoryServices.DirectoryServicesCOMException<span style="color: pink">,</span>Quest.ActiveRoles.ArsPowerShell
   eObjectCmdlet</pre>
<p>Oops, that didn’t work! Well, I did <a href="http://www.vistax64.com/powershell/200911-unable-delete-object-using-remove-qadobject.html">some research</a> and found an old newsgroup post that says that computer objects are really containers and that in order to delete them, you have to use the DeleteTree switch. So, I tried that:</p>
<pre style="font-family: consolas,; font-size: small" class="powershell" courier="courier" new?,="New?," courier,="courier," monospace;="monospace;" background-color:="background-color:" #ffffff;?="#ffffff;?">PS<span style="color: pink">&gt;</span> <span style="color: #800080">$c</span><span style="color: #000000">[</span><span style="color: #804000">0</span><span style="color: #000000">]</span> <span style="color: pink">|</span> Remove<span style="color: pink">-</span>QADObject –DeleteTree</pre>
<pre style="font-family: consolas,; font-size: small" class="powershell" courier="courier" new?,="New?," courier,="courier," monospace;="monospace;" background-color:="background-color:" #ffffff;?="#ffffff;?">&#160;&#160; </pre>
<pre style="font-family: consolas,; font-size: small" class="powershell" courier="courier" new?,="New?," courier,="courier," monospace;="monospace;" background-color:="background-color:" #ffffff;?="#ffffff;?">Warning<span style="color: pink">!</span>
Are you sure you want to delete this object and its children: CN<span style="color: pink">=</span>foobar<span style="color: pink">,</span>DC<span style="color: pink">=</span>domain<span style="color: pink">,</span>DC<span style="color: pink">=</span>com<span style="color: pink">?</span>
<span style="color: #000000">[</span>Y<span style="color: #000000">]</span> Yes  <span style="color: #000000">[</span>A<span style="color: #000000">]</span> Yes to All  <span style="color: #000000">[</span>N<span style="color: #000000">]</span> No  <span style="color: #000000">[</span>L<span style="color: #000000">]</span> No to All  <span style="color: #000000">[</span>S<span style="color: #000000">]</span> Suspend  <span style="color: #000000">[</span><span style="color: pink">?</span><span style="color: #000000">]</span> Help <span style="color: #000000">(</span>default is <span style="color: #800000">&quot;Y&quot;</span><span style="color: #000000">)</span>:
Remove<span style="color: pink">-</span>QADObject : Access is denied. <span style="color: #000000">(</span>Exception from HRESULT: 0x80070005 <span style="color: #000000">(</span>E_ACCESSDENIED<span style="color: #000000">)</span><span style="color: #000000">)</span>
At line:<span style="color: #804000">1</span> char:<span style="color: #804000">25</span>
<span style="color: pink">+</span> <span style="color: #800080">$c</span><span style="color: #000000">[</span><span style="color: #804000">0</span><span style="color: #000000">]</span> <span style="color: pink">|</span> Remove<span style="color: pink">-</span>QADObject <span style="color: pink">&lt;&lt;&lt;&lt;</span>  <span style="color: pink">-</span>DeleteTree
    <span style="color: pink">+</span> CategoryInfo          : NotSpecified: <span style="color: #000000">(</span>:<span style="color: #000000">)</span> <span style="color: #000000">[</span>Remove<span style="color: pink">-</span>QADObject<span style="color: #000000">]</span><span style="color: pink">,</span> UnauthorizedAccessException
    <span style="color: pink">+</span> FullyQualifiedErrorId : System.UnauthorizedAccessException<span style="color: pink">,</span>Quest.ActiveRoles.ArsPowerShellSnapIn.Cmdlets.RemoveO
   bjectCmdlet</pre>
<p>Access denied! So, I tried an elevated shell. No help. Back to Google. I searched for “<a href="http://www.google.com/search?sourceid=chrome&amp;ie=UTF-8&amp;q=unable+remove-qadobject+leaf#sclient=psy&amp;hl=en&amp;q=access+denied+remove-qadobject+deletetree&amp;aq=f&amp;aqi=&amp;aql=&amp;oq=&amp;pbx=1&amp;psj=1&amp;fp=ee5b8d49ec6ea034">access denied remove-qadobject deletetree</a>” and the <a href="http://www.google.com/search?sourceid=chrome&amp;ie=UTF-8&amp;q=unable+remove-qadobject+leaf#sclient=psy&amp;hl=en&amp;q=access+denied+remove-qadobject+deletetree&amp;aq=f&amp;aqi=&amp;aql=&amp;oq=&amp;pbx=1&amp;psj=1&amp;fp=ee5b8d49ec6ea034">third hit</a> looked interesting. It was a section on working with computer objects in the book Active Directory Cookbook (awesome that google books does that). From reading this, I realized that somewhere in the permissions hierarchy, these computer objects had accidental deletion prevention enabled! Luckily, they had some PowerShell code that I quickly adapted to my situation:</p>
<pre style="font-family: consolas,; font-size: small" class="powershell" courier="courier" new?,="New?," courier,="courier," monospace;="monospace;" background-color:="background-color:" #ffffff;?="#ffffff;?">PS<span style="color: pink">&gt;</span> <span style="color: #800080">$c</span> <span style="color: pink">|</span> Add<span style="color: pink">-</span>QADPermission <span style="color: pink">-</span>Account <span style="color: #800000">'EVERYONE'</span> <span style="color: pink">-</span>Rights <span style="color: #800000">'Delete,DeleteTree'</span> <span style="color: pink">-</span>ApplyTo <span style="color: #800000">'ThisObjectOnly'</span></pre>
<pre style="font-family: consolas,; font-size: small" class="powershell" courier="courier" new?,="New?," courier,="courier," monospace;="monospace;" background-color:="background-color:" #ffffff;?="#ffffff;?"><span style="color: #800000"></span>&#160;&#160; </pre>
<pre style="font-family: consolas,; font-size: small" class="powershell" courier="courier" new?,="New?," courier,="courier," monospace;="monospace;" background-color:="background-color:" #ffffff;?="#ffffff;?">Ctrl   Account                                  Rights                              Source           AppliesTo
<span style="color: pink">----</span>   <span style="color: pink">-------</span>                                  <span style="color: pink">------</span>                              <span style="color: pink">------</span>           <span style="color: pink">---------</span>
       Everyone                                 Special                             Not inherited    This object only
       Everyone                                 Special                             Not inherited    This object only
       Everyone                                 Special                             Not inherited    This object only</pre>
<p>Plus 507 more lines just like that. And then, I tried again and…</p>
<pre style="font-family: consolas,; font-size: small" class="powershell" courier="courier" new?,="New?," courier,="courier," monospace;="monospace;" background-color:="background-color:" #ffffff;?="#ffffff;?">PS<span style="color: pink">&gt;</span> <span style="color: #800080">$c</span> <span style="color: pink">=</span> Get<span style="color: pink">-</span>QADComputer <span style="color: pink">-</span>InactiveFor <span style="color: #804000">90</span>
PS<span style="color: pink">&gt;</span> <span style="color: #800080">$c</span>
PS<span style="color: pink">&gt;</span> </pre>
<p>Success! I hope that this post that illustrates my learning process helps someone else who comes across the same situation.</p>
]]></content:encoded>
			<wfw:commentRss>http://halr9000.com/article/916/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Interviewed on VIRTUMANIA 20 &#8211; Powershell is Latin to Me</title>
		<link>http://halr9000.com/article/906</link>
		<comments>http://halr9000.com/article/906#comments</comments>
		<pubDate>Sun, 25 Jul 2010 03:40:41 +0000</pubDate>
		<dc:creator>halr9000</dc:creator>
				<category><![CDATA[Podcasting]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://halr9000.com/article/906</guid>
		<description><![CDATA[I had a great time chatting with my vNeighbor Rich Brambley, Marc Farley, and Scott Herold on the Virtumania podcast the other day. Please go check out VIRTUMANIA 20 and be sure to download their other episodes. From the blog post: “This week’s discussion focuses on using Powershell in virtual environments instead of a GUI, [...]]]></description>
			<content:encoded><![CDATA[<!-- no icon for 'Podcasting' --><!-- no icon for 'VMware' --><p>I had a great time chatting with my vNeighbor Rich Brambley, Marc Farley, and Scott Herold on the Virtumania podcast the other day. Please go check out <a href="http://virtumania.podbean.com/2010/07/24/virtumania-20-powershell-is-latin-to-me/">VIRTUMANIA 20</a> and be sure to download their <a href="http://virtumania.podbean.com/">other episodes</a>. </p>
<p>From the blog post:</p>
<blockquote><p>“This week’s discussion focuses on using Powershell in virtual environments instead of a GUI, compares learning scripting to learning the verbs and nouns of a new language such as Latin, and highlights several Powershell sites and tools that every administrator should check out.”</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://halr9000.com/article/906/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Quick PowerCLI Tip: Determine vNetwork Teaming Uplinks for Distributed Virtual Switch PortGroups</title>
		<link>http://halr9000.com/article/903</link>
		<comments>http://halr9000.com/article/903#comments</comments>
		<pubDate>Sat, 17 Jul 2010 19:01:25 +0000</pubDate>
		<dc:creator>halr9000</dc:creator>
				<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[portgroup]]></category>

		<guid isPermaLink="false">http://halr9000.com/article/903</guid>
		<description><![CDATA[Need to determine what the uplink policy is for your DVSwitches? Here is a quick PowerCLI snippet to do that. I’d go into more detail but I don’t have time this moment. Consider this longer than a tweet, but shorter than my normal blog post. Here is the corresponding screen in the vSphere Client (pardon [...]]]></description>
			<content:encoded><![CDATA[<!-- no icon for 'PowerCLI' --><a href="http://halr9000.com/article/category/programming/scripting/powershell" title="Powershell"><img src="/wp-content/icons/topic_powershell.png" align="right" width="70" height="53" alt="Powershell" /></a>
<!-- no icon for 'VMware' --><p>Need to determine what the uplink policy is for your DVSwitches? Here is a quick <a href="http://vmware.com/go/powercli">PowerCLI</a> snippet to do that. I’d go into more detail but I don’t have time this moment. Consider this longer than a tweet, but shorter than my normal blog post. <img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://halr9000.com/wp-content/uploads/2010/07/wlEmoticonsmile.png" /></p>
<p>Here is the corresponding screen in the vSphere Client (pardon the font issues, I’m running blind-person-size-font) with the relevant portion highlighted:</p>
<p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" class="wlDisabledImage" title="vSphere client screenshot" border="0" alt="vSphere client screenshot" src="http://halr9000.com/wp-content/uploads/2010/07/image.png" width="753" height="469" /></p>
<p>And the code:</p>
<pre><span style="color: #0000ff">PS</span><span style="color: #000000">&gt;</span><span style="color: #000000"> </span><span style="color: #800080">$pgName</span><span style="color: #000000"> </span><span style="color: #ff0000">=</span><span style="color: #000000"> </span><span style="color: #800000">'</span><span style="color: #800000">Name of your DV port group</span><span style="color: #800000">'</span><span style="color: #000000">
</span><span style="color: #0000ff">PS</span><span style="color: #000000">&gt;</span><span style="color: #000000"> </span><span style="color: #800080">$pg</span><span style="color: #000000"> </span><span style="color: #ff0000">=</span><span style="color: #000000"> </span><span style="color: #5f9ea0">Get-View</span><span style="color: #000000"> </span><span style="color: #5f9ea0">-ViewType</span><span style="color: #000000"> </span><span style="color: #0000ff">DistributedVirtualPortgroup</span><span style="color: #000000"> </span><span style="color: #5f9ea0">-Filter</span><span style="color: #000000"> </span><span style="color: #000000">@</span><span style="color: #000000">{ </span><span style="color: #0000ff">Name</span><span style="color: #000000"> </span><span style="color: #ff0000">=</span><span style="color: #000000"> </span><span style="color: #800080">$pgName</span><span style="color: #000000"> }
</span><span style="color: #0000ff">PS</span><span style="color: #000000">&gt;</span><span style="color: #000000"> </span><span style="color: #800080">$pg</span><span style="color: #000000">.</span><span style="color: #8b4513">Config</span><span style="color: #000000">.</span><span style="color: #8b4513">DefaultPortConfig</span><span style="color: #000000">.</span><span style="color: #8b4513">UplinkTeamingPolicy</span><span style="color: #000000">.</span><span style="color: #8b4513">UplinkPortOrder</span><span style="color: #000000">

</span><span style="color: #0000ff">ActiveUplinkPort</span><span style="color: #000000">  </span><span style="color: #000000">:</span><span style="color: #000000"> {</span><span style="color: #0000ff">dvUplink1</span><span style="color: #000000">,</span><span style="color: #000000"> </span><span style="color: #0000ff">dvUplink2</span><span style="color: #000000">}
</span><span style="color: #0000ff">StandbyUplinkPort</span><span style="color: #000000"> </span><span style="color: #000000">:</span><span style="color: #000000">
</span><span style="color: #0000ff">Inherited</span><span style="color: #000000">         </span><span style="color: #000000">:</span><span style="color: #000000"> </span><span style="color: #0000ff">True</span><span style="color: #000000">
</span><span style="color: #0000ff">DynamicType</span><span style="color: #000000">       </span><span style="color: #000000">:</span><span style="color: #000000">
</span><span style="color: #0000ff">DynamicProperty</span><span style="color: #000000">   </span><span style="color: #000000">:</span></pre>
]]></content:encoded>
			<wfw:commentRss>http://halr9000.com/article/903/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Security Authorization in vSphere</title>
		<link>http://halr9000.com/article/894</link>
		<comments>http://halr9000.com/article/894#comments</comments>
		<pubDate>Thu, 24 Jun 2010 02:14:18 +0000</pubDate>
		<dc:creator>halr9000</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Screencast]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[powercli]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[train signal]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://halr9000.com/article/894</guid>
		<description><![CDATA[I thought I’d share another slide with you tonight. This is also from my upcoming Train Signal vSphere Pro video. Before tackling a set of PowerCLI cmdlets, I like to give you a good base understanding of the concepts.]]></description>
			<content:encoded><![CDATA[<a href="http://halr9000.com/article/category/programming/scripting/powershell" title="Powershell"><img src="/wp-content/icons/topic_powershell.png" align="right" width="70" height="53" alt="Powershell" /></a>
<!-- no icon for 'Screencast' --><!-- no icon for 'VMware' --><p>I thought I’d share another slide with you tonight. This is also from my upcoming <a href="http://trainsignal.com">Train Signal</a> vSphere Pro video. Before tackling a set of <a href="http://vmware.com/go/powercli">PowerCLI</a> cmdlets, I like to give you a good base understanding of the concepts.</p>
<p><a href="http://halr9000.com/wp-content/uploads/2010/06/image1.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://halr9000.com/wp-content/uploads/2010/06/image_thumb1.png" width="644" height="484" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://halr9000.com/article/894/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Get-Stat cmdlet is a bit hard to work with</title>
		<link>http://halr9000.com/article/890</link>
		<comments>http://halr9000.com/article/890#comments</comments>
		<pubDate>Sat, 19 Jun 2010 19:32:53 +0000</pubDate>
		<dc:creator>halr9000</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Screencast]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://halr9000.com/article/890</guid>
		<description><![CDATA[As evidenced by the slide I’m working on at the moment for the upcoming TrainSignal vSphere Pro Series lesson titled “Performance with PowerCLI”. I really wanted to use stars for the difficulty level and make them vibrate like they do in the game, but I was spending too much time on this slide as it [...]]]></description>
			<content:encoded><![CDATA[<a href="http://halr9000.com/article/category/programming/scripting/powershell" title="Powershell"><img src="/wp-content/icons/topic_powershell.png" align="right" width="70" height="53" alt="Powershell" /></a>
<!-- no icon for 'Screencast' --><!-- no icon for 'VMware' --><p>As evidenced by the slide I’m working on at the moment for the upcoming <a href="http://www.trainsignal.com/VMware-vSphere-Pro-Series-Training-Vol-1-P91.aspx">TrainSignal vSphere Pro Series</a> lesson titled “Performance with PowerCLI”.</p>
<p>I really wanted to use stars for the difficulty level and make them vibrate like they do in the game, but I was spending too much time on this slide as it was. <img src='http://halr9000.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://halr9000.com/wp-content/uploads/2010/06/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://halr9000.com/wp-content/uploads/2010/06/image_thumb.png" width="644" height="484" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://halr9000.com/article/890/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Please vote for my PowerCLI Codestock session!</title>
		<link>http://halr9000.com/article/870</link>
		<comments>http://halr9000.com/article/870#comments</comments>
		<pubDate>Sat, 13 Mar 2010 18:43:53 +0000</pubDate>
		<dc:creator>halr9000</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://halr9000.com/article/870</guid>
		<description><![CDATA[If you are in the Southeast US, you may be interested in the upcoming Codestock event coming up in June in Knoxville, TN. It seems to be heavily slanted towards developers, but they are doing IT Pro and Entrepeneur tracks this year as well. I have submitted one session for my Managing VMware with PowerShell [...]]]></description>
			<content:encoded><![CDATA[<a href="http://halr9000.com/article/category/programming/scripting/powershell" title="Powershell"><img src="/wp-content/icons/topic_powershell.png" align="right" width="70" height="53" alt="Powershell" /></a>
<!-- no icon for 'VMware' --><p>If you are in the Southeast US, you may be interested in the upcoming <a href="http://codestock.org">Codestock</a> event coming up in June in Knoxville, TN. It seems to be heavily slanted towards developers, but they are doing IT Pro and Entrepeneur tracks this year as well. I have submitted one session for my <a href="http://codestock.org/sessions/managing-vmware-with-windows-powershell-and-powercli.aspx">Managing VMware with PowerShell thing</a>. If you have a minute, please go over to the site to register and vote my session up. </p>
<p>I’ve never been to Codestock before, but it looks like fun. In fact, it looks like a lot more fun than your typical canned vendor convention. I don’t plan on doing many speaker engagements this year aside from the occasional <a href="http://atlsmug.org">SMUG</a> or <a href="http://powershellgroup.org/atlanta.ga">APUG</a> meeting here in Atlanta, but I thought going to Knoxville might be a neat excuse to get out an d see a new city. The drive to Knoxville from Atlanta is pretty nice if you go through Chattahoochee and Nantahala national forests, so we are looking forward to that.</p>
<p><img src="http://l.yimg.com/g/images/spaceball.gif" /><img src="http://l.yimg.com/g/images/spaceball.gif" /></p>
</p>
<p><img src="http://l.yimg.com/g/images/spaceball.gif" /><img src="http://l.yimg.com/g/images/spaceball.gif" /></p>
</p>
<p><img alt="Brasstown Bald Road by tfdavis." src="http://farm4.static.flickr.com/3115/3159556923_248f4a319f.jpg" /></p>
<p>(credit <a href="http://www.flickr.com/photos/tfdavis/3159556923/">tfdavis on flickr</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://halr9000.com/article/870/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Kind Words from a Reader</title>
		<link>http://halr9000.com/article/869</link>
		<comments>http://halr9000.com/article/869#comments</comments>
		<pubDate>Mon, 01 Mar 2010 01:58:44 +0000</pubDate>
		<dc:creator>halr9000</dc:creator>
				<category><![CDATA[Book]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://halr9000.com/article/869</guid>
		<description><![CDATA[This email arrived in my inbox today: Just finished your book for the second time.&#160; Man, have I learned a lot!&#160; I am way ahead of the PowerShell curve for admins in general.&#160; No one at my work can touch me!&#160; SQl, AD, VMware, IIS, Group Policy, log extraction, etc…&#160; I do it all with [...]]]></description>
			<content:encoded><![CDATA[<!-- no icon for 'Book' --><!-- no icon for 'VMware' --><p>This email arrived in my inbox today:</p>
<blockquote><p>Just finished your book for the second time.&#160; Man, have I learned a lot!&#160; I am way ahead of the PowerShell curve for admins in general.&#160; No one at my work can touch me!&#160; SQl, AD, VMware, IIS, Group Policy, log extraction, etc…&#160; I do it all with PowerShell.</p>
<p>A lot of people say, you can do all this stuff in the VMware client.&#160; My reply is simply- no you can’t…&#160; I have at least 30 automated PowerShell scripts that run throughout the week.&#160; I don’t know how I lived without PowerShell.&#160; </p>
<p>Again, your book rocked.&#160; I actually paid for it!&#160; I won’t let anyone borrow it either.&#160; I need it way too much.&#160; I tell them to BUY THEIR OWN!!!</p>
<p>G.B.</p>
</blockquote>
<p>I really enjoyed reading it and wanted to share this with everyone. Very cool of him to take the time to send me the note.</p>
]]></content:encoded>
			<wfw:commentRss>http://halr9000.com/article/869/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerCLI Tip: Speed up your login</title>
		<link>http://halr9000.com/article/867</link>
		<comments>http://halr9000.com/article/867#comments</comments>
		<pubDate>Sun, 24 Jan 2010 21:32:57 +0000</pubDate>
		<dc:creator>halr9000</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[powercli]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://halr9000.com/article/867</guid>
		<description><![CDATA[When using PowerCLI, the first thing you have to do is to create a connection and authenticate yourself to your vSphere and/or vCenter servers. This is done with the Connect-VIServer cmdlet. Sometimes, this connection can be slow, taking ten or more seconds just to display a password prompt! That gets old pretty quickly. There is [...]]]></description>
			<content:encoded><![CDATA[<a href="http://halr9000.com/article/category/programming/scripting/powershell" title="Powershell"><img src="/wp-content/icons/topic_powershell.png" align="right" width="70" height="53" alt="Powershell" /></a>
<!-- no icon for 'VMware' --><p><a href="http://halr9000.com/wp-content/uploads/2010/01/image.png"><img style="border-bottom: 0px; border-left: 0px; margin: 0px 0px 0px 5px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" align="right" src="http://halr9000.com/wp-content/uploads/2010/01/image_thumb.png" width="244" height="187" /></a> When using <a href="http://vmware.com/go/powercli">PowerCLI</a>, the first thing you have to do is to create a connection and authenticate yourself to your vSphere and/or vCenter servers. This is done with the <a href="http://www.vmware.com/support/developer/windowstoolkit/wintk40u1/html/Connect-VIServer.html">Connect-VIServer</a> cmdlet. Sometimes, this connection can be slow, taking ten or more seconds just to display a password prompt! That gets old pretty quickly.</p>
<p>There is a good reason for the slowness before you are prompted for credentials, and turns out, it’s a feature, not a bug. PowerCLI supports a single-sign-on (SSO) authentication when you attempt a connection to a vCenter server. What happens in the background is that your current Windows credentials are being passed on to the server and that is tried first, before even prompting you for credentials. This is great if you are sitting at the office and have a fast link to the vCenter server, and you happen to be logging into your workstation with a domain accont, and that domain account has vCenter rights. This transparent passing of credentials is definitely a timesaver under those circumstances.</p>
<p>But on the other hand, what if you are connecting from home over a slow link? What if you are on your home PC or a local account? What if, due to security policies at your company, your normal user account doesn’t even HAVE admin privileges? Yup, the authentication attempt fails (or simply takes a while), and you are left twiddling your thumbs, waiting for the “real” login prompt to appear.</p>
<h3>Resolution</h3>
<p>The fix is an easy one. Instead of typing this to connect:</p>
<pre class="csharpcode">Connect-VIServer vcenter.domain.com
<style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
</pre>
<p>…type something like this:</p>
<pre class="csharpcode">Connect-VIServer vcenter.domain.com -Credential (Get-Credential)</pre>
<p>or the less-recommended, yet still quite functional:</p>
<pre class="csharpcode">Connect-VIServer vcenter.domain.com -user myuser -password mypass</pre>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<p>By using one of these methods, you are instructing Connect-VIServer to explicitly use a set of credentials which you specify. This way, it won’t bother attempting to pass along your current credentials, thus saving you a few seconds and perhaps a gray hair or two.</p>
]]></content:encoded>
			<wfw:commentRss>http://halr9000.com/article/867/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PowerCLI Script: New-Farm</title>
		<link>http://halr9000.com/article/845</link>
		<comments>http://halr9000.com/article/845#comments</comments>
		<pubDate>Sat, 19 Dec 2009 18:34:47 +0000</pubDate>
		<dc:creator>halr9000</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[powercli]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://halr9000.com/article/845</guid>
		<description><![CDATA[This is a sample script that I created to show how you might create a relatively complex virtual farm environment. The hypothetical requirements for this farm are: Add 10 ESX servers to a vCenter, one for each customer Create a resource pool for each customer Inside each of these, create a resource pool for each [...]]]></description>
			<content:encoded><![CDATA[<a href="http://halr9000.com/article/category/programming/scripting/powershell" title="Powershell"><img src="/wp-content/icons/topic_powershell.png" align="right" width="70" height="53" alt="Powershell" /></a>
<!-- no icon for 'VMware' --><p>This is a sample script that I created to show how you might create a relatively complex virtual farm environment. The hypothetical requirements for this farm are:</p>
<ol>
<li>Add 10 ESX servers to a vCenter, one for each customer</li>
<li>Create a resource pool for each customer</li>
<li>Inside each of these, create a resource pool for each server role, and a specified number of virtual machines, based on previously-created VM templates
<ol>
<li>2 x proxy server</li>
<li>4 x web server</li>
<li>2 x app server</li>
<li>2 x database server</li>
</ol>
</li>
</ol>
<p>I hope you find the script useful!</p>
<p><script type="text/javascript" src="http://PoshCode.org/embed/1547"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://halr9000.com/article/845/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Quick Outlook Automation Examples</title>
		<link>http://halr9000.com/article/836</link>
		<comments>http://halr9000.com/article/836#comments</comments>
		<pubDate>Fri, 20 Nov 2009 14:15:29 +0000</pubDate>
		<dc:creator>halr9000</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[outlook]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://halr9000.com/article/836</guid>
		<description><![CDATA[PowerShell is so cool… I had no idea how to automate Outlook with COM before today. Took me about 5 minutes to learn how with PowerShell. I knew it could be done with VBS, right? That’s how viruses are made. This won’t be a long blog unfortunately, but wanted to paste real quick a series [...]]]></description>
			<content:encoded><![CDATA[<a href="http://halr9000.com/article/category/programming/scripting/powershell" title="Powershell"><img src="/wp-content/icons/topic_powershell.png" align="right" width="70" height="53" alt="Powershell" /></a>
<a href="http://halr9000.com/article/category/software/windows" title="Windows"><img src="/wp-content/icons/topic_windows.gif" align="right" width="54" height="46" alt="Windows" /></a>
<p>PowerShell is so cool…</p>
<p>I had no idea how to automate Outlook with COM before today. Took me about 5 minutes to learn how with PowerShell. I knew it could be done with VBS, right? That’s how viruses are made. <img src='http://halr9000.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>This won’t be a long blog unfortunately, but wanted to paste real quick a series of commands which I basically figured out in a shell interactively. I didn’t have to read any docs, Get-Member told me all I needed to know.</p>
<p>I did go back and add some comments. I hope you find it useful.</p>
<div id="codeSnippetWrapper" style="border-right: silver 1px solid; padding-right: 4px; border-top: silver 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: silver 1px solid; width: 97.5%; cursor: text; direction: ltr; line-height: 12pt; padding-top: 4px; border-bottom: silver 1px solid; font-family: &#39;Courier New&#39;, courier, monospace; background-color: #f4f4f4; text-align: left; max-height: 200px">
<div id="codeSnippet" style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; direction: ltr; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; direction: ltr; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none">$ol = New-Object -com Outlook.Application <span style="color: #008000"># starts outlook</span></pre>
<p><!--CRLF--></p>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; direction: ltr; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none">$ol.Reminders | select caption, nextreminderdate <span style="color: #008000"># show reminders</span></pre>
<p><!--CRLF--></p>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; direction: ltr; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none">$ol | gm -mem method <span style="color: #008000"># show all methods (actions) on the com object</span></pre>
<p><!--CRLF--></p>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; direction: ltr; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none">$n = $ol.CreateItem(<span style="color: #006080">'olNoteItem'</span>) <span style="color: #008000"># creates a note</span></pre>
<p><!--CRLF--></p>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; direction: ltr; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none">$n <span style="color: #008000"># display note object</span></pre>
<p><!--CRLF--></p>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; direction: ltr; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none">$n.Body = <span style="color: #006080">'test'</span> <span style="color: #008000"># set body of note</span></pre>
<p><!--CRLF--></p>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; direction: ltr; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none">$n | gm <span style="color: #008000"># display object members (methods &amp; properties) of note</span></pre>
<p><!--CRLF--></p>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; direction: ltr; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none">$n.Display() <span style="color: #008000"># show note</span></pre>
<p><!--CRLF--></p>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; direction: ltr; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none">$n.Color <span style="color: #008000"># display color value</span></pre>
<p><!--CRLF--></p>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; direction: ltr; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none">$n.Color = 4 <span style="color: #008000"># set color</span></pre>
<p><!--CRLF--></p>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; direction: ltr; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none">1..5 | ForEach-Object { $n.Color = $_; sleep 1 } <span style="color: #008000"># change color of note 5 times</span></pre>
<p><!--CRLF--></p>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; direction: ltr; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none">$m = $ol.CreateItem(<span style="color: #006080">'olMailItem'</span>) <span style="color: #008000"># create mail object</span></pre>
<p><!--CRLF--></p>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; direction: ltr; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none">$m <span style="color: #008000"># display mail object</span></pre>
<p><!--CRLF--></p>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; direction: ltr; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none">$m | gm -mem property <span style="color: #008000"># show mail properties</span></pre>
<p><!--CRLF--></p>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; direction: ltr; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none">$m.Subject = <span style="color: #006080">'test'</span> <span style="color: #008000"># set subject</span></pre>
<p><!--CRLF--></p>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; direction: ltr; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none">$m.Body = <span style="color: #006080">'test'</span> <span style="color: #008000"># set body</span></pre>
<p><!--CRLF--></p>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; direction: ltr; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none">$m.To = <span style="color: #006080">'email@domain.com'</span> <span style="color: #008000"># set to address</span></pre>
<p><!--CRLF--></p>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; direction: ltr; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none">$m.Display() <span style="color: #008000"># display mail item on screen </span></pre>
<p><!--CRLF--></p>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; direction: ltr; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none">$m.Send() <span style="color: #008000"># send mail item</span></pre>
<p><!--CRLF--></p>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; direction: ltr; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none">$ol <span style="color: #008000"># display outlook object</span></pre>
<p><!--CRLF--></p>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; direction: ltr; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none">$ol | gm # display outlook methods</pre>
<p><!--CRLF--></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://halr9000.com/article/836/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adding Port Groups with PowerCLI</title>
		<link>http://halr9000.com/article/828</link>
		<comments>http://halr9000.com/article/828#comments</comments>
		<pubDate>Fri, 02 Oct 2009 12:22:09 +0000</pubDate>
		<dc:creator>halr9000</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[portgroup]]></category>
		<category><![CDATA[powercli]]></category>
		<category><![CDATA[virtual networking]]></category>

		<guid isPermaLink="false">http://halr9000.com/article/828</guid>
		<description><![CDATA[David at the Holy VM! blog just put up an article with a script showing you how to create port groups using PowerCLI. He was kind enough to reference my book as inspiration, so the least I can do in return is link to it. Be sure to follow David’s blog, I see several interesting [...]]]></description>
			<content:encoded><![CDATA[<a href="http://halr9000.com/article/category/programming/scripting/powershell" title="Powershell"><img src="/wp-content/icons/topic_powershell.png" align="right" width="70" height="53" alt="Powershell" /></a>
<!-- no icon for 'VMware' --><p>David at the <a href="http://www.holy-vm.com/">Holy VM!</a> blog just put up an article with a script showing you how to <a href="http://www.holy-vm.com/2009/10/01/adding-port-groups-with-powercli/">create port groups using PowerCLI</a>. He was kind enough to reference my book as inspiration, so the least I can do in return is link to it. <img src='http://halr9000.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Be sure to follow David’s blog, I see several interesting posts on there recently about his experiences with vSphere.</p>
]]></content:encoded>
			<wfw:commentRss>http://halr9000.com/article/828/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Demos from VMworld</title>
		<link>http://halr9000.com/article/798</link>
		<comments>http://halr9000.com/article/798#comments</comments>
		<pubDate>Thu, 10 Sep 2009 02:00:56 +0000</pubDate>
		<dc:creator>halr9000</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[demos]]></category>
		<category><![CDATA[powercli]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[vmworld]]></category>

		<guid isPermaLink="false">http://halr9000.com/article/798</guid>
		<description><![CDATA[If you were waiting for me to post the demo scripts from TA2650: Taking PowerCLI to the Next Level, then you wait is over! My co-presenter Luc Dekens actually buckled under the pressure and started his own blog.&#160; He’s got four posts on it already, and they are: TA2650 scripts – Part 1 – Profiling [...]]]></description>
			<content:encoded><![CDATA[<a href="http://halr9000.com/article/category/programming/scripting/powershell" title="Powershell"><img src="/wp-content/icons/topic_powershell.png" align="right" width="70" height="53" alt="Powershell" /></a>
<!-- no icon for 'VMware' --><p>If you were waiting for me to post the demo scripts from TA2650: Taking PowerCLI to the Next Level, then you wait is over! My co-presenter <a href="http://lucd.info/">Luc Dekens</a> actually buckled under the pressure and started his own blog.&#160; He’s got four posts on it already, and they are:</p>
<ul>
<li><a href="http://lucd.info/?p=7">TA2650 scripts – Part 1 – Profiling your vSphere environment</a></li>
<li><a href="http://lucd.info/?p=106">TA2650 scripts – Part 2 – Using the profile XML file for SDK programming</a></li>
<li><a href="http://lucd.info/?p=162">TA2650 scripts – Part 3 – Checking cluster node configurations</a></li>
<li><a href="http://lucd.info/?p=182">TA2650 scripts – Part 4 – NIC Teaming – “hidden” failure criteria</a></li>
</ul>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://halr9000.com/article/798/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

