<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://winserverteam.org.uk/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tags 'Powershell' and 'Windows'</title><link>http://winserverteam.org.uk/search/SearchResults.aspx?o=DateDescending&amp;tag=Powershell,Windows&amp;orTags=0</link><description>Search results matching tags 'Powershell' and 'Windows'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP2 (Build: 20611.960)</generator><item><title>Burn CD's and DVDs with Powershell</title><link>http://winserverteam.org.uk/blogs/austin/archive/2007/11/02/burn-cd-s-and-dvds-with-powershell.aspx</link><pubDate>Fri, 02 Nov 2007 21:47:00 GMT</pubDate><guid isPermaLink="false">2f64b580-8b3f-461a-8545-1e65ae7cb030:80</guid><dc:creator>Austin</dc:creator><description>&lt;p&gt;Included with Microsoft Vista is a new API for scripting against optical drives; the Image Mastering API version 2 or IMAPI2. This makes it possible to retrieve information from optical&amp;nbsp;storage media&amp;nbsp;like CDs and DVDs and write to them.&lt;/p&gt;
&lt;p&gt;The story around the IMAPI and what you can do with it can be found on &lt;a href="http://msdn2.microsoft.com/en-us/library/aa366450.aspx" target="_blank"&gt;msdn&lt;/a&gt; but what brought it to my attention was the &lt;a href="http://www.microsoft.com/technet/scriptcenter/topics/imapi/imapi2-2.mspx#EYH" target="_blank"&gt;Scriptcenter&lt;/a&gt; newsletter this week where a VB sample of how to burn CDs/DVDs using the Image Mastering API was described. Yep, if we can do it with VB there&amp;#39;s got to be a PoSHer way to do the same thing so I gave it a go and over&amp;nbsp;a couple of hours&amp;nbsp;managed to get my version to work.&lt;/p&gt;
&lt;p&gt;Who needs ISO burning tools anymore ay? Roll your own!&lt;/p&gt;
&lt;p&gt;My modification of the&amp;nbsp;script accepts one argument which is the path to the ISO file and it barfs if a wrong path is given.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The assumption is that the CD/DVD writer is first optical drive on the system (If it&amp;#39;s not, change the msftdiscMaster2&amp;nbsp;index&amp;nbsp;used&amp;nbsp;in the msftdiscrecorder2&amp;nbsp;initializedrecorder method&amp;nbsp;). &lt;/p&gt;
&lt;p&gt;Minor error checking has been thrown in to ensure a valid path to an ISO file is provided and that the disc is blank.&lt;/p&gt;
&lt;p&gt;---------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;param(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [string]$path = $( throw &amp;quot;Please Specify path to an ISO file&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;br /&gt;&lt;em&gt;&lt;font color="#00ff00"&gt;# Set binary file type&lt;/font&gt;&lt;/em&gt;&lt;br /&gt;Set-Variable -name adFileTypeBinary -value 1 -option Constant 
&lt;p&gt;&lt;font color="#00ff00"&gt;&lt;em&gt;# Test if path exists else fail&lt;/em&gt;&lt;/font&gt;&lt;br /&gt;if (Test-Path -path $path -isValid)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $isoFile = $path 
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;em&gt;&lt;font color="#00ff00"&gt;# Create disc master to burn to optical drives&lt;/font&gt;&lt;/em&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $obm = New-Object -comobject &amp;quot;imapi2.msftdiscMaster2&amp;quot; 
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="#00ff00"&gt;&lt;em&gt; # Create a DiscRecorder object for the specified burning device&lt;br /&gt;&lt;/em&gt;&lt;/font&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $obr = New-Object -comobject &amp;quot;imapi2.msftdiscrecorder2&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $obr.initializediscrecorder( $obm.item(0) )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $dataWriter = New-Object -comobject &amp;quot;IMAPI2.MsftDiscFormat2Data&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $dataWriter.Recorder = $obr&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $dataWriter.ClientName = &amp;quot;ISOTest1&amp;quot; 
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;em&gt;&lt;font color="#00ff00"&gt;# Write stream to disc using the specified recorder&lt;/font&gt;&lt;/em&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Host &amp;quot;Writing to disc...&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $objStream = New-Object -comobject &amp;quot;ADODB.Stream&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $objStream.open()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $objStream.type = $adFileTypeBinary&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $objStream.LoadFromFile( &amp;quot;$isoFile&amp;quot; ) 
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;em&gt;&lt;font color="#00ff00"&gt;# Check disk is blank else fail&lt;/font&gt;&lt;/em&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $addr = $dataWriter.NextWritableAddress&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( $addr = &amp;quot;0&amp;quot;&amp;nbsp; )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $dataWriter.Write( $objStream )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Host &amp;quot;Done&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Host &amp;quot;Cannot write to disk&amp;quot; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } 
&lt;p&gt;else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Host &amp;quot;A valid ISO file was not found&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } 
&lt;p&gt;--------------------------------------------------------------------------------------- 
&lt;p&gt;The Scriptcenter site shows other examples in VB and they can all be converted to Powershell with very little effort. 
&lt;p&gt;Binaries for for versions of IMAPIv2 for other platforms can be obtained here: 
&lt;p&gt;&lt;a href="http://www.microsoft.com/downloads/info.aspx?na=22&amp;amp;p=1&amp;amp;SrcDisplayLang=en&amp;amp;SrcCategoryId=&amp;amp;SrcFamilyId=&amp;amp;u=%2fdownloads%2fdetails.aspx%3fFamilyID%3db5f726f1-4ace-455d-bad7-abc4dd2f147b%26DisplayLang%3den"&gt;Image Mastering API v2.0 for Windows XP&lt;/a&gt; 
&lt;p&gt;&lt;a href="http://www.microsoft.com/downloads/info.aspx?na=22&amp;amp;p=2&amp;amp;SrcDisplayLang=en&amp;amp;SrcCategoryId=&amp;amp;SrcFamilyId=&amp;amp;u=%2fdownloads%2fdetails.aspx%3fFamilyID%3dfe4770f5-91fa-4390-920a-f4d45c67923c%26DisplayLang%3den"&gt;Image Mastering API v2.0 for Windows Sever 2003&lt;/a&gt; 
&lt;p&gt;&lt;a href="http://www.microsoft.com/downloads/info.aspx?na=22&amp;amp;p=3&amp;amp;SrcDisplayLang=en&amp;amp;SrcCategoryId=&amp;amp;SrcFamilyId=&amp;amp;u=%2fdownloads%2fdetails.aspx%3fFamilyID%3d5b91629c-3150-47c0-b4ee-de18dd30a61c%26DisplayLang%3den"&gt;Image Mastering API v2.0 for Windows XP x64 Edition&lt;/a&gt; 
&lt;p&gt;&lt;a href="http://www.microsoft.com/downloads/info.aspx?na=22&amp;amp;p=4&amp;amp;SrcDisplayLang=en&amp;amp;SrcCategoryId=&amp;amp;SrcFamilyId=&amp;amp;u=%2fdownloads%2fdetails.aspx%3fFamilyID%3d316584fa-a268-4208-9050-137f59de89e9%26DisplayLang%3den"&gt;Image Mastering API v2.0 for Windows Server 2003 x64 Edition&lt;/a&gt;&lt;/p&gt;</description></item><item><title>PoSH is here to stay!</title><link>http://winserverteam.org.uk/blogs/austin/archive/2007/11/02/posh-is-here-to-stay.aspx</link><pubDate>Fri, 02 Nov 2007 19:42:00 GMT</pubDate><guid isPermaLink="false">2f64b580-8b3f-461a-8545-1e65ae7cb030:79</guid><dc:creator>Austin</dc:creator><description>&lt;p&gt;I&amp;#39;m sure a lot of my crew are almost getting to their wits end with my persistent harping&amp;nbsp;about the capabilities of Powershell and the need for anyone involved in&amp;nbsp;Windows management to get on the act now.&amp;nbsp;I ain&amp;#39;t stopping though. This is probably the single most significant change to the way we will do things in the Windows space.&lt;/p&gt;
&lt;p&gt;During my regular cruise of my favorite blogs, I came across the entry yesterday on &lt;a href="http://dmitrysotnikov.wordpress.com/2007/11/01/citrix-going-powershell/" target="_blank"&gt;Dmitry&amp;#39;s&lt;/a&gt; blog&amp;nbsp;where he caught on the jist from Citrix that they were rewriting their APIs for the next version of Presentation Server codenamed &lt;a href="http://www.brianmadden.com/blog/iForum07/iForumApp-Delivery-Expo-Final-Notes" target="_blank"&gt;Parra&lt;/a&gt;&amp;nbsp;so they had Powershell interfaces!&lt;/p&gt;
&lt;p&gt;This is another massive join to the Powershell community and it&amp;#39;s&amp;nbsp;only going to get bigger and better.&lt;/p&gt;</description></item><item><title>TechEd IT Forum In Barcelona</title><link>http://winserverteam.org.uk/blogs/austin/archive/2007/10/26/teched-it-forum-in-barcelona.aspx</link><pubDate>Fri, 26 Oct 2007 19:42:26 GMT</pubDate><guid isPermaLink="false">2f64b580-8b3f-461a-8545-1e65ae7cb030:73</guid><dc:creator>Austin</dc:creator><description>&lt;p&gt;&lt;a href="http://www.mseventseurope.com/teched/07/itforum/content/pages/default.aspx"&gt;&lt;img height="128" alt="logo_people7" src="http://winserverteam.org.uk/blogs/austin/WindowsLiveWriter/TechEdITForumInBarcelona_12330/logo_people7_1.gif" width="168" /&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Anyone visiting my blog who&amp;#39;s&amp;nbsp;going to be at TechEd in Barcelona from the 12th - 16th of November, do let me know. I&amp;#39;ll be there and looking forward to another exciting week learning stuff and trading &amp;quot;war stories&amp;quot; with&amp;nbsp;my kinda geeks!&lt;/p&gt; &lt;p&gt;Guys not to miss at TechEd, in my opinion, Markus Murray of &lt;a href="http://www.truesec.com/en/default.htm"&gt;Trusec&lt;/a&gt;&amp;nbsp;and of course Mr &lt;a href="http://blogs.technet.com/steriley/default.aspx"&gt;Steve Riley&lt;/a&gt;. These guys&amp;nbsp;run their sessions in ways that keep&amp;nbsp;you interested and always happy you attended.&amp;nbsp;Always standing space only too so be sure to be early for the sessions ;-)&lt;/p&gt; &lt;p&gt;PING me and hope to see you there.&lt;/p&gt;</description></item><item><title>Creating Test AD users with Powershell- Improved!</title><link>http://winserverteam.org.uk/blogs/austin/archive/2007/10/25/creating-test-ad-users-with-powershell-improved.aspx</link><pubDate>Thu, 25 Oct 2007 08:53:22 GMT</pubDate><guid isPermaLink="false">2f64b580-8b3f-461a-8545-1e65ae7cb030:72</guid><dc:creator>Austin</dc:creator><description>&lt;p&gt;Remember the PoSH add users to AD script? Well, it got picked up by “The Man” himself, &lt;a href="http://dmitrysotnikov.wordpress.com/2007/10/23/creating-test-ad-users-improved/"&gt;Dmitry Sotnikov&lt;/a&gt; of &lt;a href="http://powergui.org/index.jspa"&gt;PowerGUI&lt;/a&gt; fame and he rolled it into a one-liner: &lt;p&gt;&amp;nbsp;&lt;font color="#ff8040"&gt;1..500 | ForEach-Object {&lt;br /&gt;New-QADUser -ParentContainer ps64.local/test -Name “testuser$_“ -SamAccountName “testuser$_“ -UserPrincipalName “testuser$_@example.com“ -FirstName “testUser$_“ -LastName “example$_“ -UserPassword “password_123“ | Enable-QADUser&lt;br /&gt;}&lt;/font&gt; &lt;p&gt;Steve Green and I, coincidentally, were having a go at getting it as short as possible and eventually came down to the same steps but &lt;b&gt;Awesome&lt;/b&gt; to see “The Internet” at work!  &lt;p&gt;Enjoy!&lt;/p&gt;</description></item><item><title>Group Policy meets Powershell in a big way!</title><link>http://winserverteam.org.uk/blogs/austin/archive/2007/10/23/group-policy-meets-powershell-in-a-big-way.aspx</link><pubDate>Tue, 23 Oct 2007 23:36:33 GMT</pubDate><guid isPermaLink="false">2f64b580-8b3f-461a-8545-1e65ae7cb030:70</guid><dc:creator>Austin</dc:creator><description>&lt;p&gt;Today I attended an invitational-only product demo given by&amp;nbsp;Thorbjörn Sjövold the CTO of&amp;nbsp;&lt;a href="http://www.specopssoft.com/" target="_blank"&gt;Special Operation Software&lt;/a&gt; of their up coming product &lt;strong&gt;Specops Command&lt;/strong&gt;.&amp;nbsp;This product, in it&amp;#39;s pre&amp;nbsp;Beta version,&amp;nbsp;tries to resolve the &amp;quot;last mile&amp;quot; problem currently facing Powershell in Version 1.&amp;nbsp;Today Powershell&amp;nbsp;is installed on a management workstation and carrying out remote tasks or running Powershell&amp;nbsp;scripts&amp;nbsp;against remote machines&amp;nbsp;requires Powershell installed on those machines, using wmi or rolling your own .Net methods.&lt;/p&gt; &lt;p&gt;With &lt;strong&gt;Specops Command&lt;/strong&gt;, you still need Powershell installed on the machines but it takes away the pain of managing which of the versions of Powershell to install (there are different versions for XP SP2, WS03, Vista and also x32 and x64 versions for each OS).&lt;/p&gt; &lt;p&gt;Specops CSE&amp;#39;s on the Workstation detect its version and download the appropriate version for install.&lt;/p&gt; &lt;p&gt;The main Features of the &lt;strong&gt;Specops Command&lt;/strong&gt; Group Policy extension are:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Auto Management of Native and 3rd party cmdlets on all workstations under the scope of the &lt;strong&gt;Specops Command&lt;/strong&gt; policy&lt;/li&gt; &lt;li&gt;The ability to configure the running &amp;nbsp;of cmdlets and scripts in the Security Context of the logged on User or Computer&lt;/li&gt; &lt;li&gt;Script Execution Feedback&amp;nbsp; -&amp;gt; No longer &amp;quot;fire and forget&amp;quot; when running scripts with reporting of the execution results of all scripts&amp;nbsp; on all workstations under scope of the policy. Also, the ability to drill down into the results and identify down to line numbers in the code where an issue arose. you can also configure custom feedback where results are stored in a central repository and, I presume,&amp;nbsp;can then be queried using regular methods.&amp;nbsp;&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Undo Scripts. &lt;/strong&gt;This was one that &amp;quot;tickled my fancy&amp;quot;. The ability to cache Powershell code on the client machine that ran when the Specops Command GP was no longer in scope! this can be used to return the machine to a default state or run in any configuration state you may decide on.&amp;nbsp;&lt;/li&gt; &lt;li&gt;Very granular &amp;quot;Targeting&amp;quot; Mechanism for users and computers.&lt;/li&gt; &lt;li&gt;Granular Scheduling&amp;nbsp;of when the policy changes are applied.&lt;/li&gt; &lt;li&gt;The ability to sign scripts and&lt;/li&gt; &lt;li&gt;Verbose Enterprise Reporting.&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;Sometime in March this year, Special Operations Software entered a Collaboration agreement with Darren Mar-Elia&amp;#39;s &lt;a href="http://www.sdmsoftware.com/" target="_blank"&gt;SDM Software&lt;/a&gt; who make GP management and troubleshooting tools. Both firms are heavily into Powershell and this is further proof that to be able to manage the modern Windows environments of the future (read 6 months at the most), Powershell knowledge will be vital.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Specops Command&lt;/strong&gt; will, by an order of magnitude, enhance the ability to securely manage, with the scripted intelligence&amp;nbsp;that Powershell provides, Windows environments in a manner that is more affordable and maintainable by Corporations.&lt;/p&gt; &lt;p&gt;Can&amp;#39;t wait to get my hands on the early Beta! Stay tuned!!&lt;/p&gt; &lt;p&gt;Learn Powershell Today! And keep a lookout for the interesting things lots of clever people are doing with it.&lt;/p&gt;</description></item><item><title>Creating Test AD users with Powershell</title><link>http://winserverteam.org.uk/blogs/austin/archive/2007/10/22/creating-test-ad-users-with-powershell.aspx</link><pubDate>Mon, 22 Oct 2007 13:42:05 GMT</pubDate><guid isPermaLink="false">2f64b580-8b3f-461a-8545-1e65ae7cb030:67</guid><dc:creator>Austin</dc:creator><description>&lt;p&gt;Sometime last week on the Microsoft AD newsgroup, someone asked for a script to populate test users in Active Directory using a source text file with he user names and passwords. Of course, several people suggested VB scripts to do the task and Richard Mueller gave a pointer to an excellent script on his &lt;a href="http://www.rlmueller.net/CreateUsers.htm" target="_blank"&gt;site&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Of course, I immediately started thinking of a way to do it PoSH style. The thinking, as always, was, &amp;quot;I bet Powershell can do this easier!&amp;quot;&lt;/p&gt; &lt;p&gt;The steps I came up with were:&lt;/p&gt; &lt;p&gt;1. Use Powershell to generate the csv ( I can even omit this step&amp;nbsp;entirely and create the users&amp;nbsp;on the fly)&lt;/p&gt; &lt;p&gt;2. Import the users into AD from the the csv&lt;/p&gt; &lt;p&gt;3. Enable the users&lt;/p&gt; &lt;p&gt;And here&amp;#39;s my short PoSH script for the task:&lt;/p&gt; &lt;p&gt;&lt;font color="#ff0000"&gt;#Create the csv and run in the headings&lt;/font&gt;&lt;/p&gt; &lt;p&gt;$outfilename = &amp;quot;out.csv&amp;quot;&lt;br /&gt;&amp;quot;samAccountName,userPrincipalName,cn,sn,givenName,Password&amp;quot; | Out-File $outfilename -encoding ASCII  &lt;p&gt;&lt;font color="#ff0000"&gt;# Now, populate the csv for 500 users&lt;/font&gt; &lt;p&gt;for ($i = 1; $i -lt 500; $i++){&lt;br /&gt;$samAccountName = &amp;quot;testUser&amp;quot; + &amp;quot;$i&amp;quot;&lt;br /&gt;$userPrincipalName = &amp;#39;testUser&amp;#39; + &amp;quot;$i&amp;quot; + &amp;#39;@example.com&amp;#39;&lt;br /&gt;$cn&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;testUser&amp;quot; + &amp;quot;$i&amp;quot;&lt;br /&gt;$sn =&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;example&amp;#39; + &amp;quot;$i&amp;quot;&lt;br /&gt;$givenName = &amp;quot;testUser&amp;quot; + &amp;quot;$i&amp;quot;&lt;br /&gt;$password = &amp;quot;password_123&amp;quot;  &lt;p&gt;&amp;quot;$samAccountName, $userPrincipalName, $cn, $sn, $givenName, $password&amp;quot; | Out-File $outfilename -encoding ASCII -append&lt;br /&gt;}  &lt;p&gt;&lt;font color="#ff0000"&gt;# Import the csv entries into AD as user objects&lt;/font&gt; &lt;p&gt;Import-Csv out.csv | ForEach-Object { New-QADuser -ParentContainer &amp;#39;OU=test,DC=example,DC=com&amp;#39; -Name $_.samAccountName -samAccountName $_.samAccountName -userPrincipalName $_.userPrincipalName -FirstName $_.cn -LastName $_.sn -password $_.password }  &lt;p&gt;&lt;font color="#ff0000"&gt;# Enable the user objects&lt;/font&gt; &lt;p&gt;Get-QADUser -SearchRoot &amp;#39;example.com/Test&amp;#39; | Set-QADuser&amp;nbsp; -ObjectAttributes @{userAccountControl=&amp;#39;512&amp;#39;} &lt;p&gt;&lt;font color="#ff0000"&gt;# EASY!&lt;/font&gt; &lt;p&gt;&lt;font color="#ff0000"&gt;&lt;font color="#ffffff"&gt;This script compared to Richards, is an order&amp;nbsp;of magnitude shorter and I think, easier to comprehend for&amp;nbsp;almost anyone. It can also be extended, as&amp;nbsp;I will still do&amp;nbsp;to it, to require the number of users to be created to be entered as a variable, connection credentials for AD to be requested and the OU to create the users in as some other variable. Error checking&amp;nbsp;can also be included to make it more&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000"&gt;&lt;font color="#ffffff"&gt;&amp;nbsp;shareable.&lt;/font&gt;&lt;/font&gt; &lt;p&gt;&lt;font color="#ff0000"&gt;&lt;font color="#ffffff"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt; &lt;p&gt;&lt;font color="#ff0000"&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Thomas Lee gives us a mention!</title><link>http://winserverteam.org.uk/blogs/austin/archive/2007/07/29/thomas-lee-gives-us-a-mention.aspx</link><pubDate>Sun, 29 Jul 2007 20:42:00 GMT</pubDate><guid isPermaLink="false">2f64b580-8b3f-461a-8545-1e65ae7cb030:32</guid><dc:creator>Austin</dc:creator><description>&lt;p&gt;Thomas Lee, well known IT Evangelist, author and MVP gives me a mention in his &lt;a href="http://www.pcpro.co.uk/realworld/119761/managing-with-wmi.html" target="_blank"&gt;September PC Pro article&lt;/a&gt; on WMI and Powershell. Nice! Enjoy the article.&lt;/p&gt;</description></item><item><title>sdmsoftware release GPExpert™ Scripting Toolkit for PowerShell</title><link>http://winserverteam.org.uk/blogs/austin/archive/2007/07/25/sdmsoftware-release-gpexpert-scripting-toolkit-for-powershell.aspx</link><pubDate>Wed, 25 Jul 2007 20:51:22 GMT</pubDate><guid isPermaLink="false">2f64b580-8b3f-461a-8545-1e65ae7cb030:27</guid><dc:creator>Austin</dc:creator><description>&lt;p&gt;The sdmsoftware crew have released &lt;a href="http://www.sdmsoftware.com/products2.php" target="_blank"&gt;GPE Toolkit&lt;/a&gt; for the automation of Group Policy settings. I can see this PoSH based tool being an essential part of every GP admins kit. The Power and flexibility&amp;nbsp;it gives for the&amp;nbsp;creation of&amp;nbsp;policies and ensuring the settings are exactly as in your design plans is awesome. Repeatability of policy creation and settings is also greatly enhanced. Neat stuff this!&lt;/p&gt;</description></item><item><title>Scripting Group Policy settings!</title><link>http://winserverteam.org.uk/blogs/austin/archive/2007/07/22/scripting-group-policy-settings.aspx</link><pubDate>Sun, 22 Jul 2007 23:31:00 GMT</pubDate><guid isPermaLink="false">2f64b580-8b3f-461a-8545-1e65ae7cb030:18</guid><dc:creator>Austin</dc:creator><description>&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;span style="FONT-SIZE:12pt;"&gt;I spent this weekend playing with a beta copy of &lt;a href="http://sdmsoftware.com/"&gt;&lt;span style="COLOR:blue;TEXT-DECORATION:underline;"&gt;SDM Softwares&amp;#39;&lt;/span&gt;&lt;/a&gt; GPExpert Scripting Toolkit kindly advanced to a colleague of mine and I by Darren Mar Ellia, the CTO of SDMS. &lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;span style="FONT-SIZE:12pt;"&gt;Darren is one of the better known GPO gurus there are out there and when he sniffed on the ActiveDir.org newsgroup during one of our rants, that I worked in an environment with over 2,500 Group policy objects in AD, he offered to let us play with a beta copy. &lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;span style="FONT-SIZE:12pt;"&gt;What it essentially is is a Powershell cmdlet that allows you manage the individual settings within a Group Policy Object.&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;span style="FONT-SIZE:12pt;"&gt;Already, with PoSH and GPMC installed on an admin workstation, you could, with the APIs exposed by GPMC, create GPOs and&amp;nbsp; even&amp;nbsp;script the production of&amp;nbsp;reports to display the settings within GPOs. &lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;span style="FONT-SIZE:12pt;"&gt;See below for and example of creating a GP object in the domain example.com. &lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;span style="FONT-SIZE:12pt;"&gt;-------------example1----------------- &lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;em&gt;$gpobj = New-Object -comObject GPMgmt.gpm&lt;/em&gt; &lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;em&gt;$gpConstants =$gpobj.GetConstants()&lt;/em&gt; &lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;em&gt;$myDomain = $gpobj.GetDomain(&amp;quot;example.com&amp;quot;, &amp;quot;&amp;quot;, $gpConstants.UseAnyDC)&lt;/em&gt; &lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;em&gt;$myNewGpo = $myDomain.CreateGPO()&lt;/em&gt; &lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;em&gt;$myNewGpo.DisplayName = &amp;quot;PoSH Group Policy&amp;quot;&lt;/em&gt; &lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;span style="FONT-SIZE:12pt;"&gt;-------------/example1----------------- &lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;span style="FONT-SIZE:12pt;"&gt;What could not be done with the&amp;nbsp;GPMC APIs was the configuring of &amp;nbsp;the individual settings within the GPO. &lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;span style="FONT-SIZE:12pt;"&gt;The SDM GPExpert Scripting toolkit fills this gap the PoSH way! You can now extend your powers to scripting the individual settings within the GPO you just created. The example below sets the&amp;nbsp;&amp;quot;rename Guest account&amp;quot; setting in the policy we&amp;nbsp;created earlier called &amp;quot;PoSH Group Policy&amp;quot;.&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;span style="FONT-SIZE:12pt;"&gt;-------------example2----------------- &lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;em&gt;$gpo = Get-SDMgpobject -gpoName &amp;quot;gpo://example.com/Posh Group Policy&amp;quot; -openByName $true;&lt;/em&gt; &lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;em&gt;$stng = $gpo.GetObject(&amp;quot;Computer Configuration/Windows Settings/Security Settings/ Local Policies/Security Options/Accounts: Rename guest account&amp;quot;);&lt;/em&gt; &lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;em&gt;$stng.Put(&amp;quot;Defined&amp;quot;, $true);&lt;/em&gt; &lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;em&gt;$stng.Put(&amp;quot;Value&amp;quot;, &amp;quot;62150138&amp;quot;); #all accounts in the Domain use 8 digit usernames.&lt;/em&gt; &lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;em&gt;$stng.Save();&lt;/em&gt; &lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;span style="FONT-SIZE:12pt;"&gt;-------------/example2----------------- &lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;span style="FONT-SIZE:12pt;"&gt;I think this is awesome stuff! This will not only ensure some extra degree of reliability in the configuration of the settings of GPOs, it will also save time if these settings need to be changed in large numbers of policies. Anything that increases the automation of group policy creation and configuration, in very predictable ways, is always a good thing. And the learning curve with this is not in any way steep. &lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN-LEFT:36pt;"&gt;&lt;span style="FONT-SIZE:12pt;"&gt;I&amp;nbsp;am sure&amp;nbsp;the GPExpert toolkit will be an essential part of&amp;nbsp;every group policy admins &amp;quot;bag &amp;#39;o tricks&amp;quot; when it&amp;#39;s released. Excellent stuff! &lt;/span&gt;&lt;/p&gt;</description></item><item><title>Quest Software wins Microsoft Global ISV Partner of the year</title><link>http://winserverteam.org.uk/blogs/austin/archive/2007/07/15/quest-software-wins-microsoft-global-isv-partner-of-the-year.aspx</link><pubDate>Sun, 15 Jul 2007 13:02:00 GMT</pubDate><guid isPermaLink="false">2f64b580-8b3f-461a-8545-1e65ae7cb030:11</guid><dc:creator>Austin</dc:creator><description>&lt;p&gt;&lt;span style="FONT-SIZE:16pt;"&gt;&lt;span style="FONT-SIZE:14pt;"&gt;&lt;font face="Calibri"&gt;Quest Software, at the &lt;/font&gt;&lt;a href="http://www.microsoft.com/Partner/events/wwpartnerconference/awards_finalists.htm"&gt;&lt;font face="Calibri"&gt;Microsoft Partner conference held in Denver&lt;/font&gt;&lt;/a&gt;&lt;font face="Calibri"&gt; ,won the Global ISV Partner of the Year award for their adoption and use of Powershell.&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="FONT-SIZE:16pt;"&gt;&lt;span style="FONT-SIZE:14pt;"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:14pt;"&gt;&lt;font face="Calibri"&gt;Quests &lt;i style="mso-bidi-font-style:normal;"&gt;&lt;a href="http://www.quest.com/2_0/registration.aspx?requestdefid=13255"&gt;Active Directory cmdlets&lt;/a&gt;&lt;/i&gt; and stuff from&amp;nbsp;&lt;/font&gt;&lt;a href="http://dmitrysotnikov.wordpress.com/2007/07/13/powershell-makes-quest-microsofts-global-isv-partner-of-the-year/"&gt;&lt;font face="Calibri"&gt;Dmitry Sotnikovs&lt;/font&gt;&lt;/a&gt;&lt;font face="Calibri"&gt;&amp;#39; &lt;a href="http://powergui.org/index.jspa"&gt;&lt;font color="#0000ff"&gt;&lt;em&gt;PowerGUI&lt;/em&gt;&lt;/font&gt;&lt;/a&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;team are some of the Powershell apps coming out of the software house, and they are FREE!!.&lt;/font&gt;&lt;/span&gt;&lt;/span&gt; 
&lt;p&gt;&lt;span style="FONT-SIZE:16pt;"&gt;&lt;span style="FONT-SIZE:14pt;"&gt;&lt;font face="Calibri"&gt;I would like to throw a big “shout out” to Dmitry and say “Congrats dude!!” on behalf of the &lt;/font&gt;&lt;a href="http://www.culminisconnections.com/sites/get-psuguk/default.aspx"&gt;&lt;font face="Calibri"&gt;Powershell User Group in the UK&lt;/font&gt;&lt;/a&gt;&lt;font face="Calibri"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="FONT-SIZE:16pt;"&gt;&lt;span style="FONT-SIZE:14pt;"&gt;&lt;font face="Calibri"&gt;You guys Rock!!&lt;/font&gt;&lt;/span&gt; &lt;/span&gt;&lt;span style="FONT-SIZE:16pt;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:16pt;"&gt;
&lt;p&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:16pt;"&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>