<?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>Kreslavsky IT blog &#187; Directory Users</title>
	<atom:link href="http://www.kreslavsky.com/tag/directory-users/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kreslavsky.com</link>
	<description>News, guides, and tips to antivirus programmes, scripts, and security</description>
	<lastBuildDate>Sun, 29 Jan 2012 04:57:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Create Group Using PowerShell ADUC, dsadd or admod</title>
		<link>http://www.kreslavsky.com/2009/03/widows-2003-2008-ad-create-group-aduc-dsadd-admod-powershell.html</link>
		<comments>http://www.kreslavsky.com/2009/03/widows-2003-2008-ad-create-group-aduc-dsadd-admod-powershell.html#comments</comments>
		<pubDate>Mon, 23 Mar 2009 18:37:30 +0000</pubDate>
		<dc:creator>Gil Kreslavsky</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Server 2003]]></category>
		<category><![CDATA[Server 2008]]></category>
		<category><![CDATA[Command Line Interface]]></category>
		<category><![CDATA[create group active directory]]></category>
		<category><![CDATA[create group script]]></category>
		<category><![CDATA[Create group via powershell]]></category>
		<category><![CDATA[Directory Users]]></category>
		<category><![CDATA[Dn]]></category>
		<category><![CDATA[Finance Users]]></category>
		<category><![CDATA[Global Distribution Group]]></category>
		<category><![CDATA[Global Domain]]></category>
		<category><![CDATA[Global Security]]></category>
		<category><![CDATA[Graphical User Interface]]></category>
		<category><![CDATA[Group Description]]></category>
		<category><![CDATA[Group Type]]></category>
		<category><![CDATA[Left Pane]]></category>
		<category><![CDATA[Local Security]]></category>
		<category><![CDATA[Numeric Value]]></category>
		<category><![CDATA[Objectclass]]></category>
		<category><![CDATA[Parent Container]]></category>
		<category><![CDATA[Security Group]]></category>
		<category><![CDATA[Universal Distribution]]></category>
		<category><![CDATA[Universal Security]]></category>

		<guid isPermaLink="false">http://www.kreslavsky.com/2009/03/widows-2003-2008-ad-create-group-aduc-dsadd-admod-powershell.html</guid>
		<description><![CDATA[Tweet Creating a Group Using a graphical user interface Open the Active Directory Users and Computers . In the left pane, browse to the parent container of the new group, right-click on it, and select New Group. Enter the name of the group and select the group type (global, domain local, or universal) and group type (security or distribution). Click OK. Using dsadd in command-line interface dsadd group &#8220;&#60;GroupDN&#62;&#8221; -scope &#60;GroupScope&#62; -secgrp yes&#124;no -desc &#8220;&#60;GroupDesc&#62;&#8220; Where &#60;GroupDN&#62; replace with DN of the group , Where &#60;GroupScope&#62; use one of the above l – for domain local g – for global u – for universal Where –secgroup yes if the group is a security group no for any other Where desc fill group description Using dsadd in command-line interface &#62; admod -b &#8220;&#60;GroupDN&#62;&#8221; objectClass::group groupType:: &#8220;&#60;GroupType&#62;&#8221; sAMAccountName::&#8221;&#60;Pre-Windows2000Name&#62;&#8221; -add Example: We will create global security group called &#8220;Accounting&#8221; in Accounting OU in testdomain.com &#62; dsadd group "cn=Accounting,ou=Accounting,dc=testdomain,dc=com"-scope global- secgrp yes &#62; admod-b "cn=Accounting,ou=Accounting,dc=testdomain,dc=com" groupType::-2147483646 sAMAccountName::"Finance Users" -add When using AdMod, you need specify the numeric value for group type, These values are predefined in Active Directory Universal Distribution Group Value – “8” Universal Security Group Value &#8211; “–2147483640” Domain Local Distribution Group Value &#8211; “4” Domain Local Security Group Value &#8211; “–2147483644” Global Distribution Group Value &#8211; “2” Global Security Group Value &#8211; “–2147483646” Create Group Using VBScript Example bellow shows how to create a global security group. ' ------ CONFIGURATION ------ strGroupParentDN = "&#60;GroupParentDN&#62;" ' e.g. ou=Groups,dc=testdomain,dc=com strGroupName = "&#60;GroupName&#62;" ' e.g. Accounting strGroupDescr = "&#60;GroupDesc&#62;" ' e.g. Accounting group ' ------ END CONFIGURATION --------- ' Constants taken from ADS_GROUP_TYPE_ENUM Const ADS_GROUP_TYPE_GLOBAL_GROUP = 2 Const ADS_GROUP_TYPE_DOMAIN_LOCAL_GROUP = 4 Const ADS_GROUP_TYPE_SECURITY_ENABLED = -2147483648 Const ADS_GROUP_TYPE_UNIVERSAL_GROUP = 8 set objOU = GetObject("LDAP://" &#38; strGroupParentDN) set objGroup = objOU.Create("group","cn=" &#38; strGroupName) objGroup.Put "groupType", ADS_GROUP_TYPE_GLOBAL_GROUP _ Or ADS_GROUP_TYPE_SECURITY_ENABLED objGroup.Put "sAMAccountName", strGroupName objGroup.Put "description", strGroupDescr objGroup.SetInfo Create Group Using PowerShell To create a group using the Quest cmdlets, use the following syntax: new-QADGroup -ParentContainer &#8216;&#60;Parent OU DN&#62;&#8216; -name &#8216;&#60;GroupName&#62;&#8216; -samaccountname &#8216;&#60;GroupName&#62; -grouptype &#8216;Distribution&#8217; -groupscope &#8216;Universal&#8217; Where &#60;Parent OU DN&#62; – Fill OU DN Where &#60;GroupName&#62; – Fill Group Name After –grouptype – set group type (Distribution or Security) After –groupscope – set if (Universal, Domain Local)]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.kreslavsky.com%2F2009%2F03%2Fwidows-2003-2008-ad-create-group-aduc-dsadd-admod-powershell.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.kreslavsky.com/2009/03/widows-2003-2008-ad-create-group-aduc-dsadd-admod-powershell.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.kreslavsky.com/2009/03/widows-2003-2008-ad-create-group-aduc-dsadd-admod-powershell.html"  data-text="Create Group Using PowerShell ADUC, dsadd or admod" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.kreslavsky.com/2009/03/widows-2003-2008-ad-create-group-aduc-dsadd-admod-powershell.html" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://www.kreslavsky.com/2009/03/widows-2003-2008-ad-create-group-aduc-dsadd-admod-powershell.html"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><h4>Creating a Group Using a graphical user interface</h4>
<ol>
<li>Open the Active Directory Users and Computers .</li>
<li>In the left pane, browse to the parent container of the new group, right-click on it, and select New Group.</li>
<li>Enter the name of the group and select the group type (global, domain local, or universal) and group type (security or distribution).</li>
<li>Click OK.</li>
</ol>
<p><a name="using_a_command-line_interface-id143"></a></p>
<h4>Using dsadd in command-line interface</h4>
<p><em>dsadd group &#8220;<tt>&lt;GroupDN&gt;</tt>&#8221; -scope <tt>&lt;GroupScope&gt;</tt> -secgrp yes|no -desc &#8220;<tt>&lt;GroupDesc&gt;</tt>&#8220;</em></p>
<p>Where <tt><em>&lt;GroupDN&gt;</em></tt><a name="of the"></a> replace with DN of the group ,</p>
<p>Where <tt><em>&lt;GroupScope&gt;</em></tt> use one of the above</p>
<ul>
<li><tt>l – for domain local</tt></li>
<li><tt>g – for global</tt></li>
<li><tt>u<span style="font-family: Lucida Sans Unicode;"> – for </span></tt>universal</li>
</ul>
<p><tt>Where –secgroup</tt></p>
<ul>
<li><tt>yes</tt> if the group is a security group</li>
<li>n<tt>o</tt> for any other</li>
</ul>
<p>Where<tt> desc</tt> fill group description</p>
<h4>Using dsadd in command-line interface</h4>
<p><em>&gt; admod -b &#8220;<tt>&lt;GroupDN&gt;</tt>&#8221; objectClass::group groupType::<br />
&#8220;<tt>&lt;GroupType&gt;</tt>&#8221; sAMAccountName::&#8221;<tt>&lt;Pre-Windows2000Name&gt;</tt>&#8221; -add</em></p>
<p><strong>Example:</strong> We will create global security group called &#8220;Accounting&#8221; in Accounting OU in testdomain.com<a name="can use"></a></p>
<pre>&gt; dsadd group "cn=Accounting,ou=Accounting,dc=testdomain,dc=com"-scope global-
secgrp yes</pre>
<pre>&gt; admod-b "cn=Accounting,ou=Accounting,dc=testdomain,dc=com" groupType::-2147483646
sAMAccountName::"Finance Users" -add</pre>
<p><a name="case of"></a>When using AdMod, you need specify the numeric value for group type, These values are predefined in Active Directory</p>
<p><a name="numeric_values_for_group_types"></a></p>
<p>Universal Distribution Group Value – “8”</p>
<p>Universal Security Group Value &#8211; “–2147483640”</p>
<p><a name="Distribution Group"></a>Domain Local Distribution Group Value &#8211; “4”</p>
<p><a name="Security Group"></a>Domain Local Security Group Value &#8211; “–2147483644”</p>
<p>Global Distribution Group Value &#8211; “2”</p>
<p>Global Security Group Value &#8211; “–2147483646”</p>
<h4>Create Group Using VBScript</h4>
<pre><strong>Example bellow shows how to create a global security group.</strong></pre>
<table style="width: 546px;" border="0" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td width="544" valign="top">
<pre>' ------  CONFIGURATION ------
strGroupParentDN = "<tt><em>&lt;GroupParentDN&gt;</em></tt>" ' e.g. ou=Groups,dc=testdomain,dc=com
strGroupName     = "<tt><em>&lt;GroupName&gt;</em></tt>"     ' e.g. Accounting
strGroupDescr    = "<tt><em>&lt;GroupDesc&gt;</em></tt>"     ' e.g. Accounting group
' ------ END CONFIGURATION ---------</pre>
<pre>' Constants taken from ADS_GROUP_TYPE_ENUM
Const ADS_GROUP_TYPE_GLOBAL_GROUP       = 2
Const ADS_GROUP_TYPE_DOMAIN_LOCAL_GROUP = 4
Const ADS_GROUP_TYPE_SECURITY_ENABLED   = -2147483648
Const ADS_GROUP_TYPE_UNIVERSAL_GROUP    = 8</pre>
<pre>set objOU = GetObject("LDAP://" &amp; strGroupParentDN)
set objGroup = objOU.Create("group","cn=" &amp; strGroupName)
objGroup.Put "groupType", ADS_GROUP_TYPE_GLOBAL_GROUP _
                         Or ADS_GROUP_TYPE_SECURITY_ENABLED
objGroup.Put "sAMAccountName", strGroupName
objGroup.Put "description", strGroupDescr
objGroup.SetInfo</pre>
</td>
</tr>
</tbody>
</table>
<p><a name="using_powershell-id116"></a></p>
<h4>Create Group Using PowerShell</h4>
<p><a name="Quest cmdlets"></a>To create a group using the Quest cmdlets, use the following syntax:<a name="I_indexterm7_d1e28870"></a></p>
<table style="width: 549px;" border="0" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td width="547" valign="top">new-QADGroup -ParentContainer &#8216;<tt><em>&lt;Parent OU DN&gt;</em></tt>&#8216; -name &#8216;<tt><em>&lt;GroupName&gt;</em></tt>&#8216; -samaccountname &#8216;<tt><em>&lt;GroupName&gt;</em></tt> -grouptype &#8216;Distribution&#8217; -groupscope &#8216;Universal&#8217;</td>
</tr>
</tbody>
</table>
<pre>Where <tt><em>&lt;Parent OU DN&gt; – Fill OU DN</em></tt></pre>
<pre><tt></tt>Where <tt><em>&lt;GroupName&gt;</em></tt> – Fill Group Name</pre>
<pre>After –grouptype – set group type (Distribution or Security)</pre>
<pre>After –groupscope – set if (Universal, Domain Local)</pre>
<p><a name="the following"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kreslavsky.com/2009/03/widows-2003-2008-ad-create-group-aduc-dsadd-admod-powershell.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to delete a protected OU in ADUC Windows 2008</title>
		<link>http://www.kreslavsky.com/2009/03/how-to-delete-a-protected-ou-in-aduc-windows-2008.html</link>
		<comments>http://www.kreslavsky.com/2009/03/how-to-delete-a-protected-ou-in-aduc-windows-2008.html#comments</comments>
		<pubDate>Sun, 15 Mar 2009 13:40:23 +0000</pubDate>
		<dc:creator>Gil Kreslavsky</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Accidental Deletion]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Active Directory Users and Computers]]></category>
		<category><![CDATA[Aduc]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Creation]]></category>
		<category><![CDATA[Delete]]></category>
		<category><![CDATA[Directory Users]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[New Feature]]></category>
		<category><![CDATA[Privileges]]></category>
		<category><![CDATA[Protect object from accidental deletion]]></category>
		<category><![CDATA[Windows 2008]]></category>

		<guid isPermaLink="false">http://www.kreslavsky.com/?p=624</guid>
		<description><![CDATA[Tweet In Windows 2008 Active Directory Users and Computers Microsoft activated new feature &#8220;Protect Container from accidential deletion&#8221; During OU creation you have the ability to mark OU as protected from accidental deletion , and if you try to delete OU you will receive the following error &#8220;You do not have sufficient privileges to delete &#8220;OU Name&#8221; , or this object is protected from accidential deletion&#8221; To unlock OU from accidential deleting protection do the following actions Open Active Directory Users and Computers Go to View Mark with &#8220;V&#8221;  &#8221; Advanced Features&#8221; Right click protected OU Go to  Properties Navigate to &#8220;Object&#8221; Tab Remove the &#8220;V&#8221; from &#8220;Protect object from accidental deletion &#8220;]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.kreslavsky.com%2F2009%2F03%2Fhow-to-delete-a-protected-ou-in-aduc-windows-2008.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.kreslavsky.com/2009/03/how-to-delete-a-protected-ou-in-aduc-windows-2008.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.kreslavsky.com/2009/03/how-to-delete-a-protected-ou-in-aduc-windows-2008.html"  data-text="How to delete a protected OU in ADUC Windows 2008" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.kreslavsky.com/2009/03/how-to-delete-a-protected-ou-in-aduc-windows-2008.html" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://www.kreslavsky.com/2009/03/how-to-delete-a-protected-ou-in-aduc-windows-2008.html"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>In Windows 2008 Active Directory Users and Computers Microsoft activated new feature &#8220;Protect Container from accidential deletion&#8221;<br />
During OU creation you have the ability to mark OU as protected from accidental deletion , and if you try to delete OU you will receive the following error <span style="color: #ff0000;"><em>&#8220;You do not have sufficient privileges to delete &#8220;OU Name&#8221; , or this object is protected from accidential deletion&#8221;</em></span><br />
<a href="http://www.kreslavsky.com/wp-content/uploads/2009/03/dont-have.jpg"><img class="alignleft size-full wp-image-625" title="you dont-have " src="http://www.kreslavsky.com/wp-content/uploads/2009/03/dont-have.jpg" alt="you dont-have " width="466" height="170" /></a></p>
<p>To unlock OU from accidential deleting protection do the following actions</p>
<ul>
<li>Open Active Directory Users and Computers</li>
<li>Go to View</li>
<li>Mark with &#8220;V&#8221;  &#8221; Advanced Features&#8221;</li>
<li>Right click protected OU</li>
<li>Go to  Properties</li>
<li>Navigate to &#8220;Object&#8221; Tab</li>
<li>Remove the &#8220;V&#8221; from &#8220;Protect object from accidental deletion &#8220;</li>
</ul>
<p><a href="http://www.kreslavsky.com/wp-content/uploads/2009/03/delete-ou.jpg"><img class="alignleft size-full wp-image-626" title="Protect Ou from accidential deletion " src="http://www.kreslavsky.com/wp-content/uploads/2009/03/delete-ou.jpg" alt="Protect Ou from accidential deletion " width="414" height="460" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kreslavsky.com/2009/03/how-to-delete-a-protected-ou-in-aduc-windows-2008.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Add custom field to ADUC- Employee ID</title>
		<link>http://www.kreslavsky.com/2008/11/add-custom-field-to-aduc-employee-id.html</link>
		<comments>http://www.kreslavsky.com/2008/11/add-custom-field-to-aduc-employee-id.html#comments</comments>
		<pubDate>Sun, 23 Nov 2008 07:00:33 +0000</pubDate>
		<dc:creator>Gil Kreslavsky</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Adsi]]></category>
		<category><![CDATA[Attribute]]></category>
		<category><![CDATA[Comma]]></category>
		<category><![CDATA[Copy And Paste]]></category>
		<category><![CDATA[Current Value]]></category>
		<category><![CDATA[Directory Users]]></category>
		<category><![CDATA[Domain Controllers]]></category>
		<category><![CDATA[Employee Id Number]]></category>
		<category><![CDATA[Hand Pane]]></category>
		<category><![CDATA[Left Hand]]></category>
		<category><![CDATA[Line Amp]]></category>
		<category><![CDATA[Menu Name]]></category>
		<category><![CDATA[New Menu]]></category>
		<category><![CDATA[Node]]></category>
		<category><![CDATA[Notepad]]></category>
		<category><![CDATA[Replication]]></category>
		<category><![CDATA[Select Properties]]></category>
		<category><![CDATA[Vbcrlf]]></category>
		<category><![CDATA[Vbs File]]></category>
		<category><![CDATA[windows server 2003]]></category>

		<guid isPermaLink="false">http://www.kreslavsky.com/?p=339</guid>
		<description><![CDATA[Tweet How to add Employee ID to Active Directory Users and Computers 1. Open ADSI Edit 2. Expand the CN=Configuration node and go to CN=DisplaySpecifiers, CN=409. Select the 409 node in the left hand pane. 3.In the right-hand pane, select the CN=user-Display object. Right click and select Properties. 4.Select the adminContextMenu attribute and click Edit. 5. We now need to add the value that will be used to create the additional menu item and direct it to the employeeID.vbs script. The syntax is very important. Be sure to include the comma at the beginning and after the menu name (Employee-ID). Add the following syntax to the Value to Add: line: ,&#38;Employee-ID,servernamesharenameemployeeID.vbs (your VBS file must be stored on shared location in order to allow all domain controllers to access it) 6.Change the servername and sharename items to reflect your current environment and then click Add. 7.Click OK to accept the changes and close ADSI Edit. 8.Allow some time for replication to populate the changes throughout the directory. 9.Open ADUC and select a user. Right click on the user and notice the new menu item now available. 10. Select Employee-ID to launch the script from within the ADUC. From here we can either enter a new value for the employeeID attribute for the user or hit Cancel to leave the current value intact. (Note: If no value is present in the field, then the attribute value is empty for that user.) VBSscript &#8211; just copy and paste in notepad, than save as employeeID.vbs and copy to shared folder. Dim objEmployeeID Dim objSelectedUser Dim strNewEmployeeID Set objEmployeeID = Wscript.Arguments Set objSelectedUser = GetObject(objEmployeeID(0)) strNewEmployeeID = InputBox(&#8220;Employee ID: &#8221; &#38; objSelectedUser.employeeID &#38; vbCRLF _ &#38; vbCRLF _ &#38; &#8220;To enter a new Employee ID number,&#8221; _ &#38; &#8221; type it into the text box&#8221; _ &#38; &#8221; below and click OK.&#8221;) if strNewEmployeeID &#60;&#62; &#8220;&#8221; Then objSelectedUser.Put &#8220;employeeID&#8221;,strNewEmployeeID end if objSelectedUser.SetInfo WScript.Quit When you right click on user in ADUC you will see new field (EmployeeID)]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.kreslavsky.com%2F2008%2F11%2Fadd-custom-field-to-aduc-employee-id.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.kreslavsky.com/2008/11/add-custom-field-to-aduc-employee-id.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.kreslavsky.com/2008/11/add-custom-field-to-aduc-employee-id.html"  data-text="Add custom field to ADUC- Employee ID" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.kreslavsky.com/2008/11/add-custom-field-to-aduc-employee-id.html" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://www.kreslavsky.com/2008/11/add-custom-field-to-aduc-employee-id.html"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><h2>How to add Employee ID to Active Directory Users and Computers</h2>
<p>1. Open ADSI Edit<br />
2. Expand the CN=Configuration node and go to CN=DisplaySpecifiers, CN=409. Select the 409 node in the left hand pane.<br />
3.In the right-hand pane, select the CN=user-Display object. Right click and select Properties.<br />
4.Select the adminContextMenu attribute and click Edit.<br />
5. We now need to add the value that will be used to create the additional menu item and direct it to the employeeID.vbs script. The syntax is very important. Be sure to include the comma at the beginning and after the menu name (Employee-ID). Add the following syntax to the Value to Add: line:<br />
<strong>,&amp;Employee-ID,</strong>servernamesharenameemployeeID.vbs (your VBS file must be stored on shared location in order to allow all domain controllers to access it)<br />
6.Change the servername and sharename items to reflect your current environment and then click Add.<br />
7.Click OK to accept the changes and close ADSI Edit.<br />
8.Allow some time for replication to populate the changes throughout the directory.<br />
9.Open ADUC and select a user. Right click on the user and notice the new menu item now available.<br />
10. Select Employee-ID to launch the script from within the ADUC. From here we can either enter a new value for the employeeID attribute for the user or hit Cancel to leave the current value intact. (Note: If no value is present in the field, then the attribute value is empty for that user.)</p>
<p>VBSscript &#8211; just copy and paste in notepad, than save as employeeID.vbs and copy to shared folder.</p>
<p>Dim objEmployeeID<br />
Dim objSelectedUser<br />
Dim strNewEmployeeID<br />
Set objEmployeeID = Wscript.Arguments<br />
Set objSelectedUser = GetObject(objEmployeeID(0))<br />
strNewEmployeeID = InputBox(&#8220;Employee ID: &#8221; &amp; objSelectedUser.employeeID &amp; vbCRLF _<br />
&amp; vbCRLF _<br />
&amp; &#8220;To enter a new Employee ID number,&#8221; _<br />
&amp; &#8221; type it into the text box&#8221; _<br />
&amp; &#8221; below and click OK.&#8221;)<br />
if strNewEmployeeID &lt;&gt; &#8220;&#8221; Then<br />
objSelectedUser.Put &#8220;employeeID&#8221;,strNewEmployeeID<br />
end if<br />
objSelectedUser.SetInfo<br />
WScript.Quit<br />
<strong>When you right click on user in ADUC you will see new field (EmployeeID)</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kreslavsky.com/2008/11/add-custom-field-to-aduc-employee-id.html/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Active Directory Saved Queries Templates</title>
		<link>http://www.kreslavsky.com/2008/08/active-directory-saved-queries-templates.html</link>
		<comments>http://www.kreslavsky.com/2008/08/active-directory-saved-queries-templates.html#comments</comments>
		<pubDate>Thu, 21 Aug 2008 09:10:16 +0000</pubDate>
		<dc:creator>Gil Kreslavsky</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Amp]]></category>
		<category><![CDATA[Arrow]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Custom Search]]></category>
		<category><![CDATA[Directory Users]]></category>
		<category><![CDATA[Domain Level]]></category>
		<category><![CDATA[Global Group]]></category>
		<category><![CDATA[Group Member]]></category>
		<category><![CDATA[Ldap Query]]></category>
		<category><![CDATA[Local Group]]></category>
		<category><![CDATA[Passwords]]></category>
		<category><![CDATA[Profile Path]]></category>
		<category><![CDATA[Queries]]></category>
		<category><![CDATA[Query String]]></category>
		<category><![CDATA[Server Query]]></category>
		<category><![CDATA[Templates]]></category>
		<category><![CDATA[Universal Group]]></category>
		<category><![CDATA[User Accounts]]></category>
		<category><![CDATA[Word Admin]]></category>

		<guid isPermaLink="false">http://www.kreslavsky.com/?p=275</guid>
		<description><![CDATA[Tweet In order to configure and use server query do the following. Go to Active Directory Users and Computers: Right click the Saved Queries folder and select New, Query. Enter an appropriate Name and Description. Make sure the query root is set to the domain level you want the query to pertain to. Select the Include subcontainers check box if you want the query to search all subcontainers. Click Define Query. In the Find dialog box, click the Find drop-down arrow and select Custom Search. On the Advanced tab, enter your LDAP query string into the Enter LDAP query box. Click OK twice. Active Directory Saved Queries Templates Find Groups that contains the word admin (objectcategory=group)(samaccountname=*admin*) Find users who have admin in description field (objectcategory=person)(description=*admin*) Find all Universal Groups (groupType:1.2.840.113556.1.4.803:=8) Empty Groups with No Members (objectCategory=group)(!member=*) Finds all groups defined as a Global Group, a Domain Local Group, or a Universal Group (groupType:1.2.840.113556.1.4.804:=14) Find all User with the name Bob (objectcategory=person)(samaccountname=*Bob*) Find user accounts with passwords set to never expire (objectCategory=person)(objectClass=user)(userAccountControl:1.2.840.113556.1.4.803:=65536) Find all users that never log in to domain (&#38;(&#38;(objectCategory=person)(objectClass=user))(&#124;(lastLogon=0)(!(lastLogon=*)))) Find user accounts with no log on script (objectcategory=person)(!scriptPath=*) Find user accounts with no profile path (objectcategory=person)(!profilepath=*) Finds non disabled accounts that must change their password at next logon (objectCategory=person)(objectClass=user)(pwdLastSet=0)(!useraccountcontrol:1.2.840.113556.1.4.803:=2) Finds all disabled accounts in active directory (objectCategory=person)(objectClass=user)(!useraccountcontrol:1.2.840.113556.1.4.803:=2) Finds all locked out accounts (objectCategory=person)(objectClass=user)(useraccountcontrol:1.2.840.113556.1.4.803:=16) Finds Domain Local Groups (groupType:1.2.840.113556.1.4.803:=4) Finds all Users with Email Address set (objectcategory=person)(mail=*) Finds all Users with no Email Address (objectcategory=person)(!mail=*) Find all Users, Groups or Contacts where Company or Description is Contractors (&#124;(objectcategory=user)(objectcategory=group)(objectcategory=contact))(&#124;(description=North*)(company=Contractors*)) Find all Users with Mobile numbers 712 or 155 (objectcategory=user)(&#124;(mobile=712*)(mobile=155*)) Find all Users with Dial-In permissions (objectCategory=user)(msNPAllowDialin=TRUE) Find All printers with Color printing capability Note: server name must be changed (&#38;(&#38;(&#38;(uncName=*Servername*)(objectCategory=printQueue)(printColor=TRUE)))) Find Users Mailboxes Overriding Exchange Size Limit Policies (&#38;(&#38;(&#38;objectCategory=user)(mDBUseDefaults=FALSE))) Find all Users that need to change password on next login. (&#38;(objectCategory=user)(pwdLastSet=0)) Find all Users that are almost Locked-Out Notice the &#8220;&#62;=&#8221; that means &#8220;Greater than or equal to&#8221;. (objectCategory=user)(badPwdCount&#62;=2) Find all Computers that do not have a Description (objectCategory=computer)(!description=*) Find all users with Hidden Mailboxes (&#38;(objectCategory=person)(objectClass=user)(msExchHideFromAddressLists=TRUE)) Find all Windows 2000 SP4 computers (&#38;(&#38;(&#38;(objectCategory=Computer)(operatingSystem=Windows 2000 Professional)(operatingSystemServicePack=Service Pack 4)))) Find all Windows XP SP2 computers (&#38;(&#38;(&#38;(&#38;(&#38;(&#38;(&#38;(objectCategory=Computer)(operatingSystem=Windows XP Professional)(operatingSystemServicePack=Service Pack 2)))))))) Find all Windows XP SP3 computers (&#38;(&#38;(&#38;(&#38;(&#38;(&#38;(&#38;(objectCategory=Computer)(operatingSystem=Windows XP Professional)(operatingSystemServicePack=Service Pack 3)))))))) Find all Vista SP1 computers (&#38;(&#38;(&#38;(&#38;(sAMAccountType=805306369)(objectCategory=computer)(operatingSystem=Windows Vista*)(operatingSystemServicePack=Service Pack 1))))) Find All Workstations (sAMAccountType=805306369) Find all 2003 Servers Non-DCs (&#38;(&#38;(&#38;(samAccountType=805306369)(!(primaryGroupId=516)))(objectCategory=computer)(operatingSystem=Windows Server 2003*))) Find all 2003 Servers &#8211; DCs (&#38;(&#38;(&#38;(samAccountType=805306369)(primaryGroupID=516)(objectCategory=computer)(operatingSystem=Windows Server 2003*)))) Find all Server 2008 (&#38;(&#38;(&#38;(&#38;(samAccountType=805306369)(!(primaryGroupId=516)))(objectCategory=computer)(operatingSystem=Windows Server 2008*)))) Related Blogs Related Blogs on Active Directory History of Active Directory Whitepaper: VMware and VSS: Application Backup and Recovery]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.kreslavsky.com%2F2008%2F08%2Factive-directory-saved-queries-templates.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.kreslavsky.com/2008/08/active-directory-saved-queries-templates.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.kreslavsky.com/2008/08/active-directory-saved-queries-templates.html"  data-text="Active Directory Saved Queries Templates" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.kreslavsky.com/2008/08/active-directory-saved-queries-templates.html" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://www.kreslavsky.com/2008/08/active-directory-saved-queries-templates.html"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>In order to configure and use server query do the following.<br />
Go to Active Directory Users and Computers:</p>
<ol>
<li>Right click the Saved Queries folder and select New, Query.</li>
<li>Enter an appropriate Name and Description.</li>
<li>Make sure the query root is set to the domain level you want the query to pertain to.</li>
<li>Select the Include subcontainers check box if you want the query to search all subcontainers.</li>
<li>Click Define Query.</li>
<li>In the Find dialog box, click the Find drop-down arrow and select Custom Search.</li>
<li>On the Advanced tab, enter your LDAP query string into the Enter LDAP query box.</li>
<li>Click OK twice.</li>
<li>Active Directory Saved Queries Templates</li>
</ol>
<p><strong>Find Groups that contains the word admin</strong><br />
(objectcategory=group)(samaccountname=*admin*)</p>
<p><strong>Find users who have admin in description field</strong><br />
(objectcategory=person)(description=*admin*)</p>
<p><strong>Find all Universal Groups </strong><br />
(groupType:1.2.840.113556.1.4.803:=8)</p>
<p><strong>Empty Groups with No Members </strong><br />
(objectCategory=group)(!member=*)<br />
<strong>Finds all groups defined as a Global Group, a Domain Local Group, or a Universal Group</strong><br />
(groupType:1.2.840.113556.1.4.804:=14)</p>
<p><strong>Find all User with the name Bob</strong><br />
(objectcategory=person)(samaccountname=*Bob*)</p>
<p><strong>Find user accounts with passwords set to never expire</strong><br />
(objectCategory=person)(objectClass=user)(userAccountControl:1.2.840.113556.1.4.803:=65536)</p>
<p><strong>Find all users that never log in to domain</strong><br />
(&amp;(&amp;(objectCategory=person)(objectClass=user))(|(lastLogon=0)(!(lastLogon=*))))</p>
<p><strong>Find user accounts with no log on script</strong><br />
(objectcategory=person)(!scriptPath=*)</p>
<p><strong>Find user accounts with no profile path</strong><br />
(objectcategory=person)(!profilepath=*)</p>
<p><strong>Finds non disabled accounts that must change their password at next logon</strong><br />
(objectCategory=person)(objectClass=user)(pwdLastSet=0)(!useraccountcontrol:1.2.840.113556.1.4.803:=2)</p>
<p><strong>Finds all disabled accounts in active directory</strong><br />
(objectCategory=person)(objectClass=user)(!useraccountcontrol:1.2.840.113556.1.4.803:=2)</p>
<p><strong>Finds all locked out accounts</strong><br />
(objectCategory=person)(objectClass=user)(useraccountcontrol:1.2.840.113556.1.4.803:=16)</p>
<p><strong>Finds Domain Local Group</strong>s<br />
(groupType:1.2.840.113556.1.4.803:=4)</p>
<p><strong>Finds all Users with Email Address set</strong><br />
(objectcategory=person)(mail=*)</p>
<p><strong>Finds all Users with no Email Address</strong><br />
(objectcategory=person)(!mail=*)</p>
<p><strong>Find all Users, Groups or Contacts where Company or Description is Contractors</strong><br />
(|(objectcategory=user)(objectcategory=group)(objectcategory=contact))(|(description=North*)(company=Contractors*))</p>
<p><strong>Find all Users with Mobile numbers 712 or 155</strong><br />
(objectcategory=user)(|(mobile=712*)(mobile=155*))</p>
<p><strong>Find all Users with Dial-In permissions</strong><br />
(objectCategory=user)(msNPAllowDialin=TRUE)</p>
<p><strong>Find All printers with Color printing capability</strong><br />
Note: server name must be changed<br />
(&amp;(&amp;(&amp;(uncName=*Servername*)(objectCategory=printQueue)(printColor=TRUE))))</p>
<p><strong>Find Users Mailboxes Overriding Exchange Size Limit Policies</strong><br />
(&amp;(&amp;(&amp;objectCategory=user)(mDBUseDefaults=FALSE)))</p>
<p><strong>Find all Users that need to change password on next login.</strong><br />
(&amp;(objectCategory=user)(pwdLastSet=0))</p>
<p><strong>Find all Users that are almost Locked-Out</strong><br />
Notice the &#8220;&gt;=&#8221; that means &#8220;Greater than or equal to&#8221;.<br />
(objectCategory=user)(badPwdCount&gt;=2)</p>
<p><strong>Find all Computers that do not have a Description</strong><br />
(objectCategory=computer)(!description=*)</p>
<p><strong>Find all users with Hidden Mailboxes</strong><br />
(&amp;(objectCategory=person)(objectClass=user)(msExchHideFromAddressLists=TRUE))</p>
<p><strong>Find all Windows 2000 SP4 computers</strong><br />
(&amp;(&amp;(&amp;(objectCategory=Computer)(operatingSystem=Windows 2000 Professional)(operatingSystemServicePack=Service Pack 4))))</p>
<p><strong>Find all Windows XP SP2 computers</strong><br />
(&amp;(&amp;(&amp;(&amp;(&amp;(&amp;(&amp;(objectCategory=Computer)(operatingSystem=Windows XP Professional)(operatingSystemServicePack=Service Pack 2))))))))</p>
<p><strong>Find all Windows XP SP3 computers</strong><br />
(&amp;(&amp;(&amp;(&amp;(&amp;(&amp;(&amp;(objectCategory=Computer)(operatingSystem=Windows XP Professional)(operatingSystemServicePack=Service Pack 3))))))))</p>
<p><strong>Find all Vista SP1 computers</strong><br />
(&amp;(&amp;(&amp;(&amp;(sAMAccountType=805306369)(objectCategory=computer)(operatingSystem=Windows Vista*)(operatingSystemServicePack=Service Pack 1)))))</p>
<p><strong>Find All Workstations</strong><br />
(sAMAccountType=805306369)</p>
<p><strong>Find all 2003 Servers Non-DCs</strong><br />
(&amp;(&amp;(&amp;(samAccountType=805306369)(!(primaryGroupId=516)))(objectCategory=computer)(operatingSystem=Windows Server 2003*)))</p>
<p><strong>Find all 2003 Servers &#8211; DCs</strong><br />
(&amp;(&amp;(&amp;(samAccountType=805306369)(primaryGroupID=516)(objectCategory=computer)(operatingSystem=Windows Server 2003*))))</p>
<p><strong>Find all Server 2008</strong><br />
(&amp;(&amp;(&amp;(&amp;(samAccountType=805306369)(!(primaryGroupId=516)))(objectCategory=computer)(operatingSystem=Windows Server 2008*))))</p>
<h4>Related Blogs</h4>
<ul class="pc_pingback">
<li class="hdl" style="list-style: none;">Related Blogs on <strong>Active Directory</strong></li>
<li><a href="http://www.archiving101.com/?p=133" rel="nofollow">History of <strong>Active Directory</strong></a></li>
<li><a href="http://ictfreak.wordpress.com/2008/08/12/whitepaper-vmware-and-vss-application-backup-and-recovery/" rel="nofollow">Whitepaper: VMware and VSS: Application Backup and Recovery</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.kreslavsky.com/2008/08/active-directory-saved-queries-templates.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How to clean duplicate mailboxes with red X ( Error ID no. c1034ad6)</title>
		<link>http://www.kreslavsky.com/2008/06/how-to-clean-duplicate-mailboxes-with.html</link>
		<comments>http://www.kreslavsky.com/2008/06/how-to-clean-duplicate-mailboxes-with.html#comments</comments>
		<pubDate>Thu, 19 Jun 2008 08:12:00 +0000</pubDate>
		<dc:creator>Gil Kreslavsky</dc:creator>
				<category><![CDATA[Exchange 2003]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Attributes]]></category>
		<category><![CDATA[Clean Duplicate mailboxes]]></category>
		<category><![CDATA[Delete]]></category>
		<category><![CDATA[Directory Users]]></category>
		<category><![CDATA[Error Id]]></category>
		<category><![CDATA[Exchange Tasks]]></category>
		<category><![CDATA[Hotfix]]></category>
		<category><![CDATA[Mailbox]]></category>
		<category><![CDATA[Mailboxes]]></category>
		<category><![CDATA[Microsoft Article]]></category>
		<category><![CDATA[Red X]]></category>
		<category><![CDATA[stub object is left behind after mailbox move]]></category>
		<category><![CDATA[Support Microsoft]]></category>

		<guid isPermaLink="false">http://www.kreslavsky.com/2008/06/how-to-clean-duplicate-mailboxes-with-red-x-error-id-no-c1034ad6/</guid>
		<description><![CDATA[Tweet First let’s understand when it happens. After move of mailboxes between 2 exchange stores some times duplicate mailboxes remain .. When you try to delete them you receive error &#8220;The operation cannot be performed because this mailbox was already reconnected to an existing user.&#8221; ID no. c1034ad6. So to delete the annoying mailbox go to active directory users and computers , select the user that holds both mailboxes run “exchange tasks” and select “remove exchange attributes” then go to duplicate mailbox with red X and reconnect the mailbox. When duplicate mailbox is connected you can delete him. After successful delete purge the red X mailbox and reconnect the old mailbox back.. I also found Microsoft Article related to this issue , seems that the problem is related to Exchange 2003 sp2  installation. You need to obtain hotfix in order to resolve the problem. http://support.microsoft.com/kb/940012]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.kreslavsky.com%2F2008%2F06%2Fhow-to-clean-duplicate-mailboxes-with.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.kreslavsky.com/2008/06/how-to-clean-duplicate-mailboxes-with.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.kreslavsky.com/2008/06/how-to-clean-duplicate-mailboxes-with.html"  data-text="How to clean duplicate mailboxes with red X ( Error ID no. c1034ad6)" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.kreslavsky.com/2008/06/how-to-clean-duplicate-mailboxes-with.html" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://www.kreslavsky.com/2008/06/how-to-clean-duplicate-mailboxes-with.html"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>First let’s understand when it happens. After move of mailboxes between 2 exchange stores some times duplicate mailboxes remain .. When you try to delete them you receive error &#8220;The operation cannot be performed because this mailbox was already reconnected to an existing user.&#8221; ID no. c1034ad6.<br />
So to delete the annoying mailbox go to active directory users and computers , select the user that holds both mailboxes run “exchange tasks” and select “remove exchange attributes” then go to duplicate mailbox with red X and reconnect the mailbox. When duplicate mailbox is connected you can delete him. After successful delete purge the red X mailbox and reconnect the old mailbox back..</p>
<p>I also found Microsoft Article related to this issue , seems that the problem is related to Exchange 2003 sp2  installation. You need to obtain hotfix in order to resolve the problem. <a href="http://support.microsoft.com/kb/940012" target="_blank">http://support.microsoft.com/kb/940012</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kreslavsky.com/2008/06/how-to-clean-duplicate-mailboxes-with.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Delegate user to edit custom fields in user properties (phone numbers , stree etc..)</title>
		<link>http://www.kreslavsky.com/2008/01/delegate-user-to-edit-custom-fields-in.html</link>
		<comments>http://www.kreslavsky.com/2008/01/delegate-user-to-edit-custom-fields-in.html#comments</comments>
		<pubDate>Sun, 27 Jan 2008 10:44:00 +0000</pubDate>
		<dc:creator>Gil Kreslavsky</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Ace]]></category>
		<category><![CDATA[Ads]]></category>
		<category><![CDATA[Amp]]></category>
		<category><![CDATA[Array]]></category>
		<category><![CDATA[Boxes]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Createobject]]></category>
		<category><![CDATA[Delegate Control]]></category>
		<category><![CDATA[Directory Object]]></category>
		<category><![CDATA[Directory Users]]></category>
		<category><![CDATA[Domain Name]]></category>
		<category><![CDATA[Flags]]></category>
		<category><![CDATA[Folder Check]]></category>
		<category><![CDATA[H10]]></category>
		<category><![CDATA[H20]]></category>
		<category><![CDATA[Ldap]]></category>
		<category><![CDATA[Phone Numbers]]></category>
		<category><![CDATA[Setinfo]]></category>
		<category><![CDATA[Trustee]]></category>
		<category><![CDATA[Welcome Screen]]></category>

		<guid isPermaLink="false">http://www.kreslavsky.com/2008/01/delegate-user-to-edit-custom-fields-in-user-properties-phone-numbers-stree-etc/</guid>
		<description><![CDATA[Tweet 1. Run Active Directory Users and Computers. 2. Right-click the container holding the users (or the domain name if you want to delegate all) and hit Delegate Control. 3. Welcome Screen &#8211; hit Next. 4. Users or Groups screen &#8211; click Add and select the person or group to delegate this control to. Click Next. 5. Tasks to Delegate screen &#8211; select &#8220;Create a custom task to delegate&#8221;. Click Next. 6. Active Directory Object Type screen &#8211; Select &#8220;Only the following objects in the folder:&#8221;. Check &#8220;User objects&#8221;. Click Next. 7. Permissions screen &#8211; uncheck &#8220;General&#8221; and check &#8220;Property-specific&#8221;. Check the boxes corresponding to the specific fields you would like the user or group to be able to edit. Click Next. 8. Completing screen &#8211; click Finish. It Also can be done by script. Just change marked with RED Fields Const ADS_ACETYPE_ACCESS_ALLOWED_OBJECT = &#38;H5 Const ADS_RIGHT_DS_READ_PROP = &#38;H10 Const ADS_RIGHT_DS_WRITE_PROP = &#38;H20 Const ADS_FLAG_OBJECT_TYPE_PRESENT = &#38;H1 Const ADS_FLAG_INHERITED_OBJECT_TYPE_PRESENT = &#38;H2 Const ADS_ACEFLAG_INHERIT_ACE = &#38;H2 Set objSdUtil = GetObject(&#8220;LDAP://OU=OU Name,DC=exaple,DC=Com&#8221;) Set objSD = objSdUtil.Get(&#8220;ntSecurityDescriptor&#8221;) Set objDACL = objSD.DiscretionaryACL Set objAce = CreateObject(&#8220;AccessControlEntry&#8221;) objAce.Trustee = &#8220;DomainName.comExample_secretary&#8221; objAce.AceFlags = ADS_ACEFLAG_INHERIT_ACE objAce.AceType = ADS_ACETYPE_ACCESS_ALLOWED_OBJECT objAce.Flags = ADS_FLAG_OBJECT_TYPE_PRESENT OR ADS_FLAG_INHERITED_OBJECT_TYPE_PRESENT objAce.ObjectType = &#8220;{77b5b886-944a-11d1-aebd-0000f80367c1}&#8221; objACE.InheritedObjectType = &#8220;{BF967ABA-0DE6-11D0-A285-00AA003049E2}&#8221; objAce.AccessMask = ADS_RIGHT_DS_READ_PROP OR ADS_RIGHT_DS_WRITE_PROP objDacl.AddAce objAce objSD.DiscretionaryAcl = objDacl objSDUtil.Put &#8220;ntSecurityDescriptor&#8221;, Array(objSD) objSDUtil.SetInfo]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.kreslavsky.com%2F2008%2F01%2Fdelegate-user-to-edit-custom-fields-in.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.kreslavsky.com/2008/01/delegate-user-to-edit-custom-fields-in.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.kreslavsky.com/2008/01/delegate-user-to-edit-custom-fields-in.html"  data-text="Delegate user to edit custom fields in user properties (phone numbers , stree etc..)" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.kreslavsky.com/2008/01/delegate-user-to-edit-custom-fields-in.html" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://www.kreslavsky.com/2008/01/delegate-user-to-edit-custom-fields-in.html"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>1. Run Active Directory Users and Computers.<br />
2. Right-click the container holding the users (or the domain name if you want to delegate all) and hit Delegate Control.<br />
3. Welcome Screen &#8211; hit Next.<br />
4. Users or Groups screen &#8211; click Add and select the person or group to delegate this control to.  Click Next.<br />
5. Tasks to Delegate screen &#8211; select &#8220;Create a custom task to delegate&#8221;. Click Next.<br />
6. Active Directory Object Type screen &#8211; Select &#8220;Only the following objects in the folder:&#8221;.  Check &#8220;User objects&#8221;. Click Next.<br />
7. Permissions screen &#8211; uncheck &#8220;General&#8221; and check &#8220;Property-specific&#8221;. Check the boxes corresponding to the specific fields you would like the user or group to be able to edit.  Click Next.<br />
8. Completing screen &#8211; click Finish.</p>
<p>It Also can be done by script.<br />
Just change marked with RED Fields</p>
<p>Const ADS_ACETYPE_ACCESS_ALLOWED_OBJECT = &amp;H5<br />
Const ADS_RIGHT_DS_READ_PROP = &amp;H10<br />
Const ADS_RIGHT_DS_WRITE_PROP = &amp;H20<br />
Const ADS_FLAG_OBJECT_TYPE_PRESENT = &amp;H1<br />
Const ADS_FLAG_INHERITED_OBJECT_TYPE_PRESENT = &amp;H2<br />
Const ADS_ACEFLAG_INHERIT_ACE = &amp;H2</p>
<p>Set objSdUtil = GetObject<span style="font-weight: bold; color: #ff0000;">(&#8220;LDAP://OU=OU Name,DC=exaple,DC=Com&#8221;)</span><br />
Set objSD = objSdUtil.Get(&#8220;ntSecurityDescriptor&#8221;)<br />
Set objDACL = objSD.DiscretionaryACL</p>
<p>Set objAce = CreateObject(&#8220;AccessControlEntry&#8221;)</p>
<p>objAce.Trustee =<span style="font-weight: bold;"> </span> <span style="font-weight: bold; color: #ff0000;">&#8220;DomainName.comExample_secretary&#8221;</span><br />
objAce.AceFlags = ADS_ACEFLAG_INHERIT_ACE<br />
objAce.AceType = ADS_ACETYPE_ACCESS_ALLOWED_OBJECT<br />
objAce.Flags = ADS_FLAG_OBJECT_TYPE_PRESENT OR ADS_FLAG_INHERITED_OBJECT_TYPE_PRESENT<br />
objAce.ObjectType = &#8220;{77b5b886-944a-11d1-aebd-0000f80367c1}&#8221;<br />
objACE.InheritedObjectType = &#8220;{BF967ABA-0DE6-11D0-A285-00AA003049E2}&#8221;<br />
objAce.AccessMask = ADS_RIGHT_DS_READ_PROP OR ADS_RIGHT_DS_WRITE_PROP<br />
objDacl.AddAce objAce</p>
<p>objSD.DiscretionaryAcl = objDacl</p>
<p>objSDUtil.Put &#8220;ntSecurityDescriptor&#8221;, Array(objSD)<br />
objSDUtil.SetInfo</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kreslavsky.com/2008/01/delegate-user-to-edit-custom-fields-in.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable File And Folder Sharing, via GPO</title>
		<link>http://www.kreslavsky.com/2007/01/disable-file-and-folder-sharing-via-gpo.html</link>
		<comments>http://www.kreslavsky.com/2007/01/disable-file-and-folder-sharing-via-gpo.html#comments</comments>
		<pubDate>Sun, 21 Jan 2007 09:27:00 +0000</pubDate>
		<dc:creator>Gil Kreslavsky</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Server 2003]]></category>
		<category><![CDATA[Click Properties]]></category>
		<category><![CDATA[Computer Configuration]]></category>
		<category><![CDATA[Computer Security]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Configuration Windows]]></category>
		<category><![CDATA[Database Security]]></category>
		<category><![CDATA[Default Domain]]></category>
		<category><![CDATA[Directory Users]]></category>
		<category><![CDATA[Domain Policy]]></category>
		<category><![CDATA[Domain Properties]]></category>
		<category><![CDATA[Exit]]></category>
		<category><![CDATA[File Sharing]]></category>
		<category><![CDATA[Gpo]]></category>
		<category><![CDATA[Group Policy Editor]]></category>
		<category><![CDATA[Group Policy Object]]></category>
		<category><![CDATA[Left Pane]]></category>
		<category><![CDATA[Security Settings]]></category>
		<category><![CDATA[Security Tab]]></category>
		<category><![CDATA[Tabs]]></category>
		<category><![CDATA[Windows 2000]]></category>
		<category><![CDATA[Workstations]]></category>

		<guid isPermaLink="false">http://www.kreslavsky.com/2007/01/disable-file-and-folder-sharing-via-gpo/</guid>
		<description><![CDATA[Tweet To disable the Security tab from Windows 2000/XP Professional-based workstations that are members of a Windows 2000/2003 domain: Start Active Directory Users and Computers. Right-click the domain, and then click Properties . Click the Group Policy tab on the domain properties dialog box to view the default domain policy. Click New . New Group Policy Object should appear in the list of objects. Rename this Policy to Remove Security Tab . Make sure this policy is positioned directly under the default domain policy. Click Remove Security Tab , and then click Edit to start the Group Policy Editor. Expand Computer Configuration, Windows Settings, Security Settings, and then click Registry . Right-click in the left pane, and then click Add Key . Paste the following key in the text box, and then click OK : CLASSES_ROOTCLSID{1F2E5C40-9550-11CE-99D2-00AA006E086C} Note that there may be a delay before you can proceed to the next step, and this is normal. The Database Security Editor appears. You need to add the user or group that you want the Security tab to be removed from. Change the permission on this key for the users and/or groups that you added in the previous step to “Deny Read.” This prevents the user from being able to instantiate the needed components to display the Security and Sharing tabs. Click OK twice to complete the settings and exit the Group Policy Editor. Click New . New Group Policy Object should appear in the list of objects. Rename this Policy to Remove Sharing Tab . Make sure this policy is positioned directly under the default domain policy. Click Remove Security Tab , and then click Edit to start the Group Policy Editor. Expand Computer Configuration, Windows Settings, Security Settings, and then click Registry . Right-click in the left pane, and then click Add Key . Paste the following key in the text box, and then click OK : CLASSES_ROOTCLSID{40dd6e20-7c17-11ce-a804-00aa003ca9f6} Note that there may be a delay before you can proceed to the next step, and this is normal. The Database Security Editor appears. You need to add the user or group that you want the Security tab to be removed from. Change the permission on this key for the users and/or groups that you added in the previous step to “Deny Read.” This prevents the user from being able to instantiate the needed components to display the Security and Sharing tabs. Click OK twice to complete the settings and exit the Group Policy Editor.]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.kreslavsky.com%2F2007%2F01%2Fdisable-file-and-folder-sharing-via-gpo.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.kreslavsky.com/2007/01/disable-file-and-folder-sharing-via-gpo.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.kreslavsky.com/2007/01/disable-file-and-folder-sharing-via-gpo.html"  data-text="Disable File And Folder Sharing, via GPO" data-count="horizontal">Tweet</a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://www.kreslavsky.com/2007/01/disable-file-and-folder-sharing-via-gpo.html" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://www.kreslavsky.com/2007/01/disable-file-and-folder-sharing-via-gpo.html"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><blockquote><p><span style="font-size: 85%; font-family: Arial;">To disable the <strong>Security</strong> tab from Windows 2000/XP Professional-based workstations that are members of a Windows 2000/2003 domain: </span></p>
<ol class="dec">
<li><span style="font-size: 85%; font-family: Arial;">Start Active Directory Users and Computers.<br />
</span></li>
<li><span style="font-size: 85%; font-family: Arial;">Right-click the domain, and then click <strong>Properties</strong> .<br />
</span></li>
<li><span style="font-size: 85%; font-family: Arial;">Click the <strong>Group Policy</strong> tab on the domain properties dialog box to view the default domain policy.<br />
</span></li>
<li><span style="font-size: 85%; font-family: Arial;">Click <strong>New</strong> . <strong>New Group Policy Object</strong> should appear in the list of objects. Rename this Policy to <strong>Remove Security Tab</strong> . Make sure this policy is positioned directly under the default domain policy.<br />
</span></li>
<li><span style="font-size: 85%; font-family: Arial;">Click <strong>Remove Security Tab</strong> , and then click <strong>Edit</strong> to start the Group Policy Editor.<br />
</span></li>
<li><span style="font-size: 85%; font-family: Arial;">Expand Computer Configuration, Windows Settings, Security Settings, and then click <strong>Registry</strong> .<br />
</span></li>
<li><span style="font-size: 85%; font-family: Arial;">Right-click in the left pane, and then click <strong>Add Key</strong> .<br />
</span></li>
<li><span style="font-size: 85%; font-family: Arial;">Paste the following key in the text box, and then click <strong>OK</strong> :<br />
<strong>CLASSES_ROOTCLSID{1F2E5C40-9550-11CE-99D2-00AA006E086C} </strong> </span><span style="font-size: 85%; font-family: Arial;">Note that there may be a delay before you can proceed to the next step, and this is normal.<br />
</span></li>
<li><span style="font-size: 85%; font-family: Arial;">The Database Security Editor appears. You need to add the user or group that you want the <strong>Security</strong> tab to be removed from.<br />
</span></li>
<li><span style="font-size: 85%; font-family: Arial;">Change the permission on this key for the users and/or groups that you added in the previous step to “Deny Read.” This prevents the user from being able to instantiate the needed components to display the <strong>Security</strong> and <strong>Sharing</strong> tabs. Click <strong>OK</strong> twice to complete the settings and exit the Group Policy Editor.<br />
</span></li>
<li><span style="font-size: 85%; font-family: Arial;">Click <strong>New</strong> . <strong>New Group Policy Object</strong> should appear in the list of objects. Rename this Policy to <strong>Remove Sharing Tab</strong> . Make sure this policy is positioned directly under the default domain policy.<br />
</span></li>
<li><span style="font-size: 85%; font-family: Arial;">Click <strong>Remove Security Tab</strong> , and then click <strong>Edit</strong> to start the Group Policy Editor.<br />
</span></li>
<li><span style="font-size: 85%; font-family: Arial;">Expand Computer Configuration, Windows Settings, Security Settings, and then click <strong>Registry</strong> .<br />
</span></li>
<li><span style="font-size: 85%; font-family: Arial;">Right-click in the left pane, and then click <strong>Add Key</strong> .<br />
</span></li>
<li><span style="font-size: 85%; font-family: Arial;">Paste the following key in the text box, and then click <strong>OK</strong> :<br />
</span> <span style="font-size:85%;"><strong><span style="font-family: Arial;">CLASSES_ROOTCLSID{40dd6e20-7c17-11ce-a804-00aa003ca9f6} </span> </strong> </span><span style="font-size: 85%; font-family: Arial;">Note that there may be a delay before you can proceed to the next step, and this is normal.<br />
</span></li>
<li><span style="font-size: 85%; font-family: Arial;">The Database Security Editor appears. You need to add the user or group that you want the <strong>Security</strong> tab to be removed from.<br />
</span></li>
<li><span style="font-size: 85%; font-family: Arial;">Change the permission on this key for the users and/or groups that you added in the previous step to “Deny Read.” This prevents the user from being able to instantiate the needed components to display the <strong>Security</strong> and <strong>Sharing</strong> tabs. Click <strong>OK</strong> twice to complete the settings and exit the Group Policy Editor.</span></li>
</ol>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.kreslavsky.com/2007/01/disable-file-and-folder-sharing-via-gpo.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

