• No results found

Lab A: Using Group Policy to Configure Scripts and Folder Redirection

In document 6419B ENU Trainer Handbook Part2 (Page 97-101)

Exercise 1: Using a Group Policy Logon Script to Map a Network Drive

Task 1: Create a script to map a drive to the data share

1. On NYC-DC1, click Start, in the Search programs and files box, type Notepad, and then press ENTER.

2. In the Notepad, type Net use t: \\nyc-dc1\data.

3. Click File and click Save. Save the file as Map.bat. Ensure that you click the Save as type: drop-down arrow in the Save As dialog box and select All Files (*.*) as the type. Save the file to the default location of Documents.

4. Close Notepad.

5. Click Start, click Computer, and then click Documents.

6. Right-click the Map.bat file and click Copy. (You will paste it into the Netlogon share later.) 7. Close the Documents window.

Task 2: Create and link a GPO

1. Click Start, point to Administrative Tools, and then click Group Policy Management.

2. Expand Forest:Contoso.com, and then expand Domains.

3. Right-click Contoso.com, click Create a GPO in this domain, and Link it here.

4. In the New GPO dialog box, in the Name box, type DriveMap, and then click OK.

Task 3: Edit the GPO and store the script in Sysvol

1. Expand Contoso.com, right-click the Drivemap GPO, and then click Edit.

2. In Group Policy Management Editor, under User Configuration, expand Policies, expand Windows Settings, and click Scripts (Logon\Logoff).

3. In the details pane, double-click Logon.

4. In the Logon Properties dialog box, click Show Files. (This opens the Netlogon share in Computer).

5. In the details pane, right-click a blank area and then click Paste.

6. Close the Logon window.

7. In the Logon Properties dialog box, click Add.

8. In the Add a Script dialog box, click Browse.

9. Click the Map.bat script and then click Open.

10. Click OK twice to close all dialog boxes.

11. Close the Group Policy Management Editor and the Group Policy Management console.

M C T U SE O N LY . S TU D EN T U SE P R O H IB IT ED

L10-2 Lab A: Using Group Policy to Configure Scripts and Folder Redirection

Task 4: Test the results

1. On NYC-CL1, log on as Contoso\Administrator with a password of Pa$$word.

2. Click Start and click Computer and then verify that drive has been mapped.

3. Log off NYC-CL1.

Results: In this exercise, you created a script and a GPO to assign the script and store the script in a highly available location.

M C T U SE O N LY . S TU D EN T U SE P R O H IB IT ED

Lab A: Using Group Policy to Configure Scripts and Folder Redirection L10-3

Exercise 2: Using Group Policy to Redirect Folders

Task 1: Create a shared folder

1. On NYC-DC1, click Start, and then click Computer

2. Double-click Local Disk (C:) drive and then click New folder.

3. Name the new folder Redirect.

4. Right-click the Redirect folder, click Share with, and then click Specific people.

5. In the File Sharing dialog box, click the drop-down arrow, and then select Find people.

6. In the Select Users or Groups dialog box, type Research, and then click OK.

7. In the File Sharing dialog box, click the Permission Level drop-down arrow for the Research group, and then click Read/Write.

8. Click Share and then click Done.

9. Close the Local Disk (C:) window.

Task 2: Create a GPO to redirect the Documents folder

1. Click Start, point to Administrative Tools, and then click Group Policy Management.

2. Expand Forest: Contoso.com, expand Domains, and then expand Contoso.com

3. Right-click the Research OU, and then click Create a GPO in this domain, and Link it here.

4. In the New GPO dialog box, in the Name box, type Redirect, and then click OK.

5. Expand the Research OU, right-click the Redirect GPO, and then click Edit.

6. In the Group Policy Management Editor, under User Configuration, expand Policies, expand Windows Settings, and then expand Folder Redirection.

7. Right-click Documents and then click Properties.

8. In the Document Properties dialog box, on the Target tab, In the Setting box, select Basic – Redirect everyone’s folder to the same location.

9. Ensure the Target folder location box is set to Create a folder for each user under the root path.

10. In the Root Path box, type \\NYC-DC1\Redirect, click OK. In the Warning dialog box, click Yes.

11. Close all open windows on NYC-DC1.

Task 3: Test folder redirection

1. Log on to NYC-CL1 as Dylan with a password of Pa$$w0rd.

2. Click Start, right-click Documents, and then click Properties. In the Documents Properties dialog box, note that the location of the folder is now the Redirect network share in a subfolder named for the user.

Note: Due to cached credentials, you may need to log on twice to see the redirection unless the user has never logged on to this computer before.

3. Close all open windows and log off.

M C T U SE O N LY . S TU D EN T U SE P R O H IB IT ED

L10-4 Lab A: Using Group Policy to Configure Scripts and Folder Redirection

Results: In this exercise, you created and set permissions on a shared folder. You created and linked a GPO to redirect the executive’s documents to the shared folder.

To prepare for the next lab

1. When you finish the lab, leave the virtual machines running.

M C T U SE O N LY . S TU D EN T U SE P R O H IB IT ED

Lab A: Using Group Policy to Configure Scripts and Folder Redirection L10-5

In document 6419B ENU Trainer Handbook Part2 (Page 97-101)