<?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>James&#039; Tools and Tricks &#187; Servers</title>
	<atom:link href="http://jrudd.org/wordpress/tag/servers/feed/" rel="self" type="application/rss+xml" />
	<link>http://jrudd.org/wordpress</link>
	<description>Tools, Tips and Hints for managing a network.</description>
	<lastBuildDate>Mon, 26 Jul 2010 03:13:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>HP Printers &#8211; &#8220;Printer driver is not installed&#8221; on Windows 2008 R2</title>
		<link>http://jrudd.org/wordpress/2010/05/17/hp-printers-printer-driver-is-not-installed-on-windows-2008-r2/</link>
		<comments>http://jrudd.org/wordpress/2010/05/17/hp-printers-printer-driver-is-not-installed-on-windows-2008-r2/#comments</comments>
		<pubDate>Mon, 17 May 2010 00:59:05 +0000</pubDate>
		<dc:creator>James Rudd</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Bulk Operations]]></category>
		<category><![CDATA[hp printers]]></category>
		<category><![CDATA[HPTrayCount]]></category>
		<category><![CDATA[microsoft windows]]></category>
		<category><![CDATA[print management]]></category>
		<category><![CDATA[print servers]]></category>
		<category><![CDATA[printer driver]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[server 2008 R2]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[vbscript]]></category>

		<guid isPermaLink="false">http://jrudd.org/wordpress/?p=134</guid>
		<description><![CDATA[Recently I migrated all our printers from a Server 2003 R2 x32 print server to Server 2008 R2 (x64). During this upgrade all the printers had x64 drivers added and their security settings checked. However, I kept experiencing problems in Print Management with the HP printers reporting the Printer driver is not installed, even after <a href='http://jrudd.org/wordpress/2010/05/17/hp-printers-printer-driver-is-not-installed-on-windows-2008-r2/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Recently I <a href="http://trycatch.be/blogs/roggenk/archive/2008/05/13/windows-server-2008-printer-migration-and-consolidation.aspx">migrated all our printers</a> from a <a href="http://xmstechnology.glve.be/archives/41">Server 2003 R2 x32 print server to Server 2008 R2 (x64)</a>. During this upgrade all the printers had x64 drivers added and their security settings checked. However, I kept experiencing problems in Print Management with the HP printers reporting the <em>Printer driver is not installed</em>, even after it had been repeatedly added and appeared in list of installed drivers.</p>
<p>Finally I found a <a href="http://social.technet.microsoft.com/Forums/en/winserverprint/thread/5101195b-3aca-4699-9a06-db4578614e2d">Technet discussion</a> on the issue, which correctly identified an incorrect registry value <em>HPTrayCount </em>which is set to 0 when the printer driver is changed, but is not set back to a working value.</p>
<p>This value needs to be changed to 0&#215;12 (decimal 18) for each HP printer for it to work correctly. However, on print servers with lots of HP printers this can be very time consuming. To speed this process I have written the vbscript below which will check if the value exists for each printer, and if it is set to 0 will set it to 0&#215;12.</p>
<pre class="brush: vb;">
' For each Printer in Registry check if HPTrayCount exists and is set to 0, then set to 12

'http://social.technet.microsoft.com/Forums/en/winserverprint/thread/5101195b-3aca-4699-9a06-db4578614e2d

strKeyPath = &quot;SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers&quot;
strValueName = &quot;HPTrayCount&quot;
inHPValue = 18 ' Is equal to Hex 12, makesprinter driver work.

'http://www.activexperts.com/activmonitor/windowsmanagement/adminscripts/registry/#EnumRegVals.htm
const HKEY_LOCAL_MACHINE = &amp;H80000002
strComputer = &quot;.&quot;
Set StdOut = WScript.StdOut

Set oReg=GetObject(&quot;winmgmts:{impersonationLevel=impersonate}!\\&quot; &amp; _
strComputer &amp; &quot;\root\default:StdRegProv&quot;)

' Get list of Printers
oReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys

For Each subkey In arrSubKeys
  ' Read in HP Tray value
  strPrintPath = strKeyPath &amp; &quot;\&quot; &amp; subkey &amp; &quot;\PrinterDriverData&quot;
  oReg.GetDWORDValue HKEY_LOCAL_MACHINE,strPrintPath,strValueName,dwValue
  If Not IsNull (dwValue) And dwValue = 0 Then
    'If Exists and 0 then set it to a real value to make it work
    StdOut.WriteLine subkey &amp; &quot;: HP Tray: &quot; &amp; dwValue
    oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strPrintPath,strValueName,inHPValue
  End If
Next
</pre>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 620px; width: 1px; height: 1px; overflow: hidden;">
<pre></pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://jrudd.org/wordpress/2010/05/17/hp-printers-printer-driver-is-not-installed-on-windows-2008-r2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrating DHCP reservations from Novell to Microsoft</title>
		<link>http://jrudd.org/wordpress/2009/02/13/migrating-dhcp-reservations-from-novell-to-microsoft/</link>
		<comments>http://jrudd.org/wordpress/2009/02/13/migrating-dhcp-reservations-from-novell-to-microsoft/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 01:36:36 +0000</pubDate>
		<dc:creator>James Rudd</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Novell]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[dhcp reservations]]></category>
		<category><![CDATA[dhcp server service]]></category>
		<category><![CDATA[dhcp servers]]></category>
		<category><![CDATA[eDirectory]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[novell dhcp]]></category>
		<category><![CDATA[novell servers]]></category>
		<category><![CDATA[Servers]]></category>

		<guid isPermaLink="false">http://jrudd.org/wordpress/?p=71</guid>
		<description><![CDATA[We are gradually migrating our core services from Netware to Windows Server 2003 and 2008. As part of this migration we needed to migrate all our DHCP reservations stored on our Novell servers to Windows Servers. ]]></description>
			<content:encoded><![CDATA[<p>We are gradually migrating our core services from Novell Netware to Windows Server 2003 and 2008. As part of this migration we needed to migrate all our DHCP reservations stored on our Novell servers to Windows Servers.</p>
<p>First a comment, although Microsoft seems to have a much better DNS system than on Netware 6.5, their DHCP implementation leaves a lot to be desired.</p>
<p>On Novell I could create a scope, reservations and options and it is stored in eDirectory. I could then have multiple DHCP servers with different IP ranges to offer. I could use the java console (sometime slow) to add a reservation and it would sync to both servers.</p>
<p>On Windows Server 2003 and 2008 I need to separate create scopes, allocation ranges and reservations on each server. Their is no synchronisation or communication between these servers. This means to migrate my reservations from my current Netware DHCP servers to the target Windows servers the reservations need to be added to each server, as well as adding any future reservations to both servers.</p>
<h2>Migration Process</h2>
<p>First use the Novell DNS/DHCP console and export the DHCP scope / database you are migrating.</p>
<p>I have written the following Perl code to read in the DHCP3TAB file generated and output a netsh file that will add all your reservations to any number of Windows DHCP servers.</p>
<p>You will need to modify the DHCP servers list to your AD servers and change the scopeName to the correct IP settings.</p>
<p>After running your DHCP3TAB through the perl script, copy output to your server and run <em>netsh exec outputFile.txt</em> to add it to your servers.</p>
<pre class="brush: perl;">
#!C:\Perl\bin\perl.exe

# Designed to read in Rservations from a Novell DHCP Tab file and output a NetSH script file
# From http://technet.microsoft.com/en-us/library/cc787375.aspx
# On the destination server, the exec command is used to load and execute the converted reservations:
#  netsh exec AdReservations.txt
# After you use the exec command to load the file, you must reconcile all scopes.
# Use net stop dhcpserver to stop the DHCP Server service and net start dhcpserver to restart it. Once the service is restarted, DHCP database changes take effect.

use strict; use warnings;

my $dhcptabName = &quot;DHCP3TAB.txt&quot;;
my $outFile = &quot;AdReservations.txt&quot;;
my @dhcpServers = ('\\\\DHCPServer1.win.us.schools.nsw.edu.au',
    '\\\\DHCPServer2.win.us.schools.nsw.edu.au');
my $scopeName = &quot;10.10.11.0&quot;;

open F, &quot;&lt; $dhcptabName&quot; or die &quot;Can't open $dhcptabName : $!&quot;;
open O, &quot;&gt; $outFile&quot; or die &quot;Can't open $outFile : $!&quot;;

# File parsing
my $ip;
my $host;
my $mac;
my $type;
my $comment=&quot;&quot;;

while (my $line = &lt;F&gt;){
  if ($line =~ /^\[IP Address Configuration /i) {
  # New entry, clear values
    $ip=&quot;&quot;, $host=&quot;&quot;, $mac=&quot;&quot;, $type=&quot;&quot;, $comment=&quot;&quot;;

    while ((my $entry = &lt;F&gt;) !~ /^$/){
    # Parse and fill in values
      if ($entry =~ /IP Address Number = ([\d.]+)/i){
        $ip=$1;
      }
      elsif ($entry =~ /Assignment Type = (\d+)/i){
        $type=$1;
      }
      elsif ($entry =~ /Host Name = ([\w\-_]+)/i){
        $host=$1;
      }
      elsif ($entry =~ /MAC Address = 1 (.+)/i){
        $mac=$1;
        $mac=~ s/\s+//g;
      }
      elsif ($entry =~ /Comment = (.+)/i){
        $comment=$1;
      }
    }

    # Following determines which type of entries to convert. Default is only reservation.
    # You can comment it out and uncomment the second line to include reservations and allocated IPs.
    # If  type != 8 (reservation) discard
    next unless ($type == 8); 

    # If  type != 8 (reservation) or  != 2 (Allocated) discard
    # next unless  ($type  == 8 or $type  == 2);

    next if ($mac eq &quot;&quot; or $ip eq &quot;&quot; or $host eq &quot;&quot;);
    foreach my $server (@dhcpServers){
      print O &quot;Dhcp Server $server Scope $scopeName Add reservedip $ip $mac \&quot;$host\&quot; \&quot;$comment\&quot; \&quot;BOTH\&quot;\n&quot;;
    }
  }
}

close F;
close O;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://jrudd.org/wordpress/2009/02/13/migrating-dhcp-reservations-from-novell-to-microsoft/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Local Intranet Problems with Internet Explorer 7 and Novell</title>
		<link>http://jrudd.org/wordpress/2008/01/01/local-intranet-problems-with-internet-explorer-7-and-novell/</link>
		<comments>http://jrudd.org/wordpress/2008/01/01/local-intranet-problems-with-internet-explorer-7-and-novell/#comments</comments>
		<pubDate>Tue, 01 Jan 2008 00:36:43 +0000</pubDate>
		<dc:creator>James Rudd</dc:creator>
				<category><![CDATA[Novell]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Access]]></category>
		<category><![CDATA[ConsoleOne]]></category>
		<category><![CDATA[Group Policy]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[UNC]]></category>
		<category><![CDATA[Zenworks]]></category>

		<guid isPermaLink="false">http://jrudd.org/wordpress/2008/01/01/local-intranet-problems-with-internet-explorer-7-and-novell/</guid>
		<description><![CDATA[When you install Internet Explorer 7 (IE7) on Windows XP or Windows Server 2003 it may display a security warning when you access applications and files stored on Novell drive mappings if it does not consider them part of your local intranet. It may also prevent MS Access from opening databases from the network as <a href='http://jrudd.org/wordpress/2008/01/01/local-intranet-problems-with-internet-explorer-7-and-novell/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://jrudd.org/wordpress/wp-content/uploads/2007/12/zonemap1.png" target="_blank" title="Open File - Security Warning" rel="lightbox[32]"><img src="http://jrudd.org/wordpress/wp-content/uploads/2007/12/zonemap1.thumbnail.png" title="Open File - Security Warning" alt="Open File - Security Warning" class="imageright" height="93" width="128" /></a> When you install Internet Explorer 7 (IE7) on Windows XP or Windows Server 2003 it may display a security warning when you access applications and files stored on Novell drive mappings if it does not consider them part of your local intranet.<br />
It may also prevent MS Access from opening databases from the network as they are considered a security threat.</p>
<p>To see if your mapped drive is considered as either <em>Internet </em>or <em>Local Intranet</em>: first make sure Status Bar is on (View -&gt; Status Bar), then browse to a sub folder of drive and look in lower right hand corner. <img src="http://jrudd.org/wordpress/wp-content/uploads/2007/12/zonemap6.png" alt="Zone Internet" /> or <img src="http://jrudd.org/wordpress/wp-content/uploads/2007/12/zonemap5.png" alt="Zone Intranet" /></p>
<h2>Testing Security Settings or Configure for Individual PC</h2>
<ol>
<li>Open the &#8220;Internet Options&#8221; control panel</li>
<li>Click Security Tab, Local Intranet, Sites</li>
<li>Untick <em>Automatically detect intranet network</em> then tick <em>Include all local (intranet) sites not listed in other zones</em> and <em>Include all network paths (UNC)</em>. <a href="http://jrudd.org/wordpress/wp-content/uploads/2007/12/zonemap3.png" title="Local Intranet Detection settings" target="_blank" rel="lightbox[32]"><img src="http://jrudd.org/wordpress/wp-content/uploads/2007/12/zonemap3.thumbnail.png" alt="Local Intranet Detection settings" align="right" height="71" width="128" /></a>I find these are the minimum required. However I find these still occasionally don&#8217;t work so I add the server names and server IP range to intranet list.</li>
<li>Click Advanced and add the names and IPs of your servers. This should be in form <em>MyServer</em>, and IP ranges as <em>10.1.1.2-10</em>.<a href="http://jrudd.org/wordpress/wp-content/uploads/2007/12/zonemap4.png" title="Local Intranet Add Sites to Zone" target="_blank" rel="lightbox[32]"><img src="http://jrudd.org/wordpress/wp-content/uploads/2007/12/zonemap4.thumbnail.png" alt="Local Intranet Add Sites to Zone" align="right" height="113" width="128" /></a></li>
<li>Browse to network location and check if Explorer shows Local Intranet in lower right of screen.<br />
Check if files and applications now open without requiring verification.</li>
</ol>
<h2>Deploying Settings using Group Policies</h2>
<p>If performing the above has fixed the problem you probably need to deploy these settings to all users, which can be done using Group Policies.</p>
<ol>
<li>Open the Group Policy for machines affected (this may just be local GPEdit.msc on a terminal server or the Zenworks Workstation Policy in ConsoleOne).</li>
<li>Make sure the IE7 version of inetres.adm is loaded (~2.3MB). If not it can be download from <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=11ab3e81-6462-4fda-8ee5-fcb8264c44b1&amp;displaylang=en" target="_blank" title="Administrative Templates for Internet Explorer 7 for Windows">MS IE7 ADM.</a></li>
<li>Go to <em>Computer Configuration</em> -&gt; <em>Windows Components</em> -&gt; <em>Internet Explorer</em> -&gt; <em>Internet Control Panel</em> -&gt; <em>Security Page</em> and set the following:
<ul>
<li>Site to Zone Assignment List:<a href="http://jrudd.org/wordpress/wp-content/uploads/2007/12/zonemap7.png" title="Group Policy Zone Assignments" rel="lightbox[32]"><img src="http://jrudd.org/wordpress/wp-content/uploads/2007/12/zonemap7.thumbnail.png" title="Group Policy Zone Assignments" alt="Group Policy Zone Assignments" align="right" height="114" width="128" /></a><br />
Add your server names with a value of 1 to list.<br />
You can add your server IP range with name &#8220;10.x.y.1-30&#8243; and value of 1.<br />
You may want to add the Windows Update entries with a value of 2.</p>
<pre>http://*.windowsupdate.microsoft.com

http://windowsupdate.microsoft.com

*.windowsupdate.com
update.microsoft.com</pre>
</li>
<li>Note: Adding items to the Zone Assignment List prevents desktop users adding trusted sites themselves.</li>
<li>Disable <em>Turn on Automatic detection of intranet</em> as this only works with Active Directory.</li>
<li>Enable <em>Include all local (intranet) sites not listed in other zones</em> and <em>Include all network paths (UNC)</em></li>
</ul>
</li>
<li>Exit Group Policy editor</li>
</ol>
<p>Other resources:</p>
<ul>
<li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=11ab3e81-6462-4fda-8ee5-fcb8264c44b1&amp;displaylang=en" target="_blank" title="Administrative Templates for Internet Explorer 7 for Windows">MS Admin Templates for Internet Explorer 7</a></li>
<li><a href="http://www.vexentricity.com/?p=61" target="_blank" title="IE7 and Intranets | Vexentricity ">IE7 and Intranets | Vexentricity</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jrudd.org/wordpress/2008/01/01/local-intranet-problems-with-internet-explorer-7-and-novell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XMing X Server</title>
		<link>http://jrudd.org/wordpress/2007/11/17/xming-x-server/</link>
		<comments>http://jrudd.org/wordpress/2007/11/17/xming-x-server/#comments</comments>
		<pubDate>Sat, 17 Nov 2007 05:56:24 +0000</pubDate>
		<dc:creator>James Rudd</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Utilities]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[X server]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://jrudd.org/wordpress/2007/11/17/xming-x-server/</guid>
		<description><![CDATA[This is a free X Server that is great for managing Linux servers using SSH and PuTTY from a Windows PC. http://www.straightrunning.com/XmingNotes/ I wrote an article at Cool Solutions on Remote Management using SSH and X-Forwarding that gives some idea of its use.]]></description>
			<content:encoded><![CDATA[<p> This is a free X Server that is great for managing Linux servers using SSH and PuTTY from a Windows PC.</p>
<p><a href="http://www.straightrunning.com/XmingNotes/" target="_blank">http://www.straightrunning.com/XmingNotes/</a></p>
<p>I wrote an  article at Cool Solutions on <a href="http://www.novell.com/coolsolutions/feature/19258.html" title="Remote Management using SSH and X-Forwarding" target="_blank">Remote Management using SSH and X-Forwarding</a> that gives some idea of its use.</p>
]]></content:encoded>
			<wfw:commentRss>http://jrudd.org/wordpress/2007/11/17/xming-x-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
