<?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/category/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>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>Adding permissions on printers using powershell</title>
		<link>http://blog.koenvermoesen.be/2009/10/20/adding-permissions-on-printers-using-powershell/</link>
		<comments>http://blog.koenvermoesen.be/2009/10/20/adding-permissions-on-printers-using-powershell/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 14:57:11 +0000</pubDate>
		<dc:creator>Stijn Vermoesen</dc:creator>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://blog.koenvermoesen.be/2009/10/20/adding-permissions-on-printers-using-powershell/</guid>
		<description><![CDATA[I needed to add a group of users to the ACL of all our printers. As we currently have about 100 printers; I looked if I could use powershell for this.Currently on Windows server 2008 there are no built in cmdlets to administrate printers. But I did find a useful powershell script with everything I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=540&subd=k0v3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I needed to add a group of users to the ACL of all our printers. As we currently have about 100 printers; I looked if I could use powershell for this.<br />Currently on Windows server 2008 there are no built in cmdlets to administrate printers. But I did find a useful powershell script with everything I needed. </p>
<p>I ended up with only executing one line of code to add the group to all the printers.<br />
<blockquote>Get-printer <i>printserver</i> | add-printerpermission -user <i>&#8220;domain\groupname&#8221;</i> -AceType Allow -accessmask ManagePrinters</p></blockquote>
<p>The script can be found <a target="_blank" href="http://translate.google.com/translate?prev=hp&amp;hl=en&amp;u=http%3A%2F%2Fwww.sysadmins.lv%2FPermaLink%2Cguid%2C22c0550d-0c46-44ca-97ce-2b0bccbb51de.aspx&amp;sl=ru&amp;tl=en">here</a>, I&#8217;m posting the google translation link as my Russian isn&#8217;t that good;-)</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=f9b30b23-b6c9-8abc-83bb-d4450f764a78" /></div>
<br />Posted in PowerShell, Scripting  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/k0v3.wordpress.com/540/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/k0v3.wordpress.com/540/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/k0v3.wordpress.com/540/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/k0v3.wordpress.com/540/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/k0v3.wordpress.com/540/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/k0v3.wordpress.com/540/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/k0v3.wordpress.com/540/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/k0v3.wordpress.com/540/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/k0v3.wordpress.com/540/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/k0v3.wordpress.com/540/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=540&subd=k0v3&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.koenvermoesen.be/2009/10/20/adding-permissions-on-printers-using-powershell/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>

		<media:content url="http://img.zemanta.com/pixy.gif?x-id=f9b30b23-b6c9-8abc-83bb-d4450f764a78" medium="image" />
	</item>
		<item>
		<title>AD Recycle Bin</title>
		<link>http://blog.koenvermoesen.be/2009/09/24/ad-recycle-bin/</link>
		<comments>http://blog.koenvermoesen.be/2009/09/24/ad-recycle-bin/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 13:09:14 +0000</pubDate>
		<dc:creator>Stijn Vermoesen</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://blog.koenvermoesen.be/2009/09/24/ad-recycle-bin/</guid>
		<description><![CDATA[I just came across a post by Jonathan Medd over at simple-talk.com about the new Active Directory recycle bin in Windows Server 2008 R2. It&#8217;s definitely worth the read. Posted in Active Directory, PowerShell<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=528&subd=k0v3&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I just came across a <a target="_blank" href="http://www.simple-talk.com/content/article.aspx?article=811">post</a> by <a target="_blank" href="http://www.simple-talk.com/author/jonathan-medd/">Jonathan Medd </a>over at <a target="_blank" href="http://www.simple-talk.com/content/article.aspx?article=811">simple-talk.com</a> about the new Active Directory recycle bin in Windows Server 2008 R2.</p>
<p>It&#8217;s definitely worth the read.</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=28984583-444d-8b81-b317-7793d52c253e" /></div>
<br />Posted in Active Directory, PowerShell  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/k0v3.wordpress.com/528/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/k0v3.wordpress.com/528/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/k0v3.wordpress.com/528/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/k0v3.wordpress.com/528/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/k0v3.wordpress.com/528/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/k0v3.wordpress.com/528/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/k0v3.wordpress.com/528/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/k0v3.wordpress.com/528/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/k0v3.wordpress.com/528/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/k0v3.wordpress.com/528/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.koenvermoesen.be&blog=3561314&post=528&subd=k0v3&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.koenvermoesen.be/2009/09/24/ad-recycle-bin/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>

		<media:content url="http://img.zemanta.com/pixy.gif?x-id=28984583-444d-8b81-b317-7793d52c253e" medium="image" />
	</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>
	</channel>
</rss>