In this practice, you will create and manage user objects utilizing templates and command line tools.
Exercise 1: Create a User Template
1. Log on to Server01 as an administrator.
2. Open Active Directory Users And Computers.
3. Select the Employees OU in the tree pane.
4. Create a user account with the following information:
Text Box Name Enter
First Name Template Last Name Sales Representative User Logon Name: Template.sales.rep User Logon Name (Pre–Windows 2000): Templatesalesrep 5. Click Next.
6. Select Account Is Disabled. Click Next.
7. The summary page appears. Click Finish. Note As mentioned in the chapter’s “Before You Begin” section, you should create a group in the Security Groups OU called Sales Representatives. If you have not created such a group, do so now. Configure a global security group with the name Sales Representative. 8. Open the properties of the Template Sales Representative object.
9. Configure the following properties for the template account:
Tab Property Value Member Of Member Of Sales Representatives Account Logon Hours Monday–Friday, 9:00 A.M.–5:00 P.M. Account Expires Three months from the current date Organization Company Contoso Profile Profile path \\Server1\Profiles\%Username%
10. Click OK when you have finished configuring account properties.
Lesson 2 Creating Multiple User Objects 3-25 Exercise 2: Create Users by Copying a User Template
1. Select the Employees OU in the tree pane.
2. Select the Template Sales Representative object.
3. Click the Action menu, and then click Copy.
4. Create a new user account with the following information:
Text Box Name Enter
First Name Scott Last Name Bishop User Logon Name: Scott.Bishop User Logon Name Sbishop
Account Is Disabled Clear the check box
Password/Confirm Password Enter and confirm a complex password as described earlier in this chapter.
5. Click Next, and then click Finish.
6. Open the properties of the object Scott Bishop.
7. Confirm that the information configured for the template on the Member Of, Account, and Organization Property pages were applied to the new object.
8. Because you will use this account for other exercises in the chapter, reset two properties. On the Account tab, set the Account Expires option to Never, and set the Logon Hours so that logon is permitted at any time.
Exercise 3: Import User Objects Using CSVDE
1. Open Notepad.
2. Type the following information carefully, creating 3 lines of text:
"CN=Danielle Tiedt,OU=Employees, DC=contoso,DC=com",user,dtiedt,Tiedt,Danielle,email@example.com
"CN=Lorrin Smith-Bates,OU=Employees, DC=contoso,DC=com",user,lsmithbates,Smith-Bates,Lorrin,firstname.lastname@example.org
3. Save the file as “C:\USERS.CSV” being certain to surround the filename with quote marks. Without quote marks, the file will be saved as C:\USERS.CSV.TXT.
4. Open the command prompt and type the following command: csvde –i -f c:\users.csv
3-26 Chapter 3 User Accounts 5. If the command output confirms that the command completed successfully, open Active Directory Users and Computers to confirm that the objects were created. If the command output suggests that there were errors, open the USERS.CSV file in Notepad and correct the errors.
6. You will log on as these users later in this chapter. Because the users were imported without passwords, you must reset their passwords. Once the passwords have been configured, enable the accounts. Both the Reset Password and Enable Account commands can be found on either the Action or Objects shortcut menu.
7. If you have access to an application that can open comma-delimited text files, such as Microsoft Excel, open C:\USERS.CSV. You will be able to interpret its structure more easily in a columnar display than in Notepad’s one-line, comma-delimited text file display.
Exercise 4: Utilize Active Directory Command-Line Tools
1. Open the command and type the following command: dsquery user "OU=Employees, DC=Contoso,DC=Com" -stalepwd 7
2. The command, which finds user objects that have not changed their password in seven days, should list, at a minimum, the objects you created in exercises 1 and 2. If not, create one or two new user objects and then perform step 1.
3. Type the following command and press ENTER:
dsquery user "OU=Employees, DC=Contoso,DC=Com" -stalepwd 7 | dsmod user -mustchpwd yes
4. The command used the results of DSQUERY as the input for the DSMOD command. The DSMOD command configured the option “User must change password at next logon” for each object. Confirm your success by examining the Account tab of the affected objects.
The following questions are intended to reinforce key information presented in this lesson. If you are unable to answer a question, review the lesson materials and try the question again. You can find answers to the questions in the “Questions and Answers” section at the end of this chapter.
1. What option will be most useful to generate 100 new user objects, each of which have identical profile path, home folder path, Title, Web Page, Company, Department, and Manager settings?
Lesson 2 Creating Multiple User Objects 3-27 2. Which tool will allow you to identify accounts that have not been used for two months?
3. What variable can be used with the DSMOD and DSADD commands to create user-specific home folders and profile folders?
4. Which tools allow you to output the telephone numbers for all users in an OU?
■ A user object template is an object that is copied to produce new users. If the template is not a “real” user, it should be disabled. Only a subset of user properties are copied from templates.
■ The CSVDE command enables you to import directory objects from a comma-delimited text file.
■ Windows Server 2003 supports powerful new command-line tools to create, man-age, and delete directory objects: DSQUERY, DSGET, DSADD, DSMOVE, DSMOD, and DSRM. Frequently, DSQUERY will produce a result set of objects that are piped as input to other commands.
注册－为何申请Payoneer万事达预付卡+美国/欧洲/英国银行账号？ ｜ P卡申请被拒绝的原因
Payoneer有卡账户和无卡账户的区别 ｜ Payoneer个人账户注册申请教程 | （公司帐户）
Payoneer欧洲支付服务（欧元帐户） ｜ 激活Payoneer欧元虚拟卡 ｜ Payoneer推出日元收款帐户
Payoneer英国支付服务（英镑帐户） ｜ 订购Payoneer实体卡（P卡） ｜ Payoneer卡年费啥时候扣？
收到Payoneer万事达预付卡（P卡） ｜ Payoneer卡休眠和激活 ｜ 如何注销P卡 ｜ P卡到期后如何更换？
官方－Payoneer秉承公正、公开、透明服务 ｜ Payoneer官方最新政策汇总 ｜ 官方客服联系方式
Payoneer欧美收款账户费用表 ｜ 如何减少Payoneer入帐和取款手续费？
跨境收款服务商拷问篇——Payoneer ｜ Payoneer客户答疑手册（FAQ） ｜ Payoneer手机App
收款－跨境电商/外贸收款方式对比 ｜ Payoneer可以错名收款吗？ ｜ Payoneer还是蛮人性化的
Payoneer可接受个人与公司信用卡付款（请求付款） ｜ 关于Payoneer卡充值
Amazon亚马逊卖家设置Payoneer卡收款教程 ｜ Amazon联盟设置Payoneer卡收款
申请CJ联盟并设置Payoneer卡收款 ｜ ClickBank联盟设置Payoneer卡收款教程
Payoneer如何从东南亚电商平台Lazada收款 ｜ 如何在Lazada开店？
Payoneer如何从拉美电商平台Linio收款？ ｜ Payoneer绑定非洲电商平台Jumia收款
Payoneer如何从跨境移动电商Wish收款？ ｜ Wish模式正在改变电商格局
Payoneer支持从法国乐天Priceminister收款 ｜ 法国电商平台CDiscount对接Payoneer收款
Airbnb房东如何使用Payoneer收款？ ｜ Airbnb房东用哪种收款方式最划算？
从PayPal提现到Payoneer卡教程及手续费用 ｜ PayPal无法绑定并转账到Payoneer卡？
提现－从Payoneer卡提现到国内银行账户 ｜ Payoneer无法从Dating联盟收款并限制提现方式
用P卡在中国银行ATM机取款4000元 ｜ 用Payoneer卡在中国建设银行ATM机取款500元