To modify the content of the ldf file exported by Admodfy, for example, dn: CN Cai Ni, OUADImportOU, DCmyDomain, DCcom, DCcnchangetype: addobjectClass: contactcn: Cai Ni sn: cai Ni mailNickname: lily. caitargetAddress: lily.cai@myDomain.com
To modify the content of the ldf file exported by Admodfy, for example, dn: CN = Cai Ni, OU = ADImportOU, DC = myDomain, DC = com, DC = cn changetype: add objectClass: contact cn: Cai Ni sn: Cai Ni mailNickname: lily. cai targetAddress: lily. cai @ myDomain. com
To modify the content of the ldf file exported by Admodfy, as shown in the following example:
Dn: CN = Cai Ni, OU = AD Import OU, DC = myDomain, DC = com, DC = cn
Changetype: add
ObjectClass: contact
Cn: Cai Ni
Sn: Cai Ni
MailNickname: lily. cai
TargetAddress: lily.cai@myDomain.com.cn
ProxyAddresses: X400: c = us; a =; p = myDomain; o = Exchange; s = lily. cai;
ProxyAddresses: SMTP: lily.cai@myDomain.com.cn
Mail: lilycai@myDomain.com.cn
Company: Headquarters
Department: Finance
DisplayName: Cai ni [Lily]
Name: Cai Ni
ProfilePath:/ServerNameUserConf $ lily. cai
Delete the row containing the X400 email address and the row containing the profilePath, and change it
Dn: CN = Cai Ni, OU = AD Import OU, DC = myDomain, DC = com, DC = cn
Changetype: add
ObjectClass: contact
Cn: Cai Ni
Sn: Cai Ni
MailNickname: lily. cai
TargetAddress: SMTP: lily.cai@myDomain.com.cn
ProxyAddresses: SMTP: lily.cai@myDomain.com.cn
Mail: lily.cai@myDomain.com.cn
Company: Headquarters
Department: Finance
DisplayName: Cai ni [Lily]
Name: Cai Ni
Because there are a large number of users in the text, it is unrealistic to manually delete the text. Therefore, use the UltraEdit regular expression to search for and delete the text. The problem is quickly solved. Use UltraEdit to open the text. First, select the Regular Expression Engine in the menu, the branch of the Regular Expression Engine is located under "configuration-search" and has the following options:
Perl Compatible Regular Expressions
If this option is selected, the editor uses a Perl-style regular expression based on the Boost C ++ Library (when the regular expression is selected in the search/replace dialog box ).
UltraEdit Regular Expression
If this option is selected, the editor selects the regular expression in the search/replace dialog box and uses the regular expression in the UltraEdit style.
UNIX Regular Expression
If this option is selected, the editor uses a UNIX-style regular expression when selecting a regular expression in the search/replace dialog box.
Select your preferred regular expression type. Different engines have different syntaxes, such as Perl-Compatible Regular Expressions. Press enter to be/r, the UltraEdit-style and Unix-compatible carriage returns are ^ p and/n, respectively. The following describes the UltraEdit-style carriage returns.
After selecting the style, start searching. In the Ctrl + R pop-up replacement dialog box, select "Regular Expression", enter * X400 * ^ p in the search content, and replace it with null, after you click "replace all", all rows containing the X400 are deleted.
Appendix:
Regular Expression (UltraEdit syntax ):
% Match the first line-indicates that the search string must start with the line, but does not include the row termination characters in any selected result characters.
$ Match the end of a line-indicates that the search string must be at the end of the line, but does not include the row termination character in any selected result character.
? Match any character except the line break.
* Match any number of characters except line breaks.
+ Match one or more previous characters/expressions. At least one character must be found. Duplicate line breaks are not matched.
+ 0 or multiple times match the previous character/expression. Duplicate line breaks are not matched.
^ B matches a paging character.
^ P matches a linefeed (CR/LF) (Section) (DOS file)
^ R matches a line break (CR only) (Section) (MAC file)
^ N matches a linefeed (LF only) (Section) (UNIX file)
^ T matches a tab
[] Match a single character or range in any parentheses
^ {A ^} ^ {B ^} matching expression A or B
^ Ignore the subsequent regular expression characters
The corresponding replacement expression is ^ x, and the range of x is 1-9. For example, if ^ (h * o ^) ^ (f * s ^) matches "hello folks", ^ 2 ^ 1 indicates that it will be replaced with "folks hello.