<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Alfa BBT &#187; PowerShell</title>
	<atom:link href="http://blog.koenvermoesen.be/tag/powershell/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.koenvermoesen.be</link>
	<description>Allways looking for a better Blog Title...</description>
	<lastBuildDate>Tue, 13 Jul 2010 09:33:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.koenvermoesen.be' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/72db48a689a5327f7bba8c9193cac8af?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Alfa BBT &#187; PowerShell</title>
		<link>http://blog.koenvermoesen.be</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.koenvermoesen.be/osd.xml" title="Alfa BBT" />
	<atom:link rel='hub' href='http://blog.koenvermoesen.be/?pushpress=hub'/>
		<item>
		<title>Command Based Help Gotcha</title>
		<link>http://blog.koenvermoesen.be/2010/05/20/command-based-help-gotcha-2/</link>
		<comments>http://blog.koenvermoesen.be/2010/05/20/command-based-help-gotcha-2/#comments</comments>
		<pubDate>Thu, 20 May 2010 20:57:06 +0000</pubDate>
		<dc:creator>Koen Vermoesen</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">https://k0v3.wordpress.com/?p=1036</guid>
		<description><![CDATA[I’ve had the chance to play around with some PowerShell scripting again. A nice occasion to try and include some Comment Based Help I read about in TechNet Magazine a couple of months ago. However I couldn’t get it to work in combination with the standard script header template I tend to use for all [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=1036&subd=k0v3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I’ve had the chance to play around with some PowerShell scripting again. A nice occasion to try and include some Comment Based Help I read about in <a title="WTFM: Writing the Fabulous Manual" href="http://technet.microsoft.com/en-us/magazine/ff458353.aspx">TechNet Magazine</a> a couple of months ago. However I couldn’t get it to work in combination with the standard script header template I tend to use for all of my scripts.</p>
<p>I experimented with commenting out each line on its own:</p>
<pre class="brush: powershell;">
#header
#
#help
</pre>
<p>or using comment blocks</p>
<pre class="brush: powershell;">
&lt;#
header
help
#&gt;
</pre>
<p>even</p>
<pre class="brush: powershell;">
&lt;#
header
#&gt;
&lt;#
help
#&gt;
</pre>
<p>and a couple more variations, but no joy. After some “binging” I ended up reading <a title="about_Comment_Based_Help" href="Writing the Fabulous Manual">about_Comment_Based_Help</a>;</p>
<blockquote><p>All of the lines in a comment-based Help topic must be contiguous. If a comment-based Help topic follows a comment that is not part of the Help topic, there must be at least one blank line between the last non-Help comment line and the beginning of the comment-based Help.</p></blockquote>
<p>It still took some more trial and error to realize that an “empty line” well, needs to be really empty. It cannot contain a comment character either! Call me stupid ;-)</p>
<p>Here’s an example of how it should be done (Ref. line 22):</p>
<pre class="brush: powershell; highlight: [22]; wrap-lines: true;">
#========================================================================================================
# AUTHOR
# Koen Vermoesen
# ***.***@***.***
# 2010-05-20
#========================================================================================================
# SCRIPT
# Create custom address lists based on a CSV file
#========================================================================================================
# PREREQUISITES
# /
#========================================================================================================
# CHANGE HISTORY:
# 2010-05-10 Initial version
#========================================================================================================
# TO DO
# /
#========================================================================================================
# COMMENTS
# Parent lists need to proceed child lists in your input csv-file!
#========================================================================================================

#.SYNOPSIS
#Create custom address lists
#
#.DESCRIPTION
#Create custom address lists based on a CSV file called &amp;quot;CreateAddressLists.csv&amp;quot; with these columns
# - Name
# - Container
# - RecipientFilter
#The script will check if the &quot;Container&quot;-field is empty and run de cmdlet with or without &quot;-container&quot; option
#
#.Link
#http://technet.microsoft.com/en-us/library/aa996912.aspx

$Input = &quot;CreateAddressLists.csv&quot;
Import-CSV $Input | Foreach { If ($_.Container -eq &quot;&quot;) {New-AddressList -Name $_.Name -RecipientFilter $_.RecipientFilter} else {New-AddressList -Name $_.Name -Container $_.Container -RecipientFilter $_.RecipientFilter}}
</pre>
<p>For those of you wondering, I have the habit of using scripts not just for bulky or repetitive actions but also as means of documentation and standardization. Additionally these scripts come in handy If you ever need to rebuild some part of the infrastructure. Hence the 35 lines of comment for only 2 lines of code.</p>
<br />Filed under: <a href='http://blog.koenvermoesen.be/category/tech/scripting/'>Scripting</a> Tagged: <a href='http://blog.koenvermoesen.be/tag/powershell/'>PowerShell</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/k0v3.wordpress.com/1036/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/k0v3.wordpress.com/1036/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/k0v3.wordpress.com/1036/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/k0v3.wordpress.com/1036/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/k0v3.wordpress.com/1036/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/k0v3.wordpress.com/1036/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/k0v3.wordpress.com/1036/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/k0v3.wordpress.com/1036/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/k0v3.wordpress.com/1036/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/k0v3.wordpress.com/1036/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=1036&subd=k0v3&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.koenvermoesen.be/2010/05/20/command-based-help-gotcha-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4f646bcfc3f7534b20fa79e0347353eb?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">k0v3</media:title>
		</media:content>
	</item>
		<item>
		<title>PowerCLI autocompletion for Notepad++</title>
		<link>http://blog.koenvermoesen.be/2010/05/06/powercli-autocompletion-for-notepad/</link>
		<comments>http://blog.koenvermoesen.be/2010/05/06/powercli-autocompletion-for-notepad/#comments</comments>
		<pubDate>Thu, 06 May 2010 14:14:35 +0000</pubDate>
		<dc:creator>Stijn Vermoesen</dc:creator>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Notepad++]]></category>
		<category><![CDATA[PowerCLI]]></category>

		<guid isPermaLink="false">https://k0v3.wordpress.com/?p=1014</guid>
		<description><![CDATA[Notepad++ supports Powershell from version v5.6 but the VMware PowerCLI cmdlets aren&#8217;t included. So I created PowerCLI Language definition file for syntax highlighting. It contains the cmdlets available in vSphere PowerCLI 4 Update 1 and vCenter Update Manager PowerCLI 4 Update 1. &#60;NotepadPlus&#62; &#60;UserLang name=&#34;PowerCLI&#34; ext=&#34;ps1&#34;&#62; &#60;Settings&#62; &#60;Global caseIgnored=&#34;yes&#34; /&#62; &#60;TreatAsSymbol comment=&#34;no&#34; commentLine=&#34;no&#34; /&#62; &#60;Prefix [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=1014&subd=k0v3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Notepad++ supports Powershell from version v5.6 but the VMware PowerCLI cmdlets aren&#8217;t included.</p>
<p>So I created PowerCLI Language definition file for syntax highlighting. It contains the cmdlets available in vSphere PowerCLI 4 Update 1 and vCenter Update Manager PowerCLI 4 Update 1.</p>
<pre class="brush: xml; wrap-lines: false;">
&lt;NotepadPlus&gt;
    &lt;UserLang name=&quot;PowerCLI&quot; ext=&quot;ps1&quot;&gt;
        &lt;Settings&gt;
            &lt;Global caseIgnored=&quot;yes&quot; /&gt;
            &lt;TreatAsSymbol comment=&quot;no&quot; commentLine=&quot;no&quot; /&gt;
            &lt;Prefix words1=&quot;yes&quot; words2=&quot;yes&quot; words3=&quot;no&quot; words4=&quot;no&quot; /&gt;
        &lt;/Settings&gt;
        &lt;KeywordLists&gt;
            &lt;Keywords name=&quot;Delimiters&quot;&gt;000000&lt;/Keywords&gt;
            &lt;Keywords name=&quot;Folder+&quot;&gt;&lt;/Keywords&gt;
            &lt;Keywords name=&quot;Folder-&quot;&gt;&lt;/Keywords&gt;
            &lt;Keywords name=&quot;Operators&quot;&gt;&lt;/Keywords&gt;
            &lt;Keywords name=&quot;Comment&quot;&gt;&lt;/Keywords&gt;
            &lt;Keywords name=&quot;Words1&quot;&gt;Add-PassthroughDevice Add-VMHost Add-VmHostNtpServer Apply-DrsRecommendation Apply-VMHostProfile Connect-VIServer Copy-DatastoreItem Copy-HardDisk Copy-VMGuestFile Disconnect-VIServer Dismount-Tools Export-VApp Export-VMHostProfile Get-Annotation Get-CDDrive Get-Cluster Get-CustomAttribute Get-Datacenter Get-Datastore Get-DrsRecommendation Get-DrsRule Get-FloppyDrive Get-Folder Get-HardDisk Get-Inventory Get-IScsiHbaTarget Get-Log Get-LogType Get-NetworkAdapter Get-NicTeamingPolicy Get-OSCustomizationNicMapping Get-OSCustomizationSpec Get-PassthroughDevice Get-PowerCLIConfiguration Get-PowerCLIVersion Get-ResourcePool Get-ScsiLun Get-ScsiLunPath Get-Snapshot Get-Stat Get-StatInterval Get-StatType Get-Task Get-Template Get-UsbDevice Get-VApp Get-VICredentialStoreItem Get-VIEvent Get-View Get-VIObjectByVIView Get-VIPermission Get-VIPrivilege Get-VIRole Get-VirtualPortGroup Get-VirtualSwitch Get-VM Get-VMGuest Get-VMGuestNetworkInterface Get-VMGuestRoute Get-VMHost Get-VMHostAccount Get-VMHostAdvancedConfiguration Get-VMHostAvailableTimeZone Get-VMHostDiagnosticPartition Get-VMHostFirewallDefaultPolicy Get-VMHostFirewallException Get-VMHostFirmware Get-VMHostHba Get-VMHostModule Get-VMHostNetwork Get-VMHostNetworkAdapter Get-VMHostNtpServer Get-VMHostProfile Get-VMHostService Get-VMHostSnmp Get-VMHostStartPolicy Get-VMHostStorage Get-VMHostSysLogServer Get-VMQuestion Get-VMResourceConfiguration Get-VMStartPolicy Import-VApp Import-VMHostProfile Install-VMHostPatch Invoke-VMScript Mount-Tools Move-Cluster Move-Datacenter Move-Folder Move-Inventory Move-ResourcePool Move-Template Move-VM Move-VMHostNew-CDDrive New-ClusterNew-CustomAttribute New-CustomField New-Datacenter New-Datastore New-DrsRule New-FloppyDrive New-Folder New-HardDisk New-IScsiHbaTarget New-NetworkAdapter New-OSCustomizationNicMapping New-OSCustomizationSpec New-ResourcePool New-Snapshot New-StatInterval New-Template New-VApp New-VICredentialStoreItem New-VIPermission New-VIRole New-VirtualPortGroup New-VirtualSwitch New-VM New-VMGuestRoute New-VMHostAccount New-VMHostNetworkAdapter New-VMHostProfile Remove-CDDrive Remove-Cluster Remove-CustomAttribute Remove-CustomField Remove-Datacenter Remove-Datastore Remove-DrsRule Remove-FloppyDrive Remove-Folder Remove-HardDisk Remove-Inventory Remove-IScsiHbaTarget Remove-NetworkAdapter Remove-OSCustomizationNicMap... Remove-OSCustomizationSpec Remove-PassthroughDevice Remove-ResourcePool Remove-Snapshot Remove-StatInterval Remove-Template Remove-UsbDevice Remove-VApp Remove-VICredentialStoreItem Remove-VIPermission Remove-VIRole Remove-VirtualPortGroup Remove-VirtualSwitch Remove-VM Remove-VMGuestRoute Remove-VMHost Remove-VMHostAccount Remove-VMHostNetworkAdapter Remove-VMHostNtpServer Remove-VMHostProfile Restart-VM Restart-VMGuest Restart-VMHost Restart-VMHostService Set-Annotation Set-CDDrive Set-Cluster Set-CustomAttribute Set-CustomField Set-Datacenter Set-Datastore Set-DrsRule Set-FloppyDrive Set-Folder Set-HardDisk Set-IScsiHbaTarget Set-NetworkAdapter Set-NicTeamingPolicy Set-OSCustomizationNicMapping Set-OSCustomizationSpec Set-PowerCLIConfiguration Set-ResourcePool Set-ScsiLun Set-ScsiLunPath Set-Snapshot Set-StatInterval Set-Template Set-VApp Set-VIPermission Set-VIRole Set-VirtualPortGroup Set-VirtualSwitch Set-VM Set-VMGuestNetworkInterface Set-VMGuestRoute Set-VMHost Set-VMHostAccount Set-VMHostAdvancedConfiguration Set-VMHostDiagnosticPartition Set-VMHostFirewallDefaultPolicy Set-VMHostFirewallException Set-VMHostFirmware Set-VMHostHba Set-VMHostModule Set-VMHostNetwork Set-VMHostNetworkAdapter Set-VMHostProfile Set-VMHostService Set-VMHostSnmp Set-VMHostStartPolicy Set-VMHostStorage Set-VMHostSysLogServer Set-VMQuestion Set-VMResourceConfiguration Set-VMStartPolicy Shutdown-VMGuest Start-VApp Start-VM Start-VMHost Start-VMHostService Stop-Task Stop-VApp Stop-VM Stop-VMHost Stop-VMHostService Suspend-VM Suspend-VMGuest Suspend-VMHost Test-VMHostProfileCompliance Test-VMHostSnmp Update-Tools Wait-Task Attach-Baseline Detach-Baseline Download-Patch Get-Baseline Get-Compliance Get-Patch Get-PatchBaseline New-PatchBaseline Remediate-Inventory Remove-Baseline Scan-Inventory Set-PatchBaseline Stage-Patch&lt;/Keywords&gt;
            &lt;Keywords name=&quot;Words2&quot;&gt;Answer-VMQuestion Get-ESX Get-PowerCLIDocumentation Get-VC Get-VIServer Get-VIToolkitConfiguration Get-VIToolkitVersion Set-VIToolkitConfiguration&lt;/Keywords&gt;
            &lt;Keywords name=&quot;Words3&quot;&gt;&lt;/Keywords&gt;
            &lt;Keywords name=&quot;Words4&quot;&gt;&lt;/Keywords&gt;
        &lt;/KeywordLists&gt;
        &lt;Styles&gt;
            &lt;WordsStyle name=&quot;DEFAULT&quot; styleID=&quot;11&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; /&gt;
            &lt;WordsStyle name=&quot;FOLDEROPEN&quot; styleID=&quot;12&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; /&gt;
            &lt;WordsStyle name=&quot;FOLDERCLOSE&quot; styleID=&quot;13&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; /&gt;
            &lt;WordsStyle name=&quot;KEYWORD1&quot; styleID=&quot;5&quot; fgColor=&quot;0000FF&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;1&quot; /&gt;
            &lt;WordsStyle name=&quot;KEYWORD2&quot; styleID=&quot;6&quot; fgColor=&quot;8080FF&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; /&gt;
            &lt;WordsStyle name=&quot;KEYWORD3&quot; styleID=&quot;7&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; /&gt;
            &lt;WordsStyle name=&quot;KEYWORD4&quot; styleID=&quot;8&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; /&gt;
            &lt;WordsStyle name=&quot;COMMENT&quot; styleID=&quot;1&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; /&gt;
            &lt;WordsStyle name=&quot;COMMENT LINE&quot; styleID=&quot;2&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; /&gt;
            &lt;WordsStyle name=&quot;NUMBER&quot; styleID=&quot;4&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; /&gt;
            &lt;WordsStyle name=&quot;OPERATOR&quot; styleID=&quot;10&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; /&gt;
            &lt;WordsStyle name=&quot;DELIMINER1&quot; styleID=&quot;14&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; /&gt;
            &lt;WordsStyle name=&quot;DELIMINER2&quot; styleID=&quot;15&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; /&gt;
            &lt;WordsStyle name=&quot;DELIMINER3&quot; styleID=&quot;16&quot; fgColor=&quot;000000&quot; bgColor=&quot;FFFFFF&quot; fontName=&quot;&quot; fontStyle=&quot;0&quot; /&gt;
        &lt;/Styles&gt;
    &lt;/UserLang&gt;
&lt;/NotepadPlus&gt;
</pre>
<p>To add PowerCLI as a user-defined language %APPDATA%\Notepad++\userDefineLang.xml and add the above configuration to this file.</p>
<p>Secondly I created a PowerCLI auto-completion file which contains the same PowerCLI cmdlets. This configuration needs to be added to C:\Program Files\Notepad++\plugins\APIs\PowerCLI.xml. The name of the auto-completion file needs to be the same as defined in the user-defined language definition file.</p>
<pre class="brush: xml; wrap-lines: false;">
&lt;NotepadPlus&gt;
	&lt;AutoComplete&gt;
		&lt;KeyWord name=&quot;Add-PassthroughDevice&quot;/&gt;
		&lt;KeyWord name=&quot;Add-VMHost&quot;/&gt;
		&lt;KeyWord name=&quot;Add-VmHostNtpServer&quot;/&gt;
		&lt;KeyWord name=&quot;Answer-VMQuestion&quot;/&gt;
		&lt;KeyWord name=&quot;Apply-DrsRecommendation&quot;/&gt;
		&lt;KeyWord name=&quot;Apply-VMHostProfile&quot;/&gt;
		&lt;KeyWord name=&quot;Attach-Baseline&quot;/&gt;
		&lt;KeyWord name=&quot;Connect-VIServer&quot;/&gt;
		&lt;KeyWord name=&quot;Copy-DatastoreItem&quot;/&gt;
		&lt;KeyWord name=&quot;Copy-HardDisk&quot;/&gt;
		&lt;KeyWord name=&quot;Copy-VMGuestFile&quot;/&gt;
		&lt;KeyWord name=&quot;Detach-Baseline&quot;/&gt;
		&lt;KeyWord name=&quot;Disconnect-VIServer&quot;/&gt;
		&lt;KeyWord name=&quot;Dismount-Tools&quot;/&gt;
		&lt;KeyWord name=&quot;Download-Patch&quot;/&gt;
		&lt;KeyWord name=&quot;Export-VApp&quot;/&gt;
		&lt;KeyWord name=&quot;Export-VMHostProfile&quot;/&gt;
		&lt;KeyWord name=&quot;Get-Annotation&quot;/&gt;
		&lt;KeyWord name=&quot;Get-Baseline&quot;/&gt;
		&lt;KeyWord name=&quot;Get-CDDrive&quot;/&gt;
		&lt;KeyWord name=&quot;Get-Cluster&quot;/&gt;
		&lt;KeyWord name=&quot;Get-Compliance&quot;/&gt;
		&lt;KeyWord name=&quot;Get-CustomAttribute&quot;/&gt;
		&lt;KeyWord name=&quot;Get-Datacenter&quot;/&gt;
		&lt;KeyWord name=&quot;Get-Datastore&quot;/&gt;
		&lt;KeyWord name=&quot;Get-DrsRecommendation&quot;/&gt;
		&lt;KeyWord name=&quot;Get-DrsRule&quot;/&gt;
		&lt;KeyWord name=&quot;Get-ESX&quot;/&gt;
		&lt;KeyWord name=&quot;Get-FloppyDrive&quot;/&gt;
		&lt;KeyWord name=&quot;Get-Folder&quot;/&gt;
		&lt;KeyWord name=&quot;Get-HardDisk&quot;/&gt;
		&lt;KeyWord name=&quot;Get-IScsiHbaTarget&quot;/&gt;
		&lt;KeyWord name=&quot;Get-Inventory&quot;/&gt;
		&lt;KeyWord name=&quot;Get-Log&quot;/&gt;
		&lt;KeyWord name=&quot;Get-LogType&quot;/&gt;
		&lt;KeyWord name=&quot;Get-NetworkAdapter&quot;/&gt;
		&lt;KeyWord name=&quot;Get-NicTeamingPolicy&quot;/&gt;
		&lt;KeyWord name=&quot;Get-OSCustomizationNicMapping&quot;/&gt;
		&lt;KeyWord name=&quot;Get-OSCustomizationSpec&quot;/&gt;
		&lt;KeyWord name=&quot;Get-PassthroughDevice&quot;/&gt;
		&lt;KeyWord name=&quot;Get-Patch&quot;/&gt;
		&lt;KeyWord name=&quot;Get-PatchBaseline&quot;/&gt;
		&lt;KeyWord name=&quot;Get-PowerCLIConfiguration&quot;/&gt;
		&lt;KeyWord name=&quot;Get-PowerCLIDocumentation&quot;/&gt;
		&lt;KeyWord name=&quot;Get-PowerCLIVersion&quot;/&gt;
		&lt;KeyWord name=&quot;Get-ResourcePool&quot;/&gt;
		&lt;KeyWord name=&quot;Get-ScsiLun&quot;/&gt;
		&lt;KeyWord name=&quot;Get-ScsiLunPath&quot;/&gt;
		&lt;KeyWord name=&quot;Get-Snapshot&quot;/&gt;
		&lt;KeyWord name=&quot;Get-Stat&quot;/&gt;
		&lt;KeyWord name=&quot;Get-StatInterval&quot;/&gt;
		&lt;KeyWord name=&quot;Get-StatType&quot;/&gt;
		&lt;KeyWord name=&quot;Get-Task&quot;/&gt;
		&lt;KeyWord name=&quot;Get-Template&quot;/&gt;
		&lt;KeyWord name=&quot;Get-UsbDevice&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VApp&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VC&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VICredentialStoreItem&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VIEvent&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VIObjectByVIView&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VIPermission&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VIPrivilege&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VIRole&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VIServer&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VIToolkitConfiguration&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VIToolkitVersion&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VM&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMGuest&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMGuestNetworkInterface&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMGuestRoute&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMHost&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMHostAccount&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMHostAdvancedConfiguration&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMHostAvailableTimeZone&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMHostDiagnosticPartition&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMHostFirewallDefaultPolicy&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMHostFirewallException&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMHostFirmware&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMHostHba&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMHostModule&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMHostNetwork&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMHostNetworkAdapter&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMHostNtpServer&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMHostProfile&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMHostService&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMHostSnmp&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMHostStartPolicy&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMHostStorage&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMHostSysLogServer&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMQuestion&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMResourceConfiguration&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VMStartPolicy&quot;/&gt;
		&lt;KeyWord name=&quot;Get-View&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VirtualPortGroup&quot;/&gt;
		&lt;KeyWord name=&quot;Get-VirtualSwitch&quot;/&gt;
		&lt;KeyWord name=&quot;Import-VApp&quot;/&gt;
		&lt;KeyWord name=&quot;Import-VMHostProfile&quot;/&gt;
		&lt;KeyWord name=&quot;Install-VMHostPatch&quot;/&gt;
		&lt;KeyWord name=&quot;Invoke-VMScript&quot;/&gt;
		&lt;KeyWord name=&quot;Mount-Tools&quot;/&gt;
		&lt;KeyWord name=&quot;Move-Cluster&quot;/&gt;
		&lt;KeyWord name=&quot;Move-Datacenter&quot;/&gt;
		&lt;KeyWord name=&quot;Move-Folder&quot;/&gt;
		&lt;KeyWord name=&quot;Move-Inventory&quot;/&gt;
		&lt;KeyWord name=&quot;Move-ResourcePool&quot;/&gt;
		&lt;KeyWord name=&quot;Move-Template&quot;/&gt;
		&lt;KeyWord name=&quot;Move-VM&quot;/&gt;
		&lt;KeyWord name=&quot;Move-VMHost&quot;/&gt;
		&lt;KeyWord name=&quot;New-CDDrive&quot;/&gt;
		&lt;KeyWord name=&quot;New-Cluster&quot;/&gt;
		&lt;KeyWord name=&quot;New-CustomAttribute&quot;/&gt;
		&lt;KeyWord name=&quot;New-CustomField&quot;/&gt;
		&lt;KeyWord name=&quot;New-Datacenter&quot;/&gt;
		&lt;KeyWord name=&quot;New-Datastore&quot;/&gt;
		&lt;KeyWord name=&quot;New-DrsRule&quot;/&gt;
		&lt;KeyWord name=&quot;New-FloppyDrive&quot;/&gt;
		&lt;KeyWord name=&quot;New-Folder&quot;/&gt;
		&lt;KeyWord name=&quot;New-HardDisk&quot;/&gt;
		&lt;KeyWord name=&quot;New-IScsiHbaTarget&quot;/&gt;
		&lt;KeyWord name=&quot;New-NetworkAdapter&quot;/&gt;
		&lt;KeyWord name=&quot;New-OSCustomizationNicMapping&quot;/&gt;
		&lt;KeyWord name=&quot;New-OSCustomizationSpec&quot;/&gt;
		&lt;KeyWord name=&quot;New-PatchBaseline&quot;/&gt;
		&lt;KeyWord name=&quot;New-ResourcePool&quot;/&gt;
		&lt;KeyWord name=&quot;New-Snapshot&quot;/&gt;
		&lt;KeyWord name=&quot;New-StatInterval&quot;/&gt;
		&lt;KeyWord name=&quot;New-Template&quot;/&gt;
		&lt;KeyWord name=&quot;New-VApp&quot;/&gt;
		&lt;KeyWord name=&quot;New-VICredentialStoreItem&quot;/&gt;
		&lt;KeyWord name=&quot;New-VIPermission&quot;/&gt;
		&lt;KeyWord name=&quot;New-VIRole&quot;/&gt;
		&lt;KeyWord name=&quot;New-VM&quot;/&gt;
		&lt;KeyWord name=&quot;New-VMGuestRoute&quot;/&gt;
		&lt;KeyWord name=&quot;New-VMHostAccount&quot;/&gt;
		&lt;KeyWord name=&quot;New-VMHostNetworkAdapter&quot;/&gt;
		&lt;KeyWord name=&quot;New-VMHostProfile&quot;/&gt;
		&lt;KeyWord name=&quot;New-VirtualPortGroup&quot;/&gt;
		&lt;KeyWord name=&quot;New-VirtualSwitch&quot;/&gt;
		&lt;KeyWord name=&quot;Remediate-Inventory&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-Baseline&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-CDDrive&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-Cluster&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-CustomAttribute&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-CustomField&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-Datacenter&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-Datastore&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-DrsRule&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-FloppyDrive&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-Folder&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-HardDisk&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-IScsiHbaTarget&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-Inventory&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-NetworkAdapter&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-OSCustomizationNicMap...&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-OSCustomizationSpec&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-PassthroughDevice&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-ResourcePool&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-Snapshot&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-StatInterval&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-Template&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-UsbDevice&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-VApp&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-VICredentialStoreItem&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-VIPermission&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-VIRole&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-VM&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-VMGuestRoute&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-VMHost&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-VMHostAccount&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-VMHostNetworkAdapter&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-VMHostNtpServer&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-VMHostProfile&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-VirtualPortGroup&quot;/&gt;
		&lt;KeyWord name=&quot;Remove-VirtualSwitch&quot;/&gt;
		&lt;KeyWord name=&quot;Restart-VM&quot;/&gt;
		&lt;KeyWord name=&quot;Restart-VMGuest&quot;/&gt;
		&lt;KeyWord name=&quot;Restart-VMHost&quot;/&gt;
		&lt;KeyWord name=&quot;Restart-VMHostService&quot;/&gt;
		&lt;KeyWord name=&quot;Scan-Inventory&quot;/&gt;
		&lt;KeyWord name=&quot;Set-Annotation&quot;/&gt;
		&lt;KeyWord name=&quot;Set-CDDrive&quot;/&gt;
		&lt;KeyWord name=&quot;Set-Cluster&quot;/&gt;
		&lt;KeyWord name=&quot;Set-CustomAttribute&quot;/&gt;
		&lt;KeyWord name=&quot;Set-CustomField&quot;/&gt;
		&lt;KeyWord name=&quot;Set-Datacenter&quot;/&gt;
		&lt;KeyWord name=&quot;Set-Datastore&quot;/&gt;
		&lt;KeyWord name=&quot;Set-DrsRule&quot;/&gt;
		&lt;KeyWord name=&quot;Set-FloppyDrive&quot;/&gt;
		&lt;KeyWord name=&quot;Set-Folder&quot;/&gt;
		&lt;KeyWord name=&quot;Set-HardDisk&quot;/&gt;
		&lt;KeyWord name=&quot;Set-IScsiHbaTarget&quot;/&gt;
		&lt;KeyWord name=&quot;Set-NetworkAdapter&quot;/&gt;
		&lt;KeyWord name=&quot;Set-NicTeamingPolicy&quot;/&gt;
		&lt;KeyWord name=&quot;Set-OSCustomizationNicMapping&quot;/&gt;
		&lt;KeyWord name=&quot;Set-OSCustomizationSpec&quot;/&gt;
		&lt;KeyWord name=&quot;Set-PatchBaseline&quot;/&gt;
		&lt;KeyWord name=&quot;Set-PowerCLIConfiguration&quot;/&gt;
		&lt;KeyWord name=&quot;Set-ResourcePool&quot;/&gt;
		&lt;KeyWord name=&quot;Set-ScsiLun&quot;/&gt;
		&lt;KeyWord name=&quot;Set-ScsiLunPath&quot;/&gt;
		&lt;KeyWord name=&quot;Set-Snapshot&quot;/&gt;
		&lt;KeyWord name=&quot;Set-StatInterval&quot;/&gt;
		&lt;KeyWord name=&quot;Set-Template&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VApp&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VIPermission&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VIRole&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VM&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VMGuestNetworkInterface&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VMGuestRoute&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VMHost&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VMHostAccount&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VMHostAdvancedConfiguration&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VMHostDiagnosticPartition&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VMHostFirewallDefaultPolicy&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VMHostFirewallException&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VMHostFirmware&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VMHostHba&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VMHostModule&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VMHostNetwork&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VMHostNetworkAdapter&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VMHostProfile&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VMHostService&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VMHostSnmp&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VMHostStartPolicy&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VMHostStorage&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VMHostSysLogServer&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VMQuestion&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VMResourceConfiguration&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VMStartPolicy&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VirtualPortGroup&quot;/&gt;
		&lt;KeyWord name=&quot;Set-VirtualSwitch&quot;/&gt;
		&lt;KeyWord name=&quot;Shutdown-VMGuest&quot;/&gt;
		&lt;KeyWord name=&quot;Stage-Patch&quot;/&gt;
		&lt;KeyWord name=&quot;Start-VApp&quot;/&gt;
		&lt;KeyWord name=&quot;Start-VM&quot;/&gt;
		&lt;KeyWord name=&quot;Start-VMHost&quot;/&gt;
		&lt;KeyWord name=&quot;Start-VMHostService&quot;/&gt;
		&lt;KeyWord name=&quot;Stop-Task&quot;/&gt;
		&lt;KeyWord name=&quot;Stop-VApp&quot;/&gt;
		&lt;KeyWord name=&quot;Stop-VM&quot;/&gt;
		&lt;KeyWord name=&quot;Stop-VMHost&quot;/&gt;
		&lt;KeyWord name=&quot;Stop-VMHostService&quot;/&gt;
		&lt;KeyWord name=&quot;Suspend-VM&quot;/&gt;
		&lt;KeyWord name=&quot;Suspend-VMGuest&quot;/&gt;
		&lt;KeyWord name=&quot;Suspend-VMHost&quot;/&gt;
		&lt;KeyWord name=&quot;Test-VMHostProfileCompliance&quot;/&gt;
		&lt;KeyWord name=&quot;Test-VMHostSnmp&quot;/&gt;
		&lt;KeyWord name=&quot;Update-Tools&quot;/&gt;
		&lt;KeyWord name=&quot;Wait-Task &quot;/&gt;
	&lt;/AutoComplete&gt;
&lt;/NotepadPlus&gt;
</pre>
<br />Filed under: <a href='http://blog.koenvermoesen.be/category/powershell/'>PowerShell</a>, <a href='http://blog.koenvermoesen.be/category/tech/scripting/'>Scripting</a>, <a href='http://blog.koenvermoesen.be/category/tech/virtualization/'>Virtualization</a> Tagged: <a href='http://blog.koenvermoesen.be/tag/notepad/'>Notepad++</a>, <a href='http://blog.koenvermoesen.be/tag/powercli/'>PowerCLI</a>, <a href='http://blog.koenvermoesen.be/tag/powershell/'>PowerShell</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/k0v3.wordpress.com/1014/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/k0v3.wordpress.com/1014/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/k0v3.wordpress.com/1014/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/k0v3.wordpress.com/1014/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/k0v3.wordpress.com/1014/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/k0v3.wordpress.com/1014/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/k0v3.wordpress.com/1014/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/k0v3.wordpress.com/1014/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/k0v3.wordpress.com/1014/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/k0v3.wordpress.com/1014/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=1014&subd=k0v3&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.koenvermoesen.be/2010/05/06/powercli-autocompletion-for-notepad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/62aee00de3e0280aadbe38323469a9be?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sak1n1</media:title>
		</media:content>
	</item>
		<item>
		<title>PowerCLI: Configuring additional portgroups</title>
		<link>http://blog.koenvermoesen.be/2010/04/29/powercli-configuring-additional-portgroups/</link>
		<comments>http://blog.koenvermoesen.be/2010/04/29/powercli-configuring-additional-portgroups/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 09:11:20 +0000</pubDate>
		<dc:creator>Stijn Vermoesen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">https://k0v3.wordpress.com/2010/04/29/powercli-configuring-additional-portgroups/</guid>
		<description><![CDATA[I had to configure additional portgroups based on vlanids on a vSphere cluster. I couldn’t use host profiles to apply the configuration on all hosts. $vCenter = Connect-VIServer -server(Read-Host &#34;Please enter the name of your vCenter Server.&#34;) $Cluster = Get-Cluster -Name (Read-Host &#34;Please enter the name of the cluster whose servers need to be reconfigured.&#34;) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=1013&subd=k0v3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I had to configure additional portgroups based on vlanids on a vSphere cluster. I couldn’t use host profiles to apply the configuration on all hosts.</p>
<pre class="brush: powershell;">
$vCenter = Connect-VIServer -server(Read-Host &quot;Please enter the name of your vCenter Server.&quot;)
$Cluster = Get-Cluster -Name (Read-Host &quot;Please enter the name of the cluster whose servers need to be reconfigured.&quot;)
$vSwitch = Read-Host &quot;Please enter the name of the vSwitch on which the portgroups need to be created.&quot;
$PGfile = import-csv -Path (Read-Host &quot;Please enter the path to the csv file with the new portgroups to be added to the vSwitch&quot;)

$Cluster | Get-VMhost | `
Foreach{
$vSwitch = Get-VirtualSwitch -Name $vSwitch -Vmhost $_
$PGfile | `
Foreach {
$vpg = New-VirtualPortGroup -VirtualSwitch $vSwitch -Name $_.PortGroupName
Set-VirtualPortGroup -VirtualPortGroup $vpg -VLanId $_.Vlanid
}
}

Disconnect-VIserver -Server $vCenter -Confirm:$False
</pre>
<p>The script asks for</p>
<ul>
<li>vCenter IP or FQDN</li>
<li>Cluster Name</li>
<li>vSwitch name</li>
<li>Path to the csv file</li>
</ul>
<p>The csv file contains the portgroup names and vlanid’s.</p>
<pre class="brush: plain;">
PortGroupName,Vlanid
VLAN900,900
VLAN901,901
VLAN902,902
</pre>
<br />Filed under: <a href='http://blog.koenvermoesen.be/category/uncategorized/'>Uncategorized</a> Tagged: <a href='http://blog.koenvermoesen.be/tag/powercli/'>PowerCLI</a>, <a href='http://blog.koenvermoesen.be/tag/powershell/'>PowerShell</a>, <a href='http://blog.koenvermoesen.be/tag/scripting-2/'>scripting</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/k0v3.wordpress.com/1013/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/k0v3.wordpress.com/1013/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/k0v3.wordpress.com/1013/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/k0v3.wordpress.com/1013/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/k0v3.wordpress.com/1013/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/k0v3.wordpress.com/1013/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/k0v3.wordpress.com/1013/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/k0v3.wordpress.com/1013/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/k0v3.wordpress.com/1013/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/k0v3.wordpress.com/1013/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=1013&subd=k0v3&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.koenvermoesen.be/2010/04/29/powercli-configuring-additional-portgroups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/62aee00de3e0280aadbe38323469a9be?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sak1n1</media:title>
		</media:content>
	</item>
		<item>
		<title>Bulk Creating Active Directory groups</title>
		<link>http://blog.koenvermoesen.be/2009/07/15/bulk-creating-active-directory-groups/</link>
		<comments>http://blog.koenvermoesen.be/2009/07/15/bulk-creating-active-directory-groups/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 11:04:43 +0000</pubDate>
		<dc:creator>Stijn Vermoesen</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Quest]]></category>
		<category><![CDATA[LDAP]]></category>

		<guid isPermaLink="false">http://blog.koenvermoesen.be/2009/07/15/bulk-creating-active-directory-groups/</guid>
		<description><![CDATA[One of my colleagues gave me a list of AD groups for the sharepoint environment he&#8217;s confguring. Instead of creating them manually I used the Quest ActiveRoles management shell. import-csv &#8216;SecurityGroups.csv&#8217; &#124; foreach { New-QADGroup -Parent $_.ParentContainer -Name $_.Name -sAM $_.Name -GroupScope $_.GroupScope -GroupType $_.GroupType } This script imports a .csv file to create the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=442&subd=k0v3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>One of my colleagues gave me a list of AD groups for the sharepoint environment he&#8217;s confguring. Instead of creating them manually I used the <a href="http://www.quest.com/powershell/activeroles-server.aspx" target="_blank">Quest ActiveRoles management shell</a>.</p>
<blockquote>
<div>import-csv &#8216;SecurityGroups.csv&#8217; | foreach {<br />
New-QADGroup -Parent $_.ParentContainer -Name $_.Name -sAM $_.Name -GroupScope $_.GroupScope -GroupType $_.GroupType<br />
}</div>
</blockquote>
<p>This script imports a .csv file to create the security groups. The .csv file contains the OU distinguished name, the group Name, the group type (security or distribution) and finally the scope (Domain Local, Global or Universal).</p>
<p>It looks like this:</p>
<blockquote><p>Parentcontainer,Name,Grouptype,GroupScope<br />
&#8220;OU=Sharepoint,DC=domain,DC=local&#8221;,SecurityGroup01,Security,DomainLocal</p></blockquote>
<br />Posted in Active Directory, PowerShell, Quest Tagged: LDAP, PowerShell <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/k0v3.wordpress.com/442/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/k0v3.wordpress.com/442/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/k0v3.wordpress.com/442/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/k0v3.wordpress.com/442/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/k0v3.wordpress.com/442/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/k0v3.wordpress.com/442/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/k0v3.wordpress.com/442/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/k0v3.wordpress.com/442/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/k0v3.wordpress.com/442/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/k0v3.wordpress.com/442/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=442&subd=k0v3&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.koenvermoesen.be/2009/07/15/bulk-creating-active-directory-groups/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/62aee00de3e0280aadbe38323469a9be?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sak1n1</media:title>
		</media:content>
	</item>
		<item>
		<title>Automating a powershell demo using AutoHotKey</title>
		<link>http://blog.koenvermoesen.be/2009/05/15/automating-a-powershell-demo-using-autohotkey/</link>
		<comments>http://blog.koenvermoesen.be/2009/05/15/automating-a-powershell-demo-using-autohotkey/#comments</comments>
		<pubDate>Fri, 15 May 2009 11:22:11 +0000</pubDate>
		<dc:creator>Koen Vermoesen</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[AutoHotKey]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://blog.koenvermoesen.be/2009/05/15/automating-a-powershell-demo-using-autohotkey</guid>
		<description><![CDATA[I gave a custom Exchange 2007 course to one of our customers yesterday. Not unsurprisingly, it also included a demo of Exchange Management Shell (EMS). These demos tend to end up in a quest for the exact command, which is quite annoying if you&#8217;re in front of an audience (even a small one). Think about: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=324&subd=k0v3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I gave a custom Exchange 2007 course to one of our customers yesterday. Not unsurprisingly, it also included a demo of Exchange Management Shell (EMS). These demos tend to end up in a quest for the exact command, which is quite annoying if you&#8217;re in front of an audience (even a small one). Think about:</p>
<ul>
<li>about_regular_expressions or about_regular_expression?</li>
<li>$_. or $._?</li>
<li>Why is -Confirm $False not working?</li>
</ul>
<p>This time I decided to try and automate that demo by using the autoreplace feature (Hotstring) in <a href="http://www.autohotkey.com">AutoHotKey</a>. The main goal is avoiding typo&#8217;s by using tried and true commands in a working order. A poor man&#8217;s <a href="http://poshcode.org/705">Start-Demo</a> script if you wish ;-)</p>
<p>The script starts of with a bunch of commands controlling the overall functionallity (the first 3 come with the default template):</p>
<blockquote><p>#NoEnv</p></blockquote>
<p>Recommended for performance and compatibility with future AutoHotkey releases.</p>
<blockquote><p>SendMode Input</p></blockquote>
<p>Recommended for new scripts due to its superior speed and reliability.</p>
<blockquote><p>SetWorkingDir %A_ScriptDir%</p></blockquote>
<p>Ensures a consistent starting directory.</p>
<blockquote><p>#Hotstring EndChars `n</p></blockquote>
<p>Limit the hotstring end characters to ENTER only</p>
<blockquote><p>#Hotstring O</p></blockquote>
<p>Don&#8217;t actually type the end character. (I want to launch the command myself after/during my explanation.)</p>
<blockquote><p>#Hotstring R</p></blockquote>
<p>Type replacement text in raw mode. (To prevent AHK from interpreting e.g. &#8220;{&#8220;)</p>
<p>The remainder of the script is actually a long list of hotstring definitions like these ones</p>
<blockquote><p>::ems01::Get-Help<br />
::ems02::Get-Help About<br />
::ems03::Get-Help About_Regular_Expression<br />
::ems04::Get-Command *mailbox<br />
::ems05::Get-Help New-Mailbox<br />
::ems06::Get-Help New-Mailbox -Detailed<br />
::ems07::Get-Help New-Mailbox -Full</p></blockquote>
<p>and so on.</p>
<p>Seems stupid with these simple examples, but the advantage becomes clear for more complex commands. Lets take &#8220;ems26&#8243; for example;</p>
<blockquote><p>::ems26::1..10 | Foreach-Object { new-mailbox -Database &#8220;Mailbox Database 2&#8243; -Name (&#8220;User&#8221; + $_) -UserPrincipalName (&#8220;User&#8221; + $_ + &#8220;@exchange2007.lab&#8221;) -Password $Pwd }</p></blockquote>
<p>When I type &#8220;ems26&#8243;+ENTER in EMS AutoHotKey executable automatically replaces this string with &#8220;1..10 | Foreach-Object { new-mailbox -Database &#8220;Mailbox Database 2&#8243; -Name (&#8220;User&#8221; + $_) -UserPrincipalName (&#8220;User&#8221; + $_ + &#8220;@exchange2007.lab&#8221;) -Password $Pwd }&#8221; and waits. I do my talking and then hit ENTER again to execute the command.</p>
<p>It worked nicely actually. People were impressed with my typing skills ;-) I only encountered one error because I didn&#8217;t delete some manually after a test the day before. It even works with shell running inside a VM while the AutoHotKey script is running on my physical computer.</p>
<br />Posted in Scripting Tagged: AutoHotKey, PowerShell <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/k0v3.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/k0v3.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/k0v3.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/k0v3.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/k0v3.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/k0v3.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/k0v3.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/k0v3.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/k0v3.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/k0v3.wordpress.com/324/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=324&subd=k0v3&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.koenvermoesen.be/2009/05/15/automating-a-powershell-demo-using-autohotkey/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4f646bcfc3f7534b20fa79e0347353eb?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">k0v3</media:title>
		</media:content>
	</item>
		<item>
		<title>Hooking up SQLite and PowerShell</title>
		<link>http://blog.koenvermoesen.be/2008/11/03/hooking-up-sqlite-and-powershell/</link>
		<comments>http://blog.koenvermoesen.be/2008/11/03/hooking-up-sqlite-and-powershell/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 13:36:00 +0000</pubDate>
		<dc:creator>Koen Vermoesen</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SQLite]]></category>

		<guid isPermaLink="false">http://k0v3.wordpress.com/?p=192</guid>
		<description><![CDATA[I&#8217;ve been playing around with SQLite on the command line (cmd that is) a bit. I immediately started wondering if it would be possible to combine this portable SQL engine with PowerShell, but I couldn&#8217;t find any working samples on the internet. After some more research I discovered the SQLite ADO.net 2.0 Provider but I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=192&subd=k0v3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing around with <a title="Zero-configuration SQL database engine" href="SQLite" target="_blank">SQLite</a> on the command line (cmd that is) a bit. I immediately started wondering if it would be possible to combine this portable SQL engine with <a title="Windows PowerShell Blog" href="http://blogs.msdn.com/PowerShell/">PowerShell</a>, but I couldn&#8217;t find any working samples on the internet.</p>
<p>After some more research I discovered the <a title="An open source ADO.NET provider for the SQLite database engine" href="http://sqlite.phxsoftware.com/">SQLite ADO.net 2.0 Provider</a> but I couldn&#8217;t get it to work immediately.</p>
<p>It took me a couple of days to find the blog post <a title="Database Queries with Windows Powershell" href="http://blog.jeffreymcmanus.com/762/database-queries-with-windows-powershell/">Database Queries with Windows Powershell</a>. (This blog seems to have moved recently as most of the hyperlinks/search results are still referring to Typepad). The post is nicely commented, so I could rather easily translate the MySQL to SQLite statements with some assistance from the included help file.</p>
<pre><span style="color:#ff6600;">[void][System.Reflection.Assembly]::LoadFrom("D:\DATA\Tools\System.Data.SQLite.dll")

$cn = New-Object -TypeName System.Data.SQLite.SQLiteConnection
$cn.ConnectionString = "Data Source=D:\DATA\Tools\koen.sqlite"
$cn.Open()

$cm = New-Object -TypeName System.Data.SQLite.SQLiteCommand
$sql = "SELECT FirstName, LastName FROM tblKoen"
$cm.Connection = $cn
$cm.CommandText = $sql
$dr = $cm.ExecuteReader()

while ($dr.Read())
{
    write-host $dr.GetString(0) " " $dr.GetString(1)
}

$cn.Close()</span></pre>
<p>Some more interesting links I came across:</p>
<ul>
<li><a title="SQL Tutorial" href="http://www.w3schools.com/sql/default.asp">Learn SQL</a></li>
<li><a title="SQLite ODBC Driver" href="http://www.ch-werner.de/sqliteodbc/">SQLite ODBC driver</a></li>
<li><a title="SQLite Tutorial" href="http://souptonuts.sourceforge.net/readme_sqlite_tutorial.html">SQLite Tutorial</a></li>
</ul>
<br />Posted in Scripting Tagged: PowerShell, SQLite <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/k0v3.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/k0v3.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/k0v3.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/k0v3.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/k0v3.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/k0v3.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/k0v3.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/k0v3.wordpress.com/192/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/k0v3.wordpress.com/192/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/k0v3.wordpress.com/192/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=192&subd=k0v3&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.koenvermoesen.be/2008/11/03/hooking-up-sqlite-and-powershell/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4f646bcfc3f7534b20fa79e0347353eb?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">k0v3</media:title>
		</media:content>
	</item>
		<item>
		<title>VI Toolkit scripting contest winners announced.</title>
		<link>http://blog.koenvermoesen.be/2008/09/06/vi-toolkit-scripting-contest-winners-announced/</link>
		<comments>http://blog.koenvermoesen.be/2008/09/06/vi-toolkit-scripting-contest-winners-announced/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 10:24:18 +0000</pubDate>
		<dc:creator>Stijn Vermoesen</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://k0v3.wordpress.com/2008/09/06/vi-toolkit-scripting-contest-winners-announced/</guid>
		<description><![CDATA[Carter Shanklin announced the winners of the contest. 1st prize: The guest provisioning system of LucD. This application lets you provision your VMs in an easy way. You can set the options from one screen no clicking around to configure everything manually. 2nd prize: VI Power Documenter by tzamora. This script generates reports about your [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=164&subd=k0v3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Carter Shanklin <a href="http://blogs.vmware.com/vipowershell/2008/09/announcing-the.html" target="_blank">announced</a> the winners of the contest.</p>
<p><strong>1st prize</strong>: <a href="http://communities.vmware.com/docs/DOC-7472" target="_blank">The guest provisioning system</a> of <em>LucD</em>. This application lets you provision your VMs in an easy way. You can set the options from one screen no clicking around to configure everything manually.</p>
<p><strong>2nd prize:</strong> <a href="http://communities.vmware.com/docs/DOC-7473" target="_blank">VI Power Documenter</a> by <em>tzamora.</em> This script generates reports about your virtual infrastructure.</p>
<p><strong>3rd prize:</strong> <a href="http://communities.vmware.com/docs/DOC-6930" target="_blank">PowerVDI script</a> by <em><a href="http://virtualgeek.typepad.com/virtual_geek/2008/08/powershell-scri.html" target="_blank">Dan Baskette</a></em>. It let you deploy multiple VDI instances on an EMC celera using snapshots and AD integration.</p>
<p>I&#8217;m sure there are other <a href="http://communities.vmware.com/community/developer/toolkit_contest?view=documents&amp;numResults=15" target="_blank">contributions</a> that are very useful.</p>
<p>Congrats to the winners. Nice job guys.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/k0v3.wordpress.com/164/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/k0v3.wordpress.com/164/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/k0v3.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/k0v3.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/k0v3.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/k0v3.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/k0v3.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/k0v3.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/k0v3.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/k0v3.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/k0v3.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/k0v3.wordpress.com/164/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=164&subd=k0v3&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.koenvermoesen.be/2008/09/06/vi-toolkit-scripting-contest-winners-announced/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/62aee00de3e0280aadbe38323469a9be?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sak1n1</media:title>
		</media:content>
	</item>
		<item>
		<title>PowerGui integrates with VI Client</title>
		<link>http://blog.koenvermoesen.be/2008/07/31/powergui-integrates-with-vi-client/</link>
		<comments>http://blog.koenvermoesen.be/2008/07/31/powergui-integrates-with-vi-client/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 09:36:54 +0000</pubDate>
		<dc:creator>Stijn Vermoesen</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[PowerGUI]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://k0v3.wordpress.com/?p=113</guid>
		<description><![CDATA[Dmitri over at Dmitry’s PowerBlog just posted about the integration between PowerGui and the VI client. I had already installed the PowerGUI 1.5.1 version but hadn&#8217;t noticed the plugin for the VI Client. This makes managing your VMware environment using  Powershell even more easier. PowerGUI lets you write your own Powershell scripts and the VMware [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=113&subd=k0v3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Dmitri over at <a href="http://dmitrysotnikov.wordpress.com/">Dmitry’s PowerBlog</a> just posted about the integration between <a href="http://dmitrysotnikov.wordpress.com/2008/07/31/powergui-plugin-inside-vmware-infrastructure-client/" target="_blank">PowerGui and the VI client</a>. I had already installed the PowerGUI 1.5.1 version but hadn&#8217;t noticed the plugin for the VI Client.</p>
<p>This makes managing your VMware environment using  Powershell even more easier. PowerGUI lets you write your own Powershell scripts and the <a href="http://powergui.org/entry!default.jspa?categoryID=21&amp;externalID=1802" target="_blank">VMware PowerPack</a> is also compatible with the VI client plugin. The plugin uses your current connection to the VC. You don&#8217;t need to make a separate connection for every script.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/k0v3.wordpress.com/113/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/k0v3.wordpress.com/113/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/k0v3.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/k0v3.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/k0v3.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/k0v3.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/k0v3.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/k0v3.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/k0v3.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/k0v3.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/k0v3.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/k0v3.wordpress.com/113/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=113&subd=k0v3&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.koenvermoesen.be/2008/07/31/powergui-integrates-with-vi-client/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/62aee00de3e0280aadbe38323469a9be?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sak1n1</media:title>
		</media:content>
	</item>
		<item>
		<title>VI Toolkit 1.0 Released</title>
		<link>http://blog.koenvermoesen.be/2008/07/27/vi-toolkit-10-released/</link>
		<comments>http://blog.koenvermoesen.be/2008/07/27/vi-toolkit-10-released/#comments</comments>
		<pubDate>Sun, 27 Jul 2008 09:13:17 +0000</pubDate>
		<dc:creator>Stijn Vermoesen</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://k0v3.wordpress.com/?p=41</guid>
		<description><![CDATA[Last week VMware officially released the VI Toolkit for Windows. They replaced get-viserver with connect-viserver. get-viserver is now an alias for connect-viserver. disconnect-viserver was added which allows you to do a clean disconnect. Hence the rename of the get-viserver cmdlet. VMware also added cmdlets for managing the VMware Update Manager.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=41&subd=k0v3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Last week VMware officially released the <a href="http://vmware.com/go/powershell" target="_blank">VI Toolkit for Windows</a>.</p>
<ul>
<li>They replaced get-viserver with connect-viserver. get-viserver is now an alias for connect-viserver.</li>
<li>disconnect-viserver was added which allows you to do a clean disconnect. Hence the rename of the get-viserver cmdlet.</li>
<li>VMware also added cmdlets for managing the VMware Update Manager.</li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/k0v3.wordpress.com/41/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/k0v3.wordpress.com/41/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/k0v3.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/k0v3.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/k0v3.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/k0v3.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/k0v3.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/k0v3.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/k0v3.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/k0v3.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/k0v3.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/k0v3.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=41&subd=k0v3&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.koenvermoesen.be/2008/07/27/vi-toolkit-10-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/62aee00de3e0280aadbe38323469a9be?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">sak1n1</media:title>
		</media:content>
	</item>
		<item>
		<title>Pimp My PowerShell</title>
		<link>http://blog.koenvermoesen.be/2008/07/16/pimp-my-powershell/</link>
		<comments>http://blog.koenvermoesen.be/2008/07/16/pimp-my-powershell/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 08:47:34 +0000</pubDate>
		<dc:creator>Koen Vermoesen</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://k0v3.wordpress.com/2008/07/16/pimp-my-powershell/</guid>
		<description><![CDATA[Jeffrey Snover posted a solution for speeding up the PowerShell start-up long time ago. I only noticed it lasted week :-( Check it out: http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=36&subd=k0v3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Jeffrey Snover posted a solution for speeding up the PowerShell start-up long time ago. I only noticed it lasted week :-(</p>
<p>Check it out: <a title="http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx" href="http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx">http://blogs.msdn.com/powershell/archive/2007/11/08/update-gac-ps1.aspx</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/k0v3.wordpress.com/36/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/k0v3.wordpress.com/36/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/k0v3.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/k0v3.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/k0v3.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/k0v3.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/k0v3.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/k0v3.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/k0v3.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/k0v3.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/k0v3.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/k0v3.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=36&subd=k0v3&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.koenvermoesen.be/2008/07/16/pimp-my-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4f646bcfc3f7534b20fa79e0347353eb?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">k0v3</media:title>
		</media:content>
	</item>
	</channel>
</rss>