<?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; Adsi</title>
	<atom:link href="http://www.kreslavsky.com/tag/adsi/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>Manage mobile phone option is missing on users</title>
		<link>http://www.kreslavsky.com/2011/02/manage-mobile-phone-option-is-missing-on-users.html</link>
		<comments>http://www.kreslavsky.com/2011/02/manage-mobile-phone-option-is-missing-on-users.html#comments</comments>
		<pubDate>Tue, 15 Feb 2011 10:44:28 +0000</pubDate>
		<dc:creator>Gil Kreslavsky</dc:creator>
				<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Active Sync]]></category>
		<category><![CDATA[Adsi]]></category>
		<category><![CDATA[Mobile access]]></category>
		<category><![CDATA[Mobile Data]]></category>
		<category><![CDATA[Mobile Phone]]></category>
		<category><![CDATA[Partnership]]></category>
		<category><![CDATA[Phone Option]]></category>

		<guid isPermaLink="false">http://www.kreslavsky.com/2011/02/manage-mobile-phone-option-is-missing-on-users.html</guid>
		<description><![CDATA[Tweet &#160; Manage mobile phone option gets you the ability to &#34;Remove mobile phone partnership&#34; and &#34;perform a remote wipe to clear mobile phone data.” If this option is missing run ADSI edit, locate problematic user in user properties find msExchMobileMailboxFlags and set to 1]]></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%2F2011%2F02%2Fmanage-mobile-phone-option-is-missing-on-users.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/2011/02/manage-mobile-phone-option-is-missing-on-users.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/2011/02/manage-mobile-phone-option-is-missing-on-users.html"  data-text="Manage mobile phone option is missing on users" 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/2011/02/manage-mobile-phone-option-is-missing-on-users.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/2011/02/manage-mobile-phone-option-is-missing-on-users.html"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>&#160;</p>
<p>Manage mobile phone option gets you the ability to &quot;Remove mobile phone partnership&quot; and &quot;perform a remote wipe to clear mobile phone data.”</p>
<p>If this option is missing run ADSI edit, locate problematic user in user properties find <strong>msExchMobileMailboxFlags</strong> and set to 1</p>
<p><a href="http://www.kreslavsky.com/wp-content/uploads/2011/02/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.kreslavsky.com/wp-content/uploads/2011/02/image_thumb.png" width="406" height="352" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kreslavsky.com/2011/02/manage-mobile-phone-option-is-missing-on-users.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rename all Domain Local Administrator Username Via Script</title>
		<link>http://www.kreslavsky.com/2009/03/rename-all-domain-local-administrator-username-via-script.html</link>
		<comments>http://www.kreslavsky.com/2009/03/rename-all-domain-local-administrator-username-via-script.html#comments</comments>
		<pubDate>Fri, 20 Mar 2009 16:48:25 +0000</pubDate>
		<dc:creator>Gil Kreslavsky</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Server 2008]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[AD]]></category>
		<category><![CDATA[Administrator Account]]></category>
		<category><![CDATA[Adsi]]></category>
		<category><![CDATA[Local Admin]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Winnt]]></category>

		<guid isPermaLink="false">http://www.kreslavsky.com/?p=692</guid>
		<description><![CDATA[Tweet Use this PowerShell script to rename Local Administrator Account on a list of remote machines. #$erroractionpreference = &#8220;SilentlyContinue&#8221; $a = New-Object -comobject Excel.Application $a.visible = $True $b = $a.Workbooks.Add() $c = $b.Worksheets.Item(1) $c.Cells.Item(1,1) = &#8220;Machine Name&#8221; $c.Cells.Item(1,2) = &#8220;Account Renamed&#8221; $c.Cells.Item(1,3) = &#8220;Report Time Stamp&#8221; $d = $c.UsedRange $d.Interior.ColorIndex = 19 $d.Font.ColorIndex = 11 $d.Font.Bold = $True $intRow = 2 foreach ($strComputer in get-content C:MachineList.Txt) { $c.Cells.Item($intRow,1) = $strComputer.ToUpper() # Using .NET method to ping test the servers $ping = new-object System.Net.NetworkInformation.Ping $Reply = $ping.send($strComputer) if($Reply.status -eq &#8220;success&#8221;) { $admin=[adsi](&#8220;WinNT://&#8221; + $strComputer + &#8220;/administrator, user&#8221;) #This is the one line change $admin.psbase.rename(&#8220;whatever&#8221;) $pwage = $admin.passwordage If($pwage -ne $null) { $c.Cells.Item($intRow,2).Interior.ColorIndex = 4 $c.Cells.Item($intRow,2) = &#8220;Yes&#8221; } Else { $c.Cells.Item($intRow,2).Interior.ColorIndex = 3 $c.Cells.Item($intRow,2) = &#8220;No&#8221; } } Else { $c.Cells.Item($intRow,2).Interior.ColorIndex = 3 $c.Cells.Item($intRow,2) = &#8220;Not Pingable&#8221; } $c.Cells.Item($intRow,3) = Get-Date $Reply = &#8220;&#8221; $pwage = &#8220;&#8221; $intRow = $intRow + 1 } $d.EntireColumn.AutoFit() cls Source:http://myitforum.com/cs2/blogs/yli628/]]></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%2Frename-all-domain-local-administrator-username-via-script.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/rename-all-domain-local-administrator-username-via-script.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/rename-all-domain-local-administrator-username-via-script.html"  data-text="Rename all Domain Local Administrator Username Via Script" 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/rename-all-domain-local-administrator-username-via-script.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/rename-all-domain-local-administrator-username-via-script.html"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>Use this PowerShell script to rename Local Administrator Account on a list of remote machines.</p>
<table style="width: 400px;" border="0" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td width="400" valign="top">#$erroractionpreference = &#8220;SilentlyContinue&#8221;<br />
$a = New-Object -comobject Excel.Application<br />
$a.visible = $True<br />
$b = $a.Workbooks.Add()<br />
$c = $b.Worksheets.Item(1)<br />
$c.Cells.Item(1,1) = &#8220;Machine Name&#8221;<br />
$c.Cells.Item(1,2) = &#8220;Account Renamed&#8221;<br />
$c.Cells.Item(1,3) = &#8220;Report Time Stamp&#8221;<br />
$d = $c.UsedRange<br />
$d.Interior.ColorIndex = 19<br />
$d.Font.ColorIndex = 11<br />
$d.Font.Bold = $True<br />
$intRow = 2<br />
foreach ($strComputer in get-content C:MachineList.Txt)<br />
{<br />
$c.Cells.Item($intRow,1) = $strComputer.ToUpper()<br />
# Using .NET method to ping test the servers<br />
$ping = new-object System.Net.NetworkInformation.Ping<br />
$Reply = $ping.send($strComputer)<br />
if($Reply.status -eq &#8220;success&#8221;)<br />
{<br />
$admin=[adsi](&#8220;WinNT://&#8221; + $strComputer + &#8220;/administrator, user&#8221;)<br />
#This is the one line change<br />
$admin.psbase.rename(&#8220;whatever&#8221;)<br />
$pwage = $admin.passwordage<br />
If($pwage -ne $null)<br />
{<br />
$c.Cells.Item($intRow,2).Interior.ColorIndex = 4<br />
$c.Cells.Item($intRow,2) = &#8220;Yes&#8221;<br />
}<br />
Else<br />
{<br />
$c.Cells.Item($intRow,2).Interior.ColorIndex = 3<br />
$c.Cells.Item($intRow,2) = &#8220;No&#8221;<br />
}<br />
}<br />
Else<br />
{<br />
$c.Cells.Item($intRow,2).Interior.ColorIndex = 3<br />
$c.Cells.Item($intRow,2) = &#8220;Not Pingable&#8221;<br />
}<br />
$c.Cells.Item($intRow,3) = Get-Date<br />
$Reply = &#8220;&#8221;<br />
$pwage = &#8220;&#8221;<br />
$intRow = $intRow + 1<br />
}<br />
$d.EntireColumn.AutoFit()<br />
cls</td>
</tr>
</tbody>
</table>
<p>Source:<a title="http://myitforum.com/cs2/blogs/yli628/" href="http://myitforum.com/cs2/blogs/yli628/">http://myitforum.com/cs2/blogs/yli628/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kreslavsky.com/2009/03/rename-all-domain-local-administrator-username-via-script.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Find user group membership Powershell script</title>
		<link>http://www.kreslavsky.com/2009/03/find-user-group-membership-powershell-script.html</link>
		<comments>http://www.kreslavsky.com/2009/03/find-user-group-membership-powershell-script.html#comments</comments>
		<pubDate>Fri, 20 Mar 2009 16:18:53 +0000</pubDate>
		<dc:creator>Gil Kreslavsky</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Server 2008]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Adsi]]></category>
		<category><![CDATA[Check Domain]]></category>
		<category><![CDATA[Directory Root]]></category>
		<category><![CDATA[Group Membership]]></category>
		<category><![CDATA[Groups]]></category>
		<category><![CDATA[Ldap]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[User Group]]></category>

		<guid isPermaLink="false">http://www.kreslavsky.com/?p=683</guid>
		<description><![CDATA[Tweet Use this script to check user group membership in Windows Domain Active Directory $root=([adsi]&#8220;&#8221;).distinguishedName $ou=[adsi](&#8220;LDAP://ou=x,ou=y,ou=z,&#8221;+$root) # fill  with user  CN “Common Name” $user=$ou.psbase.children.find(&#8220;cn=tartetCN &#8220;) $groups = $user.memberof foreach($group in $groups) { $strGroup = $group.split(&#8216;,&#8217;)[0] $strGroup = $strGroup.split(&#8216;=&#8217;)[1] $strGroup }]]></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%2Ffind-user-group-membership-powershell-script.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/find-user-group-membership-powershell-script.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/find-user-group-membership-powershell-script.html"  data-text="Find user group membership Powershell script" 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/find-user-group-membership-powershell-script.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/find-user-group-membership-powershell-script.html"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><h3>Use this script to check user group membership in Windows Domain Active Directory</h3>
<table style="width: 400px;" border="0" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td width="400" valign="top">$root=([adsi]&#8220;&#8221;).distinguishedName<br />
$ou=[adsi](&#8220;LDAP://ou=x,ou=y,ou=z,&#8221;+$root)</p>
<p># fill  with user  CN “Common Name”<br />
$user=$ou.psbase.children.find(&#8220;cn=tartetCN &#8220;)<br />
$groups = $user.memberof<br />
foreach($group in $groups)<br />
{<br />
$strGroup = $group.split(&#8216;,&#8217;)[0]<br />
$strGroup = $strGroup.split(&#8216;=&#8217;)[1]<br />
$strGroup<br />
}</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.kreslavsky.com/2009/03/find-user-group-membership-powershell-script.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MMC Shortcuts &#8211; Management Tools</title>
		<link>http://www.kreslavsky.com/2009/01/mmc-shortcuts-management-tools.html</link>
		<comments>http://www.kreslavsky.com/2009/01/mmc-shortcuts-management-tools.html#comments</comments>
		<pubDate>Thu, 29 Jan 2009 13:06:49 +0000</pubDate>
		<dc:creator>Gil Kreslavsky</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Server 2003]]></category>
		<category><![CDATA[Server 2008]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[Windows XP]]></category>
		<category><![CDATA[Adsi]]></category>
		<category><![CDATA[Certificates]]></category>
		<category><![CDATA[Component Services]]></category>
		<category><![CDATA[Computer Management]]></category>
		<category><![CDATA[Device Manager]]></category>
		<category><![CDATA[Disk Defragmenter]]></category>
		<category><![CDATA[Disk Management]]></category>
		<category><![CDATA[Folders]]></category>
		<category><![CDATA[Indexing Service]]></category>
		<category><![CDATA[Local Security]]></category>
		<category><![CDATA[Management Infrastructure]]></category>
		<category><![CDATA[Management Tools]]></category>
		<category><![CDATA[Msc Services]]></category>
		<category><![CDATA[Removable Storage]]></category>
		<category><![CDATA[Security Manager]]></category>
		<category><![CDATA[Security Settings]]></category>
		<category><![CDATA[Shortcuts]]></category>
		<category><![CDATA[Sid]]></category>
		<category><![CDATA[Sidewalk]]></category>
		<category><![CDATA[Windows Management]]></category>

		<guid isPermaLink="false">http://www.kreslavsky.com/?p=518</guid>
		<description><![CDATA[Tweet adsiedit.msc ADSI Edit sidewalk.msc SID Security Manager certmgr.msc Certificates ciadv.msc Indexing Service compmgmt.msc Computer Management devmgmt.msc Device Manager dfrg.msc Disk Defragmenter diskmgmt.msc Disk Management eventvwr.msc Event Viewer fsmgmt.msc Shared Folders gpedit.msc Group Policy lusrmgr.msc Local Users and Groups ntmsmgr.msc Removable Storage ntmsoprq.msc Removable Storage Operator Requests perfmon.msc Performance rsop.msc Resultant Set of Policy secpol.msc Local Security Settings services.msc Services wmimgmt.msc Windows Management Infrastructure (WMI) comexp.msc Component Services]]></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%2F01%2Fmmc-shortcuts-management-tools.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/01/mmc-shortcuts-management-tools.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/01/mmc-shortcuts-management-tools.html"  data-text="MMC Shortcuts &#8211; Management Tools" 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/01/mmc-shortcuts-management-tools.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/01/mmc-shortcuts-management-tools.html"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>adsiedit.msc ADSI Edit<br />
sidewalk.msc SID Security Manager<br />
certmgr.msc Certificates<br />
ciadv.msc Indexing Service<br />
compmgmt.msc Computer Management<br />
devmgmt.msc Device Manager<br />
dfrg.msc Disk Defragmenter<br />
diskmgmt.msc Disk Management<br />
eventvwr.msc Event Viewer<br />
fsmgmt.msc Shared Folders<br />
gpedit.msc Group Policy<br />
lusrmgr.msc Local Users and Groups<br />
ntmsmgr.msc Removable Storage<br />
ntmsoprq.msc Removable Storage Operator Requests<br />
perfmon.msc Performance<br />
rsop.msc Resultant Set of Policy<br />
secpol.msc Local Security Settings<br />
services.msc Services<br />
wmimgmt.msc Windows Management Infrastructure (WMI)<br />
comexp.msc Component Services</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kreslavsky.com/2009/01/mmc-shortcuts-management-tools.html/feed</wfw:commentRss>
		<slash:comments>0</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>Exchange 2003 Event log ID:8206 with 0&#215;80150856  Error</title>
		<link>http://www.kreslavsky.com/2008/07/exchange-2003-event-log-id8206-with-0x80150856-error.html</link>
		<comments>http://www.kreslavsky.com/2008/07/exchange-2003-event-log-id8206-with-0x80150856-error.html#comments</comments>
		<pubDate>Wed, 09 Jul 2008 18:20:55 +0000</pubDate>
		<dc:creator>Gil Kreslavsky</dc:creator>
				<category><![CDATA[Exchange 2003]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Outlook 2002 XP]]></category>
		<category><![CDATA[Outlook 2003]]></category>
		<category><![CDATA[0x80150856]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Administrative Group]]></category>
		<category><![CDATA[Administrative Groups]]></category>
		<category><![CDATA[Adsi]]></category>
		<category><![CDATA[Attribute]]></category>
		<category><![CDATA[Attributes]]></category>
		<category><![CDATA[Click Properties]]></category>
		<category><![CDATA[Clipboard]]></category>
		<category><![CDATA[Cn Services]]></category>
		<category><![CDATA[Configuration Container]]></category>
		<category><![CDATA[Directory Editor]]></category>
		<category><![CDATA[Domainname]]></category>
		<category><![CDATA[Event log ID:8206]]></category>
		<category><![CDATA[Group Properties]]></category>
		<category><![CDATA[Information Store Service]]></category>
		<category><![CDATA[Installation Users]]></category>
		<category><![CDATA[Log Id]]></category>
		<category><![CDATA[Microsoft Exchange Server]]></category>
		<category><![CDATA[Public Folder]]></category>
		<category><![CDATA[Servername]]></category>
		<category><![CDATA[Sp 2]]></category>

		<guid isPermaLink="false">http://www.kreslavsky.com/2008/07/exchange-2003-event-log-id8206-with-0x80150856-error.html</guid>
		<description><![CDATA[Tweet It happens after SP 2 Installation. Users started to receive meetings directly to their calendars without accepting . I used Microsoft ExBPA in order to see if there is any problem and discovered that The site-wide public folder database for administrative group &#8216;Group Name&#8217; has been deleted. . And followed MS Instruction on how to recreate folder back. Open an Active Directory editor, such as ADSI Edit. Locate the public folder information store you want to designate as the Site Folder Server, by expanding the     following nodes in the Configuration container:CN=Configuration,DC=&#60;DomainName&#62;,DC=com, CN=Services, CN=Microsoft Exchange, CN=&#60;OrganizationName&#62;, CN=Administrative Groups, CN=&#60;AdministrativeGroupName&#62; CN=Servers, CN=&#60;ServerName&#62;, CN=InformationStore, CN=&#60;StorageGroupName&#62; Locate the public folder information store you want to designate as the Site Folder Server, by expanding the     following nodes in the Configuration container: In the right pane, right-click CN=&#60;PublicFolderStoreName&#62;, and then click Properties. In the Attributes field, scroll down and select the distinguishedName attribute. Click Edit, and then copy the entire attribute to the Clipboard.Expand the Configuration container, and then expand CN=Configuration,CN=&#60;DomainName&#62;,CN=com, CN=Services, CN=Microsoft Exchange, CN=&#60;OrganizationName&#62;, CN=Administrative Groups Right-click the administrative group you want to modify, and then click Properties. In the Attributes field, scroll down and select the siteFolderServer attribute. Click Edit, and then paste the value for the distinguishedName attribute into the Value field. Double-check the contents of the Value field to ensure the paste was performed correctly, and then click OK to save the change. Click OK to close the Administrative Group properties. Exit the Active Directory editor and restart the Microsoft Exchange Server Information Store service on all Exchange Server computers in the site for the change to take effect. The full article http://technet.microsoft.com/en-us/library/aa996485.aspx Additional resources: http://support.microsoft.com/kb/943721]]></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%2F07%2Fexchange-2003-event-log-id8206-with-0x80150856-error.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/07/exchange-2003-event-log-id8206-with-0x80150856-error.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/07/exchange-2003-event-log-id8206-with-0x80150856-error.html"  data-text="Exchange 2003 Event log ID:8206 with 0&#215;80150856  Error" 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/07/exchange-2003-event-log-id8206-with-0x80150856-error.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/07/exchange-2003-event-log-id8206-with-0x80150856-error.html"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>It happens after SP 2 Installation.<br />
Users started to receive meetings directly to their calendars without accepting .<br />
I used Microsoft ExBPA in order to see if there is any problem and discovered that The site-wide public folder database for administrative group &#8216;Group Name&#8217; has been deleted. .<br />
And followed MS Instruction on how to recreate folder back.</p>
<ol>
<li>Open an Active Directory editor, such as ADSI Edit.</li>
<li>Locate the public folder information store you want to designate as the Site Folder Server, by expanding the     following nodes in the Configuration container:<strong>CN=Configuration,DC=&lt;DomainName&gt;,DC=com, CN=Services, CN=Microsoft Exchange, CN=&lt;OrganizationName&gt;, CN=Administrative Groups, CN=&lt;AdministrativeGroupName&gt; CN=Servers, CN=&lt;ServerName&gt;, CN=InformationStore, CN=&lt;StorageGroupName&gt;</strong></li>
<li>Locate the public folder information store you want to designate as the Site Folder Server, by expanding the     following nodes in the Configuration container:</li>
<li>In the right pane, right-click CN=&lt;PublicFolderStoreName&gt;, and then click Properties.</li>
<li>In the Attributes field, scroll down and select the distinguishedName attribute.</li>
<li>Click Edit, and then copy the entire attribute to the Clipboard.Expand the Configuration container, and then expand <strong>CN=Configuration,CN=&lt;DomainName&gt;,CN=com, CN=Services, CN=Microsoft Exchange, CN=&lt;OrganizationName&gt;, CN=Administrative Groups</strong></li>
<li> Right-click the administrative group you want to modify, and then click Properties.</li>
<li> In the Attributes field, scroll down and select the siteFolderServer attribute.</li>
<li> Click Edit, and then paste the value for the distinguishedName attribute into the Value field.</li>
<li>Double-check the contents of the Value field to ensure the paste was performed correctly, and then click OK to save the change.</li>
<li>Click OK to close the Administrative Group properties.</li>
<li> Exit the Active Directory editor and restart the Microsoft Exchange Server Information Store service on all Exchange Server computers in the site for the change to take effect.</li>
</ol>
<p>The full article http://technet.microsoft.com/en-us/library/aa996485.aspx</p>
<p>Additional resources:</p>
<p><a rel="nofollow" href="http://support.microsoft.com/kb/943721" target="_blank">http://support.microsoft.com/kb/943721</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kreslavsky.com/2008/07/exchange-2003-event-log-id8206-with-0x80150856-error.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

