<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>So, I have to guarantee you that I can recover the contacts in this OU...</title><link>http://blogs.technet.com/exchange/archive/2005/05/18/405107.aspx</link><description>In this post, I wanted to exploit our script capabilities to ease an administrative burden. Manually changing addresses for 100 users is burdensome. Attempting the same for 40,000 users is impractical. The practical side of ldifde; let the tool do the</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Oops Department, Exchange, Clustering, SQL, Windows Security, LCS, Misc.</title><link>http://blogs.technet.com/exchange/archive/2005/05/18/405107.aspx#405110</link><pubDate>Wed, 18 May 2005 20:50:10 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:405110</guid><dc:creator>Windows Server Clustering </dc:creator><description /></item><item><title>re: So, I have to guarantee you that I can recover the contacts in this OU...</title><link>http://blogs.technet.com/exchange/archive/2005/05/18/405107.aspx#405111</link><pubDate>Wed, 18 May 2005 21:04:44 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:405111</guid><dc:creator>Rob Gibson</dc:creator><description>Thanks for the informative article.  I have used LDIFDE/CSVDE for creating AD object backups and to copy them into test lab domains.  One thing that has troubled me with LDIFDE is that there is considerable find/repacing needed to make object updates (versus adds).  Would you happen to have or know of a similar script to modify an LDIF export to alter the 'changetype:' and to add the '-' at the record's end?</description></item><item><title>Perl solution</title><link>http://blogs.technet.com/exchange/archive/2005/05/18/405107.aspx#405113</link><pubDate>Wed, 18 May 2005 21:48:49 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:405113</guid><dc:creator>Gary MacDonald</dc:creator><description>Here are two Perl one-line scripts that illustrate how to manipulate an LDIFDE export file, converting it to an import file.&lt;br&gt;&lt;br&gt;Each of the export files massaged by the scripts below contained only one or more records consisting of the dn: and changetype: fields, separated by a blank line.  The ldifde command that created the export files specified a nonexistent property with the -l parameter so that no properties would be output.&lt;br&gt;&lt;br&gt;The first script adds the msExchMasterAccountSid property with the SELF SID.&lt;br&gt;&lt;br&gt;perl -pe &amp;quot;s/: add/: modify\nadd: msExchMasterAccountSid\nmsExchMasterAccountSid:: AQEAAAAAAAUKAAAA/;s/^$/-\n/;&amp;quot; export.tmp &amp;gt; import.tmp&lt;br&gt;&lt;br&gt;The second scripts deletes the msExchMasterAccountSid property.&lt;br&gt;&lt;br&gt;perl -pe &amp;quot;s/: add/: modify\ndelete: msExchMasterAccountSid/;s/^$/-\n/;&amp;quot; export.tmp &amp;gt; import.tmp&lt;br&gt;&lt;br&gt;The '-' at the end of each record is added with the s/^$/-\n/ substitution.&lt;br&gt;</description></item><item><title>re: So, I have to guarantee you that I can recover the contacts in this OU...</title><link>http://blogs.technet.com/exchange/archive/2005/05/18/405107.aspx#405114</link><pubDate>Wed, 18 May 2005 22:00:17 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:405114</guid><dc:creator>Christian Schindler</dc:creator><description>LDIFDE is a cool tool. But the CSVDE output would be easier to handle in excel - the pitty is that csvde isn't able to modify objects... I always asked myself why this limitation exists... :-(</description></item><item><title>re: So, I have to guarantee you that I can recover the contacts in this OU...</title><link>http://blogs.technet.com/exchange/archive/2005/05/18/405107.aspx#405115</link><pubDate>Wed, 18 May 2005 22:17:05 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:405115</guid><dc:creator>Adam Gates</dc:creator><description>My users have the description field populated with &amp;quot;(07878)&amp;quot; each user has their own employee number. The code is setup to ignore the first &amp;quot;(&amp;quot;.&lt;br&gt;Create a file called DNmapping.bat and drop this into it;&lt;br&gt;&lt;br&gt;echo off&lt;br&gt;@for /F %%I in (%1) DO (&lt;br&gt;@ldifde -f tempout.txt -r &amp;quot;(description=*%%I*)&amp;quot; -l dn&lt;br&gt;@type tempout.txt &amp;gt;&amp;gt; outfile.txt&lt;br&gt;)&lt;br&gt;echo on&lt;br&gt;&lt;br&gt;Create a text file with the employeeIDs like this;&lt;br&gt;07878&lt;br&gt;12345&lt;br&gt;87456&lt;br&gt;&lt;br&gt;From Cmd line run &amp;quot;DNmapping.bat employeeid.txt&amp;quot;&lt;br&gt;LDIFDE will search AD match the number and return the results to the Outfile.txt&lt;br&gt;&lt;br&gt;Thank Dan (Shady) Winter for the simple but useful code!</description></item><item><title>re: So, I have to guarantee you that I can recover the contacts in this OU...</title><link>http://blogs.technet.com/exchange/archive/2005/05/18/405107.aspx#405119</link><pubDate>Wed, 18 May 2005 23:03:56 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:405119</guid><dc:creator>Stu </dc:creator><description>I've seen issues with creating contacts using LDIFDE where you don't set the legacyExchangeDN setting (this is in Exchange mixed mode).  Any comment on that?</description></item><item><title>Weekend reading</title><link>http://blogs.technet.com/exchange/archive/2005/05/18/405107.aspx#405179</link><pubDate>Fri, 20 May 2005 11:38:19 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:405179</guid><dc:creator>subject: exchange</dc:creator><description /></item><item><title>re: So, I have to guarantee you that I can recover the contacts in this OU...</title><link>http://blogs.technet.com/exchange/archive/2005/05/18/405107.aspx#405333</link><pubDate>Wed, 25 May 2005 11:32:12 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:405333</guid><dc:creator>Safwan</dc:creator><description>I have been trying to use LDIFDE to export all the attributes of a specific object in AD, I know that by using the –L switch, you can specify which attributes you want to dump and that omitting the switch, LDIFDE should dump all the attributes, but it does not seem to be doing that. If I compare the LDIFDE dump to the attributes of the same object using ADSIEdit, I see a lot of other attributes that don’t show-up in the LDIFDE dump. If I use the –L switch with LDIFDE and specify one of the attributes the originally did not show-up in the dump, LDIFDE dumps it just fine. Can you guys know why LDIFDE will not dump all the attributes of an object?</description></item><item><title>Oops Department, Exchange, Clustering, SQL, Windows Security, LCS, Misc.</title><link>http://blogs.technet.com/exchange/archive/2005/05/18/405107.aspx#406367</link><pubDate>Tue, 14 Jun 2005 23:25:22 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:406367</guid><dc:creator>Windows Server Clustering </dc:creator><description /></item></channel></rss>