<?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; microsoft</title>
	<atom:link href="http://jrudd.org/wordpress/tag/microsoft/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>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>Access-based Enumeration</title>
		<link>http://jrudd.org/wordpress/2008/05/06/access-based-enumeration/</link>
		<comments>http://jrudd.org/wordpress/2008/05/06/access-based-enumeration/#comments</comments>
		<pubDate>Tue, 06 May 2008 07:55:25 +0000</pubDate>
		<dc:creator>James Rudd</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Access-based]]></category>
		<category><![CDATA[Enumeration]]></category>
		<category><![CDATA[Folder]]></category>
		<category><![CDATA[management tools]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[Novell]]></category>
		<category><![CDATA[School]]></category>
		<category><![CDATA[school situation]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[windows server 2003 r2]]></category>
		<category><![CDATA[WindowsNetworking]]></category>

		<guid isPermaLink="false">http://jrudd.org/wordpress/?p=40</guid>
		<description><![CDATA[A great new feature in Windows Server 2003 is Access-based Enumeration (ABE). What ABE does is hide any file or folder that a user does not have access to. So for example the folder where you store all your users home drives, would usually appear jam packed with folders, most of which would return an <a href='http://jrudd.org/wordpress/2008/05/06/access-based-enumeration/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>A great new feature in Windows Server 2003 is <a href="http://www.microsoft.com/windowsserver2003/techinfo/overview/abe.mspx">Access-based Enumeration</a> (ABE).</p>
<p>What ABE does is hide any file or folder that a user does not have access to. So for example the folder where you store all your users home drives, would usually appear jam packed with folders, most of which would return an <em>Access Denied</em> error. However, with ABE installed users would only see the folders they have access to, usually their own.</p>
<p>This is great especially if you are coming from a Novell background where this is the standard behaviour. It is also very useful in a school situation to keep the students from seeing things they shouldn&#8217;t.</p>
<p>To use ABE you need to download the management tools from <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=04A563D9-78D9-4342-A485-B030AC442084&amp;displaylang=en">Microsoft ABE Management Tools</a>, then after installation either enable it on all shares or bring up properties and manually add it to shares.</p>
<p>A better description and walk through is available <a href="http://www.windowsnetworking.com/articles_tutorials/Implementing-Access-Based-Enumeration-Windows-Server-2003.html">WindowsNetworking: Implementing Access-Based Enumeration in Windows Server 2003 R2</a></p>
<p>Links in this post:</p>
<ul>
<li><a href="http://www.microsoft.com/windowsserver2003/techinfo/overview/abe.mspx">Windows Server 2003 Access-based Enumeration Overview</a></li>
<li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=04A563D9-78D9-4342-A485-B030AC442084&amp;displaylang=en">Download Server 2003 Access-based Enumeration</a></li>
<li><a href="http://www.windowsnetworking.com/articles_tutorials/Implementing-Access-Based-Enumeration-Windows-Server-2003.html">Implementing Access-Based Enumeration in Windows Server 2003 R2</a></li>
</ul>
<p><a href="http://www.microsoft.com/windowsserver2003/techinfo/overview/abe.mspx" target="_blank"></a></p>
<p><a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=04A563D9-78D9-4342-A485-B030AC442084&amp;displaylang=en" target="_blank"></a></p>
<p><a href="http://www.windowsnetworking.com/articles_tutorials/Implementing-Access-Based-Enumeration-Windows-Server-2003.html" target="_blank"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://jrudd.org/wordpress/2008/05/06/access-based-enumeration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
