<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DXPetti.com</title>
	<atom:link href="http://dxpetti.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://dxpetti.com/blog</link>
	<description>Technology, Photography, K-Pop and everything in between</description>
	<lastBuildDate>Sun, 29 Apr 2012 06:55:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>&#8220;svchost.exe is using a lot of my CPU. Is this a virus?&#8221;</title>
		<link>http://dxpetti.com/blog/?p=221</link>
		<comments>http://dxpetti.com/blog/?p=221#comments</comments>
		<pubDate>Sun, 29 Apr 2012 06:55:28 +0000</pubDate>
		<dc:creator>DXPetti</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[svchost.exe]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://dxpetti.com/blog/?p=221</guid>
		<description><![CDATA[A common occurrence I find is that svchost.exe is often mistaken for a virus or some form of malware because it is often listed in Task Manager utilizing a percentage of CPU time. And while some virii are named something similar &#8230; <a href="http://dxpetti.com/blog/?p=221">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A common occurrence I find is that <em>svchost.exe</em> is often mistaken for a virus or some form of malware because it is often listed in Task Manager utilizing a percentage of CPU time. And while some virii are named something similar to <em>svchost.exe</em> to stop the user from thinking otherwise 99% the user simply doesn&#8217;t understand what it is.</p>
<p>Microsoft describes the <em>svchost.exe</em> as</p>
<blockquote><p>&#8230;a generic host process name for services that run from dynamic-link libraries (DLLs).</p>
<p>At startup, Svchost.exe checks the services part of the registry to construct a list of services that it must load. Multiple instances of Svchost.exe can run at the same time. Each Svchost.exe session can contain a grouping of services. Therefore, separate services can run, depending on how and where Svchost.exe is started. This grouping of services allows for better control and easier debugging.</p></blockquote>
<p>So, in a nutshell, <em>svchost.exe</em> is a container for services that run via DLL files.</p>
<p>Great, but when a user is trying to diagnose what is eating CPU cycles it masks what is really going on. What can one do to remove the wool over their eyes and find out what is truly going on?</p>
<p>It&#8217;s rather simple. Drop to command prompt and run the following command:</p>
<p><code>Tasklist /svc /fi “IMAGENAME eq svchost.exe"</code></p>
<p>You will be presented with a list similar to the one below:</p>
<p><a href="http://dxpetti.com/blog/wp-content/uploads/2012/04/tasklist.jpg"><img class="aligncenter size-medium wp-image-223" title="tasklist output" src="http://dxpetti.com/blog/wp-content/uploads/2012/04/tasklist-300x154.jpg" alt="tasklist output" width="300" height="154" /></a></p>
<p>Conveniently the <strong>tasklist </strong>command breaks down each instance of <em>svchost.exe</em>, lists the PID (use this to track it in Task Manager) and what services are running via it.</p>
<p>I was able to use the above command recently to find Windows Defender service was still running despite the installation of Symantec Endpoint Protection and thus was chewing CPU cycles.</p>
<p>Hopefully, it will come in handy for you to. Let me know in the comments section or on Twitter if it does!</p>
]]></content:encoded>
			<wfw:commentRss>http://dxpetti.com/blog/?feed=rss2&#038;p=221</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bring back SKU choice in Windows 7 installer</title>
		<link>http://dxpetti.com/blog/?p=217</link>
		<comments>http://dxpetti.com/blog/?p=217#comments</comments>
		<pubDate>Wed, 11 Apr 2012 07:34:45 +0000</pubDate>
		<dc:creator>DXPetti</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://dxpetti.com/blog/?p=217</guid>
		<description><![CDATA[One of the best things Microsoft did when Vista came about is to make all their different SKUs available on the one disc/ISO. That means you could choose from Ultimate, Enterprise, Business, Home Premium and Home all from the one &#8230; <a href="http://dxpetti.com/blog/?p=217">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of the best things Microsoft did when Vista came about is to make all their different <a title="Stock-keeping Unit" href="http://en.wikipedia.org/wiki/Stock-keeping_unit" target="_blank">SKUs</a> available on the one disc/ISO. That means you could choose from Ultimate, Enterprise, Business, Home Premium and Home all from the one installation medium. Brillant.</p>
<p><img class="aligncenter" title="Windows Vista SKU option menu" src="http://www.legitreviews.com/images/reviews/454/how_to_vista_8.jpg" alt="Windows Vista SKU option menu" width="550" height="381" /></p>
<p style="text-align: center;"><em>The people like choice</em></p>
<p>For reasons unknown to me, Microsoft decided not to do this when Windows 7 came around. Sorry, I lie. They did but you no longer had a choice (at least with Technet ISOs). Instead each installation medium was coded for each SKU and only that SKU. Download the Ultimate ISO, Ultimate is what you got. Consequently, download the Enterprise ISO, Enterprise is what you got etc&#8230;</p>
<p>However there is a small trick you can do to bring back the power of choice! Simply remove <strong>sources\ei.cfg</strong> from the installation medium (if you have already burnt it to DVD you will have to edit the original source and burn it again) and you will now get the choice of what SKU to install.</p>
]]></content:encoded>
			<wfw:commentRss>http://dxpetti.com/blog/?feed=rss2&#038;p=217</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7 Libraries &amp; Personal Network Drives/Shares Part 1</title>
		<link>http://dxpetti.com/blog/?p=196</link>
		<comments>http://dxpetti.com/blog/?p=196#comments</comments>
		<pubDate>Sat, 31 Mar 2012 04:13:55 +0000</pubDate>
		<dc:creator>DXPetti</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[libraries]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://dxpetti.com/blog/?p=196</guid>
		<description><![CDATA[Windows 7 is arguably one of the best operating systems Microsoft have put out in their history in the game. It was quite a joyful experience to migrate from Vista to 7 across the enterprise (really painless). There was one &#8230; <a href="http://dxpetti.com/blog/?p=196">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Windows 7 is arguably one of the best operating systems Microsoft have put out in their history in the game. It was quite a joyful experience to migrate from Vista to 7 across the enterprise (really painless). There was one thing that always bugged me&#8230; Libraries. They are supposed to make it easier to keep your files organised but I personally think segregated folders already did this rather well (My Docs, My Music, My Pictures etc&#8230;).</p>
<p>Like anything though, we must embrace the change &#8211; twist and manipulate it to help further the machine to glory. Unfortunately, Microsoft never really provided any enterprise methods to manage the Libraries experience.</p>
<p>The problem for the user as it stands is despite having a personal network drive/share (commonly mapped to H:\) attached to their Active Directory account and implementing folder redirection so the local profile points to their existing data on the personal network drive/share Windows 7 defaults to Libraries whenever you want to open or save a file. This can lead to a user save a document on the local machine which is a strict NO-NO on a shared machine. This document is forever lost to them unless they go back to the original machine.</p>
<p><img class="aligncenter" title="Torchwood_Lost_Files" src="http://upload.wikimedia.org/wikipedia/en/4/45/Torchwood_Lost_Files.jpg" alt="" width="300" height="300" /></p>
<p style="text-align: center;"><em>With Windows 7 Libraries, these three are called upon more than ever!</em></p>
<p>Frustrating to both the user and the sysadmin but the light is shining; we can fix it!</p>
<p><strong>Requirements:</strong></p>
<ul>
<ul>
<li><a title="Notepad++ Download page" href="http://www.google.com.au/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;frm=1&amp;source=web&amp;cd=2&amp;ved=0CD4QjBAwAQ&amp;url=http%3A%2F%2Fnotepad-plus-plus.org%2Fdownload%2F&amp;ei=Y4R2T__BCrCXiAfNvaz8BA&amp;usg=AFQjCNH3EDQgV_6YH8Ki3fJPoyEX65i3Rw" target="_blank">Notepad++</a> (or any other text editor that provides a right-click contextual menu entry)</li>
</ul>
</ul>
<p>Providing the current user account you are using has not changed the default Library experience lets navigate to <strong>%userprofile%\Appdata\roaming\Microsoft\Windows\Libraries\</strong>. What you will be presented with is your four existing Libraries and if you double-click on any of them, they will take you to the particular library. So they are a shortcut right? Nuh-ah.</p>
<p style="text-align: left;"><a href="http://dxpetti.com/blog/wp-content/uploads/2012/03/Tricky_Libraries.jpg"><img class="aligncenter size-medium wp-image-197" title="Tricky_Libraries" src="http://dxpetti.com/blog/wp-content/uploads/2012/03/Tricky_Libraries-300x144.jpg" alt="" width="300" height="144" /></a></p>
<p style="text-align: center;"> <em>More than just your average shortcut</em></p>
<p>Tricky Microsoft at play here. These are actually .library-ms files which are XML based files which control all aspects of that particular library ranging from the icon used, location(s), private or public and more.</p>
<p>Lets open up the Documents Library in Notepad++ and take a look by right-clicking on the Documents file and using the <strong>Edit in Notepad++</strong> menu item.</p>
<pre class="brush: xml; title: ; notranslate">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;libraryDescription xmlns=&quot;http://schemas.microsoft.com/windows/2009/library&quot;&gt;
  &lt;name&gt;@shell32.dll,-34575&lt;/name&gt;
  &lt;ownerSID&gt;S-1-5-21-2313706764-2019408444-1191095620-1001&lt;/ownerSID&gt;
  &lt;version&gt;8&lt;/version&gt;
  &lt;isLibraryPinned&gt;true&lt;/isLibraryPinned&gt;
  &lt;iconReference&gt;imageres.dll,-1002&lt;/iconReference&gt;
  &lt;templateInfo&gt;
    &lt;folderType&gt;{7d49d726-3c21-4f05-99aa-fdc2c9474656}&lt;/folderType&gt;
  &lt;/templateInfo&gt;
  &lt;searchConnectorDescriptionList&gt;
    &lt;searchConnectorDescription publisher=&quot;Microsoft&quot; product=&quot;Windows&quot;&gt;
      &lt;description&gt;@shell32.dll,-34577&lt;/description&gt;
      &lt;isDefaultSaveLocation&gt;true&lt;/isDefaultSaveLocation&gt;
      &lt;simpleLocation&gt;
        &lt;url&gt;knownfolder:{FDD39AD0-238F-46AF-ADB4-6C85480369C7}&lt;/url&gt;
        &lt;serialized&gt;MBAAAEAFCAAAAAAAADAAAAAAAY0gAAQBRAAAAQjWHqIhPzcAnvzZQ+K5MHQib76aZwOzBAAEAAAAAAAABAAAAAAAAAAAAAAAAAAAA8WAUAwHQB+TQDi66kGEiiNCAsCMw0ZGA8CR6wFAAAAAAAAAAAAAAAAAAAAAAAAA0BQMAAAAAAQLAVgNRAQVzVmczBAYAgAAEAw7+qCQyTVLAVgNqAAAAMCAAAAAAEAAAAAAAAAAAAgNAAAAAAQVAMHAlBgcAMHAAAAQAMHAoBQZAwGAsBwMAIDAuAAZAwGAsBALA0CAyAQMAgDAxAwMAAAAUAATAEDAAAAAAsCQklDEAoUYtV2cAgDAIAABA8uvqAETVtCQkljKAAAAmAAAAAAACAAAAAAAAAAAAAAAAAAAAoEAhBQbAUGAzBAAAQBAACQMAAAAAAwTAVNnRAARPNUVNVkfxAAAoBACAQAAv7rKA1UVGBUqJpCAAAwLAAAAAAgAAAAAAAAAAAAA+AAAAAAAEBwbAMGA1BQbAUGAuBAdAMHAAAAQAMHAoBQZAwGAsBwMAIDAuAAZAwGAsBALA0CAyAQMAcDA3AAMAAAAYAAAAsEAAAAHAAAABAAAAwBAAAQMAAAAAAAAAoEAAAQFAAAADAAAA8WC+TGEAAAAEFEVBBAR6wVVzVmczxlSh1WZzxFRvNWdtVmb0NHAAABAAAQBAAAoFAAAA0WAAAAHAAAALAAAgCtmT3/jj8qRtSLbFi0ApdcbBAAAZCAAAkAAAAajAAAAxMFUTJuiYZEvMhzQ7y/ETaCmt5ccAAAAEAAAAAwHAAAAvAAAAMFAtAQMA0CA1AQLAIDAxAQLAIDAzAQMAMDA3AAMAYDA3AgNAQDAtAgMAADAxAQOAQDAwAAOAQDA0AANA0CAxAQMAkDAxAAMAkDA1AgNAIDAwAQLAEDAwAAMAEDAAAAAAAAAAAAAAAAAgBAAAMAAAAKWAAAAAAAAA02b092avBAAAAAAAAAAAAgNA8IHTe5ON5K1tMS/UUePxgY8o21OhHxkZD+yOJmTibDAPyxkXuTTuSdLj0PFl3TMIGPqdtT4RMZ2gvsTi5k4AAAAAA&lt;/serialized&gt;
      &lt;/simpleLocation&gt;
    &lt;/searchConnectorDescription&gt;
    &lt;searchConnectorDescription publisher=&quot;Microsoft&quot; product=&quot;Windows&quot;&gt;
      &lt;description&gt;@shell32.dll,-34579&lt;/description&gt;
      &lt;isDefaultNonOwnerSaveLocation&gt;true&lt;/isDefaultNonOwnerSaveLocation&gt;
      &lt;simpleLocation&gt;
        &lt;url&gt;knownfolder:{ED4824AF-DCE4-45A8-81E2-FC7965083634}&lt;/url&gt;
        &lt;serialized&gt;MBAAAEAFCAAAAAAAADAAAAAAAY0gAAQBRAAAAAF2EYChPzcArdSUlFc0MHwanEVZBHNzBAAEAAAAAAAABAAAAAAAAAAAAAAAAAAAAsZAUAwHQB+TQDi66kGEiiNCAsCMw0ZGA8CR6wFAAAAAAAAAAAAAAAAAAAAAAAAA0BQMAAAAAAQLAVgNRAQVzVmczBAYAgAAEAw7+qCQyTVLAVgNqAAAAMCAAAAAAEAAAAAAAAAAAAgNAAAAAAQVAMHAlBgcAMHAAAAQAMHAoBQZAwGAsBwMAIDAuAAZAwGAsBALA0CAyAQMAgDAxAwMAAAAUAAeAEDAAAAAA0CQjhTEAAVdixWajBAAiBACAQAAv7rKANPVtA0Y4oCAAAgmBAAAAAQAAAAAAAAAAAAA4AAAAAAAQBQdAIGAsBQaAMGAAAAQAMHAoBQZAwGAsBwMAIDAuAAZAwGAsBALA0CAyAQMAgDAxAgNAAAAWAAgAEDAAAAAA0CQjhTEAQ0TDVVTF5XMAAAaAgAAEAw7+qCQzTVLANGOqAAAA4ZAAAAAAEAAAAAAAAAAAAgPAAAAAAARA8GAjBQdA0GAlBgbAQHAzBAAAAEAzBAaAUGAsBAbAMDAyAgLAQGAsBAbAwCAtAgMAEDA4AAMAEDAAAAGAAAAMBAAAwBAAAQAAAAAcAAAAEDAAAAAAAAALBAAAUBAAAwAAAAAvlg/kBBAAAARBRVQAQkOcV1clJ3ccBVdixWajxFRvNWdtVmb0NHAAABAAAQBAAAouAAAAkZAAAAHAAAALAAAg+KJI1O5cjaRBKO/5VGC2QTmBAAAZCAAAkAAAAajAAAAxMFUTJuiYZEvMhzQ7y/ETaCmt5ccAAAAEAAAAAwHAAAAvAAAAMFAtAQMA0CA1AQLAIDAxAQLAIDAzAQMAMDA3AAMAYDA3AgNAQDAtAgMAADAxAQOAQDAwAAOAQDA0AANA0CAxAQMAkDAxAAMAkDA1AgNAIDAwAQLAEDAwAAMAEDAAAAAAAAAAAAAAAAAgBAAAMAAAAKWAAAAAAAAA02b092avBAAAAAAAAAAAAgNA8IHTe5ON5K1tMS/UUePygY8o21OhHxkZD+yOJmTibDAPyxkXuTTuSdLj0PFl3jMIGPqdtT4RMZ2gvsTi5k4AAAAAA&lt;/serialized&gt;
      &lt;/simpleLocation&gt;
    &lt;/searchConnectorDescription&gt;
  &lt;/searchConnectorDescriptionList&gt;
&lt;/libraryDescription&gt;</pre>
<p>Now if we are going to deploy this en-masse, we first must eliminate a few snippets to generalise it.</p>
<p>First we shall remove from line 20 to line 27. This removes the &#8220;Public Documents&#8221; folder from our Library (as we want the user to <strong>just</strong> use their network drive/share and not anything on the local machine)</p>
<p>Next, take out the <strong>&lt;ownerSID&gt;&#8230;&lt;/ownerSID&gt;</strong> line followed by anywhere you find the <strong>&lt;serialized&gt;&lt;/serialized&gt;</strong> tags.</p>
<p>The only thing left is to change the location of Documents library, in our case we want to point to <em>H:\My Documents\</em> but you can point it to where ever you like. To do so, edit between the <strong>&lt;url&gt;</strong>&#8230;<strong>&lt;/url&gt;</strong> tags and should end up with something like the following:</p>
<pre class="brush: xml; title: ; notranslate">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;libraryDescription xmlns=&quot;http://schemas.microsoft.com/windows/2009/library&quot;&gt;
  &lt;name&gt;@shell32.dll,-34575&lt;/name&gt;
  &lt;version&gt;8&lt;/version&gt;
  &lt;isLibraryPinned&gt;true&lt;/isLibraryPinned&gt;
  &lt;iconReference&gt;imageres.dll,-1002&lt;/iconReference&gt;
  &lt;templateInfo&gt;
    &lt;folderType&gt;{7d49d726-3c21-4f05-99aa-fdc2c9474656}&lt;/folderType&gt;
  &lt;/templateInfo&gt;
  &lt;searchConnectorDescriptionList&gt;
    &lt;searchConnectorDescription publisher=&quot;Microsoft&quot; product=&quot;Windows&quot;&gt;
      &lt;description&gt;@shell32.dll,-34577&lt;/description&gt;
      &lt;isDefaultSaveLocation&gt;true&lt;/isDefaultSaveLocation&gt;
      &lt;simpleLocation&gt;
        &lt;url&gt;H:\My Documents\&lt;/url&gt;
      &lt;/simpleLocation&gt;
    &lt;/searchConnectorDescription&gt;
  &lt;/searchConnectorDescriptionList&gt;
&lt;/libraryDescription&gt;</pre>
<p>Nice and basic. No riff-raff, just does the job and does it well. Save the file name it Documents.library-ms and we are half way there.</p>
<p>Part 2 will come deployment of our new settings to all the computers in your enterprise via Group Policy Preferences</p>
]]></content:encoded>
			<wfw:commentRss>http://dxpetti.com/blog/?feed=rss2&#038;p=196</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beware the Sysadmin</title>
		<link>http://dxpetti.com/blog/?p=192</link>
		<comments>http://dxpetti.com/blog/?p=192#comments</comments>
		<pubDate>Thu, 29 Mar 2012 03:13:54 +0000</pubDate>
		<dc:creator>DXPetti</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[humor]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[webcomic]]></category>
		<category><![CDATA[xkcd]]></category>

		<guid isPermaLink="false">http://dxpetti.com/blog/?p=192</guid>
		<description><![CDATA[I don&#8217;t usually get excited by xkcd web comics but I thought this one was particularly appropriate (thanks Anthony Burke)]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t usually get excited by xkcd web comics but I thought this one was particularly appropriate (thanks <a href="http://blog.ciscoinferno.net/" target="_blank">Anthony Burke</a>)</p>
<p><a href="http://xkcd.com/705/"><img class="aligncenter" title="xkcd - Devotion to Duty" src="http://imgs.xkcd.com/comics/devotion_to_duty.png" alt="xkcd - Devotion to Duty" width="638" height="247" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://dxpetti.com/blog/?feed=rss2&#038;p=192</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deploying Printers to the fleet via Group Policy Preferences</title>
		<link>http://dxpetti.com/blog/?p=181</link>
		<comments>http://dxpetti.com/blog/?p=181#comments</comments>
		<pubDate>Sat, 03 Mar 2012 04:25:13 +0000</pubDate>
		<dc:creator>DXPetti</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[group policy]]></category>
		<category><![CDATA[printers]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://dxpetti.com/blog/?p=181</guid>
		<description><![CDATA[Ahhhhh printers, I am convinced life would be better without them (I don&#8217;t even have one at home). None-the-less, printers are a staplemate of businesses across the globe and as SysAdmin&#8217;s it is our job to ensure clients have access &#8230; <a href="http://dxpetti.com/blog/?p=181">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ahhhhh printers, I am convinced life would be better without them (I don&#8217;t even have one at home). None-the-less, printers are a staplemate of businesses across the globe and as SysAdmin&#8217;s it is our job to ensure clients have access to the printers all while making it as seamless as possible.</p>
<p>Over the seven years I have been at my current place of employment, I have gone from deploy printers via KIX script (more or less <strong>net use</strong> with variables) to Group Policy and finally Group Policy Preferences. Despite using 3 different methods not one has worked satisfactory&#8230; that is until now.</p>
<p>Before I get into the Group Policy deployment side of things I will first give you an idea of the environment I am working with.</p>
<ul>
<li>Windows Server 2008 Print Server / Domain Controller <em>(could have gone 08 R2 but didn&#8217;t want the headache of x64 drivers AND x86 drivers)</em></li>
<li><em></em>30+ different print queues with varying models and brands ranging from HP Black &amp; White Lasers to Xerox Multifunction Devices (fancy name for Photocopiers that can fax/print/scan/copy)</li>
<li>Windows 7 SP1 clients predominately with a scattering of Vista and XP clients (all x86)</li>
<li>Majority of the clients DO NOT have administrative privileges and thus are standard users</li>
</ul>
<p>With the above in mind lets dig into the Printer Group Policy I use:</p>
<p>In the below section we share our each printer queue that is to be deployed via Group Policy:</p>
<p><strong>User Configuration&gt;Preferences&gt;Control Panel Settings&gt;Printers</strong></p>
<p>Go ahead and create a new <strong>Shared Printer</strong> with the following properties:</p>
<p><a href="http://dxpetti.com/blog/wp-content/uploads/2012/03/gpp_printers1.jpg"><img class="alignnone size-medium wp-image-184" title="gpp_printers1" src="http://dxpetti.com/blog/wp-content/uploads/2012/03/gpp_printers1-270x300.jpg" alt="" width="270" height="300" /></a> <a href="http://dxpetti.com/blog/wp-content/uploads/2012/03/gpp_printers2.jpg"><img class="alignnone  wp-image-185" title="gpp_printers2" src="http://dxpetti.com/blog/wp-content/uploads/2012/03/gpp_printers2-269x300.jpg" alt="" width="269" height="300" /></a></p>
<p>The three important bits is the <strong>Action</strong> is set to <strong>Create</strong>, <strong>Share path</strong> is set to the SMB share path of your printer (use the <strong>&#8230;</strong> button to browse and point the printer if you do not know the path from memory) and that <strong>Run in logged-on user&#8217;s security context (user policy option)</strong> is ticked.</p>
<p>Now according to Microsoft, all that is left is to apply the policy to your choice of Organisational Unit and you should have printers being deploy left, right and centre. Depending on your environment this could be true however in our case this is not enough.</p>
<p>In the same Policy we are adding the printers go to the below sections and add the following:</p>
<p><strong>Computer Configuration&gt;Policies&gt;Windows Settings&gt;Security Settings&gt;Local Policies&gt;User Rights Assignment</strong></p>
<ul>
<li>Load and unload device drivers</li>
<ul>
<li>BUILTIN\Users</li>
</ul>
</ul>
<p><strong>Computer Configuration&gt;Policies&gt;Windows Settings&gt;Security Settings&gt;Local Policies&gt;Security Options</strong></p>
<ul>
<li>Devices: Prevent users from installing printer drivers</li>
<ul>
<li>Disabled</li>
</ul>
</ul>
<p>If it is not obvious already the above to settings will allow standard users to install printer drivers. Makes sense right?</p>
<p>Now with the above complete this was enough for most of our printer queues to be deployed without issue. Unfortunately &amp; weirdly all our copiers refused to deploy (along with a couple of lasers). I am unsure what the technical reason that connects all these printers together but after reading what others have done when deploying printers via Group Policy Preferences I applied the next few policies:</p>
<p><strong>Computer Configuration&gt;Policies&gt;Administrative Templates&gt;Printers</strong></p>
<ul>
<li>Only use Package Point and print</li>
<ul>
<li>Disabled</li>
</ul>
<li>Package Point and print &#8211; Approved Servers</li>
<ul>
<li>Disabled</li>
</ul>
<li>Point and Print Restrictions</li>
<ul>
<li>Disabled</li>
</ul>
</ul>
<p>With the above applied, all 30+ printer queues came through.</p>
<p>With this many printer queues, logon times are significantly increased upon first logon to a machine while the drivers are pulled from the Print Server and installed. On shared machines this can be frustrating to the end user (1:1 machines aren&#8217;t affected as subsequent logins do not have to reapply the policy unless there is a change) so my next task is to test if deploying the printers in <strong>Computer Configuration</strong> rather than <strong>User Configuration</strong> will only install the printers upon first domain user login and any subsequent domain user login will use the existing drivers/configuration.</p>
<p>Now go forth and give them all the printers they can handle!</p>
]]></content:encoded>
			<wfw:commentRss>http://dxpetti.com/blog/?feed=rss2&#038;p=181</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Export email addresses via Exchange Powershell</title>
		<link>http://dxpetti.com/blog/?p=175</link>
		<comments>http://dxpetti.com/blog/?p=175#comments</comments>
		<pubDate>Tue, 28 Feb 2012 01:37:34 +0000</pubDate>
		<dc:creator>DXPetti</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[exchange]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://dxpetti.com/blog/?p=175</guid>
		<description><![CDATA[The other week I had a request for a list of all email addresses of staff for use with a legacy VOIP system. Seems simple enough right but in Exchange 2007 (possibly 2010 as well) there is no option via &#8230; <a href="http://dxpetti.com/blog/?p=175">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The other week I had a request for a list of all email addresses of staff for use with a legacy VOIP system. Seems simple enough right but in Exchange 2007 (possibly 2010 as well) there is no option via the GUI to pump out all the email addresses from your Exchange server.</p>
<p>Where there is a problem, we shall find a solution right?</p>
<p>After a bit of Google-fu &amp; testing, I give you a script to output all SMTP addresses to an Excel document</p>
<p>Requirements:</p>
<ul>
<li>Exchange Powershell (tested 2007, should work on 2010)</li>
</ul>
<pre class="brush: powershell; title: ; notranslate">Get-Mailbox -ResultSize Unlimited |Select-Object DisplayName,ServerName,PrimarySmtpAddress, @{Name=“EmailAddresses”;Expression={$_.EmailAddresses |Where-Object {$_.PrefixString -ceq “smtp”} | ForEach-Object {$_.SmtpAddress}}} | Export-Csv c:\mailbox_alias.csv</pre>
<p>If we examine the code above you can see that this will export all SMTP address to a CSV formatted file named <strong>mailbox_alias.csv</strong> in the root of <strong>C:\</strong> (make sure you have the rights to write there or change the path to somewhere you do have rights). This CSV file will have columns in the following layout:</p>
<blockquote><p>DisplayName ServerName PrimarySMTPAddress EmailAddresses</p></blockquote>
<p>The important thing to note is the final column <em>EmailAddresses</em> will provide any secondary/added SMTP address for those you use more than one email address.</p>
<p>In my specific case I needed to get email addresses from one specific mailbox database (staff and students are on seperate databases to make it easier to apply mailbox limits) and thus the script is a little different:</p>
<pre class="brush: powershell; title: ; notranslate">Get-Mailbox -Database &quot;Mailserver\Databasename&quot; -ResultSize Unlimited |Select-Object DisplayName,ServerName,PrimarySmtpAddress, @{Name=“EmailAddresses”;Expression={$_.EmailAddresses |Where-Object {$_.PrefixString -ceq “smtp”} | ForEach-Object {$_.SmtpAddress}}} | Export-Csv c:\mailbox_alias.csv</pre>
<p>You will note the addition of <em>-Database &#8220;Mailserver\DatabaseName&#8221;</em> to the script which allows you to choose a specific mailbox database to pull email addresses from.</p>
<p>So, there you have it; all your email addresses outputted to a nicely formatted CSV file. Too easy!</p>
]]></content:encoded>
			<wfw:commentRss>http://dxpetti.com/blog/?feed=rss2&#038;p=175</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing a printer while the print spooler is not running</title>
		<link>http://dxpetti.com/blog/?p=166</link>
		<comments>http://dxpetti.com/blog/?p=166#comments</comments>
		<pubDate>Sat, 04 Feb 2012 03:58:07 +0000</pubDate>
		<dc:creator>DXPetti</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[printers]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://dxpetti.com/blog/?p=166</guid>
		<description><![CDATA[Many sysadmins have probably encountered a situation where due to a nasty print driver (&#38; associated printer) the Print Spooler service stops and upon starting it up again manually decides to stop again. Being stuck in this loop is nothing but pure &#8230; <a href="http://dxpetti.com/blog/?p=166">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Many sysadmins have probably encountered a situation where due to a nasty print driver (&amp; associated printer) the Print Spooler service stops and upon starting it up again manually decides to stop again. Being stuck in this loop is nothing but pure frustration however if you are smart about the problem, it shouldn&#8217;t worry you for long.</p>
<p>First thing to do is check the event viewer. This tool is a god-send and if you are not already familiar with it, I suggest you immediately introduce yourself and become friends. You should be presented with a error something similar to the following:</p>
<p><a href="http://dxpetti.com/blog/wp-content/uploads/2012/02/ss.jpg"><img class="alignnone size-large wp-image-167" title="print_spooler_error" src="http://dxpetti.com/blog/wp-content/uploads/2012/02/ss-1024x575.jpg" alt="Event Viewer displaying a Print Spooler error" width="584" height="327" /></a></p>
<p>The key in the above image is <strong>AdobePDF.dll</strong> is listed under the <strong>Faulting Module Path</strong>. Pesky Adobe has done it again in this case.</p>
<p>Now we know which driver is causing the spooler to fail (and in this case we can quickly surmise which printer it is based off the driver name) we can simply remove the printer from Devices &amp; Printers right? Wrong. The second we start up the Print Spooler service its going to come crashing down once again.</p>
<p>So how do we remove a printer when we have no access to it via the GUI? Regedit, another friend you should familarise yourself with (having said that, knowing the registry of Windows from top to bottom is a mean feat, I have doubts I will ever know it THAT well).</p>
<p>Right, load up regedit and dive into</p>
<blockquote><p>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print</p></blockquote>
<p>Under the Print key, you will find 3 keys that are of interest today; <strong>Environments</strong>,<strong> Monitors </strong>&amp;<strong> Printers</strong>.</p>
<p>Under these 3 keys, purge anything to do with the aforementioned driver (in this case <strong>AdobePDF.dll</strong>) and you should be able to safely bring back up the Print Spooler service</p>
<p><em>Note: As with any circumstances involving Regedit, backup before you start changing. You have been warned!</em></p>
<p>There you have it, a nice and quick way to solve your print spooler failure loops.</p>
]]></content:encoded>
			<wfw:commentRss>http://dxpetti.com/blog/?feed=rss2&#038;p=166</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Girls&#8217; Generation debut on American TV</title>
		<link>http://dxpetti.com/blog/?p=160</link>
		<comments>http://dxpetti.com/blog/?p=160#comments</comments>
		<pubDate>Wed, 01 Feb 2012 07:24:03 +0000</pubDate>
		<dc:creator>DXPetti</dc:creator>
				<category><![CDATA[K-Pop]]></category>
		<category><![CDATA[Girls Generation]]></category>
		<category><![CDATA[Korea]]></category>
		<category><![CDATA[Korean Pop]]></category>
		<category><![CDATA[SNSD]]></category>

		<guid isPermaLink="false">http://dxpetti.com/blog/?p=160</guid>
		<description><![CDATA[For many fans of Girls&#8217; Generation (often referred by SNSD or SoShi, both come from their Korean name) today has been a long time coming. The Hallyu wave, as it is called, has reached the shores of the United States and into &#8230; <a href="http://dxpetti.com/blog/?p=160">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For many fans of Girls&#8217; Generation (often referred by SNSD or SoShi, both come from their Korean name) today has been a long time coming. The <em>Hallyu wave</em>, as it is called, has reached the shores of the United States and into the households of the populous across the nation. I, myself cannot claim to be a long-time fan.</p>
<p>I first happened upon Girls&#8217; Generation after clicking on a rather inviting topic title on NeoGAF forums that promised to mesmerise and surprise. So with cautious excitement I proceeded to watch a video linked in the opening post of this topic. I was presented with nine beautiful ladies, dancing in sync, singing powerfully to a quick bass beat. Never have I been a great fan of anything pop related; I have always stuck to metal, electro &amp; rock, but something in the beat had me hooked. It wasn&#8217;t long before I was constantly replaying this video, over &amp; over. Simply astonishing was the whole package that came before me; both visual and aural senses completely overwhelmed. I craved more&#8230;</p>
<p><iframe src="http://www.youtube.com/embed/F0kD138mk2g" frameborder="0" width="560" height="315"></iframe></p>
<p>After returning to the topic that brought me to the video I started to dig, dig for anything related to this group, and I found more, lots more. Little had I known Girls&#8217; Generation has been around since 2007 and there were plenty more hits than the one I had experience, even different versions of the same song.</p>
<p>This was back in 2010, I have since not only discovered more fantastic music &amp; dance from the world of Korean Pop but I have even seen Girls Generation live, in the flesh when they, along with many others came to Sydney for the <a title="2011 K-POP Music Fest" href="http://www.kpopmusicfest.com.au/" target="_blank">K-POP Music Fest</a>.</p>
<p>Fast forward back to today and we have Girls&#8217; Generation debuting on American TV (they have performed in the US but only in concert, never on public television) with a remixed version of their latest hit &#8216;The Boys&#8217;. With any luck (and early feedback is looking positive), Girls&#8217; Generation will become a less of a leading group in a niche genre and more of a household name. Like <a title="TVXQ Wikipedia.org" href="http://en.wikipedia.org/wiki/TVXQ" target="_blank">TVQX</a> and <a title="BoA Wikipedia.org" href="http://en.wikipedia.org/wiki/BoA" target="_blank">BoA</a> did for Korean POP in Japan, Girls&#8217; Generation hope to pave the first stones to success in the otherwise elusive American music market.</p>
<p>Watch and judge for yourself</p>
<p><iframe src="http://www.youtube.com/embed/AO9yFjodDtM?feature=player_embedded" frameborder="0" width="640" height="360"></iframe></p>
<p>The music &amp; dance in Korean Pop is simply the tip of a very large ice berg. I implore you to go out and explore the crazy world of Korean Pop if you are interested in something outside the culture you grew in.</p>
<p>Good luck and enjoy the ride</p>
]]></content:encoded>
			<wfw:commentRss>http://dxpetti.com/blog/?feed=rss2&#038;p=160</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bulk creation of Active Directory User accounts via Powershell v2</title>
		<link>http://dxpetti.com/blog/?p=120</link>
		<comments>http://dxpetti.com/blog/?p=120#comments</comments>
		<pubDate>Sun, 22 Jan 2012 20:38:42 +0000</pubDate>
		<dc:creator>DXPetti</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://dxpetti.com/blog/?p=120</guid>
		<description><![CDATA[Most system administrators that I know has the burden (or the joy if you like a challenge) of creating and managing large quantities of users in Active Directory. I, myself face creating 150+ at the start of every year and &#8230; <a href="http://dxpetti.com/blog/?p=120">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Most system administrators that I know has the burden (or the joy if you like a challenge) of creating and managing large quantities of users in Active Directory. I, myself face creating 150+ at the start of every year and I for the most part we have developed a new way to do it every year.</p>
<p>This year I chose to taken it upon myself to come up with the method and couldn&#8217;t think of a better solution than Powershell. Considering all the work Microsoft seems to be putting behind this scripting &amp; command engine it couldn&#8217;t hurt to try.</p>
<p>The script I cobbled together is VERY basic (as I have practically zero knowledge of PS) but worked for me, hopefully it can be of use to anyone else.</p>
<p>Requirements:</p>
<ul>
<li>Powershell v2</li>
<li>Active Directory Module for Powershell (installed by default on WK8R2 Domain Controllers or available in the latest RSAT tools)</li>
</ul>
<pre class="brush: powershell; title: ; notranslate">import-csv .\import.csv | %{new-aduser -Name $_.Name -DisplayName $_.DisplayName -GivenName $_.GivenName -SamAccountName $_.SamAccountName -UserPrincipalName $_.UserPrincipalName -Description $_.Description -Surname $_.Surname -Path ‘OU=example,DC=domain,DC=com' -CannotChangePassword $false -ChangePasswordAtLogon $false ; Set-ADAccountPassword -identity $_.SamAccountName -NewPassword (ConvertTo-SecureString -AsPlainText $_.AccountPassword -Force) -Reset ; Enable-ADAccount -identity $_.SamAccountName}</pre>
<p>Save the above code, paste into your favourite text editor and save as a .ps1 (Powershell Script).</p>
<p>Next, create import.csv in the same directory as the script file and open it up in Excel. Now lets get the following headers inserted:</p>
<blockquote><p>Name DisplayName GivenName SamAccountName UserPrincipleName Description Surname AccountPassword</p></blockquote>
<p>All that is left is to fill in the csv with your data from where-ever that may be and run the script.</p>
<p>If I ever get around to it I hope to improve the script so that all that is required is <em>GivenName, Surname &amp; SamAccountName </em>as the rest should either be generated from the 3 listed or grabbed from the environment <em>(UserPrincipleName</em>). Currently I perform a bit of Excel formula magic to do this but it adds time and that&#8217;s what we are trying to cut down right?</p>
<p>I would also like to be able to add group memberships in the future but one thing at a time.</p>
<p>Hopefully that saves any SysAdmin&#8217;s a day on trying to workout their own solution, if not, it certainly was a fun experience and a achievement for the day!</p>
]]></content:encoded>
			<wfw:commentRss>http://dxpetti.com/blog/?feed=rss2&#038;p=120</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Avalon Airshow 09</title>
		<link>http://dxpetti.com/blog/?p=116</link>
		<comments>http://dxpetti.com/blog/?p=116#comments</comments>
		<pubDate>Wed, 18 Mar 2009 10:27:29 +0000</pubDate>
		<dc:creator>DXPetti</dc:creator>
				<category><![CDATA[Random Blogging]]></category>
		<category><![CDATA[airshow]]></category>
		<category><![CDATA[avalon]]></category>
		<category><![CDATA[aviation]]></category>
		<category><![CDATA[photography]]></category>

		<guid isPermaLink="false">http://dxpetti.com/?p=116</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 735px"><a href="http://www.flickr.com/photos/10867582@N08/sets/72157615564726486/"><img class=" " title="Avalon Airshow 09" src="http://farm4.static.flickr.com/3427/3365357286_95393e246d_o.jpg" alt="Avalon Airshow 09" width="725" height="498" /></a><p class="wp-caption-text">FA-18 Super Hornet going ballistic</p></div>
]]></content:encoded>
			<wfw:commentRss>http://dxpetti.com/blog/?feed=rss2&#038;p=116</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

