<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Getting IT Right - the unofficial voice of Meteor IT &#187; windows server</title>
	<atom:link href="http://blog.meteorit.co.uk/tag/windows-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.meteorit.co.uk</link>
	<description>Ramblings of a self-confessed geek</description>
	<lastBuildDate>Fri, 03 Sep 2010 17:03:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.meteorit.co.uk' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/f20aaf2e5a61cd42fe07e67a0f2a1c3f?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Getting IT Right - the unofficial voice of Meteor IT &#187; windows server</title>
		<link>http://blog.meteorit.co.uk</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.meteorit.co.uk/osd.xml" title="Getting IT Right - the unofficial voice of Meteor IT" />
	<atom:link rel='hub' href='http://blog.meteorit.co.uk/?pushpress=hub'/>
		<item>
		<title>Group Policy best practice analyser tool available</title>
		<link>http://blog.meteorit.co.uk/2007/08/28/group-policy-best-practice-analyser-tool-available/</link>
		<comments>http://blog.meteorit.co.uk/2007/08/28/group-policy-best-practice-analyser-tool-available/#comments</comments>
		<pubDate>Tue, 28 Aug 2007 21:00:55 +0000</pubDate>
		<dc:creator>Adam Vero</dc:creator>
				<category><![CDATA[Group Policy]]></category>
		<category><![CDATA[Utilities + Tools]]></category>
		<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[GPDBPA]]></category>
		<category><![CDATA[windows server]]></category>

		<guid isPermaLink="false">http://veroblog.wordpress.com/2007/08/28/group-policy-best-practice-analyser-tool-available/</guid>
		<description><![CDATA[I have not yet had a chance to try this out, but still thought it was worth giving people the heads up. The description given on the download page for the Group Policy Best Practice Analyzer for Windows Server 2003 is: The Microsoft Group Policy Diagnostic Best Practice Analyzer (GPDBPA) for Windows XP and Windows [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.meteorit.co.uk&amp;blog=646149&amp;post=78&amp;subd=veroblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have not yet had a chance to try this out, but still thought it was worth giving people the heads up. The description given on the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=47f11b02-8ee4-450b-bf13-880b91ba4566&amp;DisplayLang=en" title="Group Policy Best Practice Analyser 2003 32 bit" target="_blank">download page for the Group Policy Best Practice Analyzer for Windows Server 2003</a> is:</p>
<blockquote><p>The Microsoft Group Policy Diagnostic Best Practice Analyzer (GPDBPA) for Windows XP and Windows Server 2003 is designed to help you identify Group Policy configuration errors or other dependency failures that may prevent settings or features from functioning as expected.</p></blockquote>
<p><span id="more-78"></span></p>
<p>The page also refers to <a href="http://support.microsoft.com/?kbid=940122" title="MS KB 940122" target="_blank">KB 940122</a>, but this does not seem to exist at the time of writing &#8211; either this is an error or the KB has not yet been published.</p>
<p>&lt;edit: In the last two hours this article has now been published. An extract from the introduction:</p>
<blockquote><p>For example, you can use this tool to analyze a Group Policy configuration for the following purposes:</p>
<p>• To search for common configuration errors</p>
<p>• To discover and to diagnose problems</p>
<p>• To collect data for archiving</p></blockquote>
<p>/edit&gt;</p>
<p>Download links below:</p>
<p><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=70e4a971-da91-4d4f-bf92-5c75a84f3742" title="Group Policy best practice analyser XP 32 bit" target="_blank">GPDBPA XP 32 bit</a> (requires WGA validation)</p>
<p><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=317c372c-0fe3-4ad0-be52-2ff3004daef0" title="Group Policy best practice analyser XP 64 bit" target="_blank">GPDBPA XP 64 bit</a></p>
<p><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=47f11b02-8ee4-450b-bf13-880b91ba4566&amp;" title="Group Policy best practice analyser 2003 32 bit" target="_blank">GPDBPA 2003 32 bit</a> (same as link at top of this page)</p>
<p><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=70e0edec-66f7-4499-83b7-4f2009df2314" title="Group Policy best practice analyser 2003 64 bit" target="_blank">GPDBPA 2003 64 bit</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/veroblog.wordpress.com/78/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/veroblog.wordpress.com/78/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/veroblog.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/veroblog.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/veroblog.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/veroblog.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/veroblog.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/veroblog.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/veroblog.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/veroblog.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/veroblog.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/veroblog.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/veroblog.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/veroblog.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/veroblog.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/veroblog.wordpress.com/78/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.meteorit.co.uk&amp;blog=646149&amp;post=78&amp;subd=veroblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.meteorit.co.uk/2007/08/28/group-policy-best-practice-analyser-tool-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/786403437a56d6c7ecd26e885004d2ad?s=96&#38;d=wavatar&#38;r=PG" medium="image">
			<media:title type="html">AdamV</media:title>
		</media:content>
	</item>
		<item>
		<title>Using DSMod to update Active Directory</title>
		<link>http://blog.meteorit.co.uk/2007/01/01/using-dsmod-to-update-many-active-directory-objects-at-once/</link>
		<comments>http://blog.meteorit.co.uk/2007/01/01/using-dsmod-to-update-many-active-directory-objects-at-once/#comments</comments>
		<pubDate>Mon, 01 Jan 2007 10:39:57 +0000</pubDate>
		<dc:creator>Adam Vero</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[AD]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[DSGet]]></category>
		<category><![CDATA[DSMod]]></category>
		<category><![CDATA[DSQuery]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[user account]]></category>
		<category><![CDATA[user details]]></category>
		<category><![CDATA[windows server]]></category>

		<guid isPermaLink="false">http://veroblog.wordpress.com/2007/01/01/using-dsmod-to-update-many-active-directory-objects-at-once/</guid>
		<description><![CDATA[DSMOD foundation course 101 I originally wrote this as an email reply to a colleague&#8217;s question about updating many Active Directory objects in one go, and later thought I could write it up &#8220;tutorial style&#8221;. I still think the DSQuery, DSGet, DSMod functions are underused by even fairly knowledgeable administrators, so here is a beginner&#8217;s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.meteorit.co.uk&amp;blog=646149&amp;post=4&amp;subd=veroblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>DSMOD foundation course 101</strong></p>
<p>I originally wrote this as an email reply to a colleague&#8217;s question about updating many Active Directory objects in one go, and later thought I could write it up &#8220;tutorial style&#8221;. I still think the DSQuery, DSGet, DSMod functions are underused by even fairly knowledgeable administrators, so here is a beginner&#8217;s guide to getting the most of these tools.</p>
<p>This is intended to show the principles for changing many AD objects&#8217; properties in one go. There are lots more clever things you could do with this &#8211; like a lot of command line stuff, the principles are very simple but can be strung together to very powerful end results with a bit of thought and a step-by-step logical approach.</p>
<p>Basically, DSMOD allows you to change many (not all) of the AD properties of an object, usually a user, computer or group. This tutorial discusses users specifically, but the principles extend to other objects.<span id="more-4"></span></p>
<p>It uses the full canononical name for the object ie &#8220;CN=Eliza Doolittle, OU=etc.&#8221; but you don&#8217;t need to worry about that. The way to use it in practice is by using dsquery to do a &#8220;search&#8221; (even if this is for only one object) and pipe the returned results to dsmod, where you change one or more properties of that object.</p>
<p>First try something with dsquery:</p>
<blockquote><p>dsquery user -name Chris* &#8220;OU=Building 1, dc=internal,dc=mycompany,dc=co,dc=uk&#8221;</p></blockquote>
<p>This should give you several results for everyone whose common name matches Chris* (* as wildcard as usual, note that this also matches zero characters so *Chris* would also return these same results even though there is nothing in front of the &#8220;Chris&#8221;, but would also find &#8220;John Christopher&#8221; if he existed)</p>
<p>We can now find users who match certain criteria. Then we can pass the results straight into dsmod to modify the properties. A simple example:</p>
<blockquote><p>dsquery user -samid JHC &#8220;OU=Building 2, dc=internal,dc=mycompany,dc=co,dc=uk&#8221; | dsmod user -tel &#8220;555 &#8211; 112 233&#8243; -u AdminUser -p AdminPassword</p></blockquote>
<p>translation:</p>
<blockquote><p>dsquery &lt;object type = user&gt; where &lt;SAM account&gt; = JHC, in the OU &#8230;(must be full canononical form) pipe the answer into a</p></blockquote>
<blockquote><p>dsmod and modify this &lt;object type = user&gt; &lt;property of object: &#8220;telephone number&#8221;&gt; to be &#8220;555 etc&#8221; &lt;using admin account AdminUser&gt; &lt;password APassword&gt;</p></blockquote>
<p>So, get the CN of this user, then change their telephone number to X. Simple. (By the way your Outlook web access users will love this &#8211; they can get at the internal directory securely, just by looking at the properties of a user in the Address Book, then call someone directly. You could claim you spent all weekend typing in these numbers and get the overtime as well, as long as your PHB does not read this!)</p>
<p>For these kinds of changes where there are lots of unique ones I would usually expect to be using some kind of source list and using excel (or whatever you prefer) to parse the bits together into commands, then copy and paste out to notepad (not even bothering to save as CSV, notepad is dumb enough to just take the results regardless). You can paste straight to a command line, but my general recommendation is always write these as batch files, this way they are easier to edit and re-use, and you can keep exact copies of what you have done as change-control records. This is really useful if you screw up and need to undo (ie overwrite) anything, like changing everyone&#8217;s phone number to the same thing or something equally daft (I&#8217;m admitting nothing at this point!). At least you can see what has been done and know what to change back.</p>
<p>You don&#8217;t need a user name and password if you are running the command window with sufficient privileges. I tend to run the command window with my normal account so I include the admin account details in the command for simplicity.</p>
<p>You need quotes around entries if they contain spaces (in the above example this is true for the OU &#8220;Building 2&#8243; and the telephone number entry. If this was HeadOffice and just the extension number, quotes not required. As far as I can tell, it is all case-INsensitive.</p>
<p>Slightly more advanced example, doing many users at once, let&#8217;s say to change user passwords to enable IT staff to set up profiles for them in a new domain during a weekend office move and migration:</p>
<blockquote><p>dsquery user &#8220;OU=Sales,OU=New York,dc=internal,dc=AcmeCorp,dc=com&#8221; | dsmod user -pwd ChangeThisNow! -u Admin -p APassword</p></blockquote>
<p>This would change password of all users in Sales in New York to &#8220;ChangeThisNow!&#8221;.<br />
Note: the dsquery will return matching objects anywhere in the OU you specify, or further down the OU structure. So, if you start from New York you will get everyone in New York &#8211; I would suggest you do it team by team (ish) to avoid changing things like IT staff or service accounts etc.</p>
<p>Having done that you now have everyone that you want with a changed password. On Sunday night you would possibly want to use:</p>
<blockquote><p>dsquery user &#8220;OU=Sales,OU=New York,dc=internal,dc=AcmeCorp,dc=com&#8221; -limit 300 | dsmod user -mustchpwd yes</p></blockquote>
<p>to force them all to change at next login.</p>
<p>You might also want</p>
<blockquote><p>dsquery user &#8220;OU=Sales,OU=New York,dc=internal,dc=AcmeCorp,dc=com&#8221; -limit 300 | dsmod user -office &#8220;New Building 3&#8243;</p></blockquote>
<p>Note the use of &#8220;-limit 300&#8243; &#8211; default limit is to return 100 results, useful when you are just doing the dsquery on it&#8217;s own to make sure you have the syntax correct. If you miss this off it will do the first 100 and stop, so if you expect more results use this switch at a reasonable level (300, 1000, 100000?)</p>
<p>To get useful help files you can just do the usual /?<br />
eg dsmod /?<br />
or dsmod user /?<br />
or dsquery computer /?<br />
I tend to redirect the output to text files for convenience (they are quite detailed).</p>
<p>DSGET is also useful to get the properties in the first place (perhaps to use in Excel to parse a new batch file together), so use &#8220;dsquery | dsget &#8221; approach to find eg all SAM ID&#8217;s for Sales, or all their email addresses or whatever.</p>
<p>Summary of the most useful (I have found) user properties :<br />
pwd == user password<br />
mustchpwd == force change of password after next logon<br />
tel == telephone number<br />
samid == we know this is domain-unique so it&#8217;s a good start point<br />
profile == path to profile *<br />
hmdir == path to home directory *<br />
hmdrv == drive letter for home directory<br />
fn == first name #<br />
ln == last name #<br />
office == Office location, building name, whatever makes sense in your organisation</p>
<p><strong>*</strong>The wildcard $username$ can be used to insert the SAM id for the -profile or -hmdir parameter. Note the $, rather than % as you would get in a DOS command using an environmental variable</p>
<blockquote><p>dsquery user &#8220;OU=Sales,OU=New York,dc=internal,dc=AcmeCorp,dc=com&#8221; | dsmod user -hmdir \\internal\DfsRoot\homes\$username$ -hmdrv u:</p></blockquote>
<p><strong>#</strong>eg I will use dsget to do an export of samid, lastname and firstname, then in Excel strip the first initial of the first name and use it with surname to lookup this against the telephone list supplied by the Facilities / reception team which only has surname.initial. From there I can create the script to change the telephone number entries. What I would probably do in practice is change ALL New York user telephone numbers to &#8220;unknown&#8221;, then change the ones my script can match perfectly, then we can do a query for all users whose telephone number is still &#8220;unknown&#8221; and do these by hand (eg where their first name Elizabeth is in the phone system as &#8220;B&#8221; for Beth, and for spelling errors etc.)</p>
<p>Very frustrating thing to watch out for, the syntax and names for the properties in dsquery, dsget and dsmod are not identical, eg in dsquery there is no syntax to search for first name alone, you have to use a wildcard-based mask, but having found them you can&#8217;t write directly back to the name, you have to write to first name, surname or display name as required. This is another reason to use batch files &#8211; when it doesn&#8217;t work because the syntax is wrong you can more easily change it and re-run.</p>
<p>Have fun! (?) I would reckon the amount of time you spend learning this just for any one-off exercise of changing all the passwords or telephone numbers will pay for itself straight away. You then get to reap more rewards down the line for free!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/veroblog.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/veroblog.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/veroblog.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/veroblog.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/veroblog.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/veroblog.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/veroblog.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/veroblog.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/veroblog.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/veroblog.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/veroblog.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/veroblog.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/veroblog.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/veroblog.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/veroblog.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/veroblog.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.meteorit.co.uk&amp;blog=646149&amp;post=4&amp;subd=veroblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.meteorit.co.uk/2007/01/01/using-dsmod-to-update-many-active-directory-objects-at-once/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/786403437a56d6c7ecd26e885004d2ad?s=96&#38;d=wavatar&#38;r=PG" medium="image">
			<media:title type="html">AdamV</media:title>
		</media:content>
	</item>
	</channel>
</rss>