mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-15 18:33:43 +00:00
dist
This commit is contained in:
@ -21,11 +21,11 @@ ms.topic: article
|
||||
**Applies to**
|
||||
- Windows 10
|
||||
|
||||
The procedures in this article are optional. Perform the documented steps if you wish to build a distributed environment for Windows 10 deployment.
|
||||
Perform the steps in this article to build a distributed environment for Windows 10 deployment. A distributed environment for deployment is useful when you have a segmented network, for example one that is segmented geographically into two branch locations. If you work in a distributed environment, replicating the deployment shares is an important part of a deployment solution because images of 5 GB or more in size can present bandwidth issues when deployed over the wire. Replicating this content enables clients to do local deployments.
|
||||
|
||||
In this topic, you will learn how to replicate your Windows 10 deployment shares to facilitate the deployment of Windows 10 in remote or branch locations. If you work in a distributed environment, replicating the deployment shares is an important part of the deployment solution. With images reaching 5 GB in size or more, you can't deploy machines in a remote office over the wire. You need to replicate the content, so that the clients can do local deployments.
|
||||
Four computers are used in this topic: DC01, MDT01, MDT02, and PC0006. DC01 is a domain controller, MDT01 and MDT02 are domain member computers running Windows Server 2019, and PC0006 is a blank device where we will deploy Windows 10. The second deployment server (MDT02) will be configured for a remote site (Stockholm) by replicating the deployment share on MDT01 at the original site (New York). All devices are members of the domain contoso.com for the fictitious Contoso Corporation.
|
||||
|
||||
We will use four computers for this topic: DC01, MDT01, MDT02, and PC0006. DC01 is a domain controller, MDT01 is a Windows Server 2019 server, and PC0006 is a blank device where we will deploy Windows 10. You will configure a second deployment server (MDT02) for a remote site (Stockholm) by replicating the deployment share in the original site (New York). MDT01, MDT02, and PC0006 are members of the domain contoso.com for the fictitious Contoso Corporation. For more details on the setup for this topic, please see [Prepare for deployment with MDT](prepare-for-windows-deployment-with-mdt.md).
|
||||
For the purposes of this article, we assume that you have prepared the MDT02 server with the same network and storage capabilities that were specified for MDT01, except that MDT02 is located on a different subnet than MDT01. For more details on the infrastructure setup for this topic, please see [Prepare for deployment with MDT](prepare-for-windows-deployment-with-mdt.md).
|
||||
|
||||

|
||||
|
||||
@ -44,60 +44,88 @@ LDS is a built-in feature in MDT for replicating content. However, LDS works bes
|
||||
|
||||
### Why DFS-R is a better option
|
||||
|
||||
DFS-R is not only very fast and reliable, but it also offers central monitoring, bandwidth control, and a great delta replication engine. DFS-R will work equally well whether you have 2 sites or 90. When using DFS-R for MDT, we recommend running your deployment servers on Windows Server 2008 R2 or higher. From that version on, you can configure the replication target(s) as read-only, which is exactly what you want for MDT. This way, you can have your master deployment share centralized and replicate out changes as they happen. DFS-R will quickly pick up changes at the central deployment share in MDT01 and replicate the delta changes to MDT02.
|
||||
DFS-R is not only very fast and reliable, but it also offers central monitoring, bandwidth control, and a great delta replication engine. DFS-R will work equally well whether you have 2 sites or 90. When using DFS-R for MDT, we recommend running your deployment servers on Windows Server 2008 R2 or higher. From that version on, you can configure the replication targets as read-only, which is exactly what you want for MDT. This way, you can have your master deployment share centralized and replicate out changes as they happen. DFS-R will quickly pick up changes at the central deployment share in MDT01 and replicate the delta changes to MDT02.
|
||||
|
||||
## Set up Distributed File System Replication (DFS-R) for replication
|
||||
|
||||
Setting up DFS-R for replication is a quick and straightforward process. You prepare the deployment servers and then create a replication group. To complete the setup, you configure some replication settings.
|
||||
Setting up DFS-R for replication is a quick and straightforward process: Prepare the deployment servers, create a replication group, then configure some replication settings.
|
||||
|
||||
### Prepare MDT01 for replication
|
||||
|
||||
1. On MDT01, using Server Manager, click **Add roles and features**.
|
||||
2. On the **Select installation type** page, select **Role-based or feature-based installation**.
|
||||
3. On the **Select destination server** page, select **MDT01.contoso.com** and click **Next**.
|
||||
4. On the **Select server roles** page, expand **File and Storage Services (Installed)** and expand **File and iSCSI Services (Installed)**.
|
||||
5. In the **Roles** list, select **DFS Replication**. In the **Add Roles and Features Wizard** dialog box, select **Add Features**, and then click **Next**.
|
||||
On **MDT01**:
|
||||
|
||||

|
||||
1. Install the DFS Replication role on MDT01 by entering the following at an elevated Windows PowerShell prompt:
|
||||
|
||||
Adding the DFS Replication role to MDT01.
|
||||
```powershell
|
||||
Install-WindowsFeature -Name FS-DFS-Replication -IncludeManagementTools
|
||||
```
|
||||
|
||||
6. On the **Select features** page, accept the default settings, and click **Next**.
|
||||
7. On the **Confirm installation selections** page, click **Install**.
|
||||
8. On the **Installation progress** page, click **Close**.
|
||||
2. Wait for installation to comlete, and then verify that the installation was successful.
|
||||
|
||||
```
|
||||
PS C:\> Install-WindowsFeature -Name FS-DFS-Replication -IncludeManagementTools
|
||||
|
||||
Success Restart Needed Exit Code Feature Result
|
||||
------- -------------- --------- --------------
|
||||
True No Success {DFS Replication, DFS Management Tools, Fi...
|
||||
```
|
||||
|
||||
### Prepare MDT02 for replication
|
||||
|
||||
1. On MDT02, using Server Manager, click **Add roles and features**.
|
||||
2. On the **Select installation type** page, select **Role-based or feature-based installation**.
|
||||
3. On the **Select destination server** page, select **MDT02.contoso.com** and click **Next**.
|
||||
4. On the **Select server roles** page, expand **File and Storage Services (Installed)** and expand **File and iSCSI Services (Installed)**.
|
||||
5. In the **Roles** list, select **DFS Replication**. In the **Add Roles and Features Wizard** dialog box, select **Add Features**, and then click **Next**.
|
||||
6. On the **Select features** page, accept the default settings, and click **Next**.
|
||||
7. On the **Confirm installation selections** page, click **Install**.
|
||||
8. On the **Installation progress** page, click **Close**.
|
||||
On **MDT02**:
|
||||
|
||||
1. Perform the same procedure on MDT02 by entering the following at an elevated Windows PowerShell prompt:
|
||||
|
||||
```powershell
|
||||
Install-WindowsFeature -Name FS-DFS-Replication -IncludeManagementTools
|
||||
```
|
||||
|
||||
2. Wait for installation to comlete, and then verify that the installation was successful.
|
||||
|
||||
```
|
||||
PS C:\> Install-WindowsFeature -Name FS-DFS-Replication -IncludeManagementTools
|
||||
|
||||
Success Restart Needed Exit Code Feature Result
|
||||
------- -------------- --------- --------------
|
||||
True No Success {DFS Replication, DFS Management Tools, Fi...
|
||||
```
|
||||
|
||||
### Create the MDTProduction folder on MDT02
|
||||
|
||||
1. On MDT02, using File Explorer, create the **E:\\MDTProduction** folder.
|
||||
2. Share the **E:\\MDTProduction** folder as **MDTProduction$**. Use the default permissions.
|
||||
On **MDT02**:
|
||||
|
||||

|
||||
1. Create and share the **D:\\MDTProduction** folder using default permissions by entering the following at an elevated command prompt:
|
||||
|
||||
Sharing the **E:\\MDTProduction folder** on MDT02.
|
||||
```cmd
|
||||
mkdir d:\MDTProduction
|
||||
New-SmbShare -Name "MDTProduction$" -Path "D:\MDTProduction"
|
||||
```
|
||||
|
||||
2. You should see the following output:
|
||||
|
||||
```
|
||||
C:\> New-SmbShare -Name "MDTProduction$" -Path "D:\MDTProduction"
|
||||
|
||||
Name ScopeName Path Description
|
||||
---- --------- ---- -----------
|
||||
MDTProduction$ * D:\MDTProduction
|
||||
```
|
||||
|
||||
### Configure the deployment share
|
||||
|
||||
When you have multiple deployment servers sharing the same content, you need to configure the Bootstrap.ini file with information about which server to connect to based on where the client is located. In MDT, that can be done by using the DefaultGateway property.
|
||||
1. On MDT01, using Notepad, navigate to the **E:\\MDTProduction\\Control** folder and modify the Boostrap.ini file to look like this:
|
||||
|
||||
On **MDT01**:
|
||||
|
||||
1. Using Notepad, navigate to the **D:\\MDTProduction\\Control** folder and modify the Boostrap.ini file as follows. Under [DefaultGateway] enter the IP addresses for the client's default gateway in New York and Stockholm, respectively (replace 10.10.10.1 and 10.10.20.1 with your default gateways). The default gateway setting is what tells the client which deployment share (i.e. server) to use.
|
||||
|
||||
```ini
|
||||
[Settings]
|
||||
Priority=DefaultGateway, Default
|
||||
|
||||
[DefaultGateway]
|
||||
192.168.1.1=NewYork
|
||||
192.168.2.1=Stockholm
|
||||
10.10.10.1=NewYork
|
||||
10.10.20.1=Stockholm
|
||||
|
||||
[NewYork]
|
||||
DeployRoot=\\MDT01\MDTProduction$
|
||||
@ -108,84 +136,87 @@ When you have multiple deployment servers sharing the same content, you need to
|
||||
[Default]
|
||||
UserDomain=CONTOSO
|
||||
UserID=MDT_BA
|
||||
UserPassword=pass@word1
|
||||
SkipBDDWelcome=YES
|
||||
```
|
||||
**Note**: The DeployRoot value needs to go into the Bootstrap.ini file, but you can use the same logic in the CustomSettings.ini file. For example, you can redirect the logs to the local deployment server (SLSHARE), or have the User State Migration Tool (USMT) migration store (UDDIR) local. To learn more about USMT, see [Refresh a Windows 7 computer with Windows 10](refresh-a-windows-7-computer-with-windows-10.md) and [Replace a Windows 7 computer with a Windows 10 computer](replace-a-windows-7-computer-with-a-windows-10-computer.md).
|
||||
|
||||
2. Save the Bootstrap.ini file.
|
||||
3. Using the Deployment Workbench, right-click the **MDT Production** deployment share and select **Update Deployment Share**.
|
||||
|
||||

|
||||
|
||||
Updating the MDT Production deployment share.
|
||||
|
||||
4. Use the default settings for the Update Deployment Share Wizard.
|
||||
5. After the update is complete, use the Windows Deployment Services console. In the **Boot Images** node, right-click the **MDT Production x64** boot image and select **Replace Image**.
|
||||
3. Using the Deployment Workbench, right-click the **MDT Production** deployment share and select **Update Deployment Share**. Use the default settings for the Update Deployment Share Wizard. This process will take a few minutes.
|
||||
4. After the update is complete, use the Windows Deployment Services console on MDT01. In the **Boot Images** node, right-click the **MDT Production x64** boot image and select **Replace Image**.
|
||||
|
||||

|
||||
|
||||
Replacing the updated boot image in WDS.
|
||||
|
||||
6. Browse and select the **E:\\MDTProduction\\Boot\\LiteTouchPE\_x64.wim** boot image, and then complete Replace Boot Image Wizard using the default settings.
|
||||
5. Browse and select the **D:\\MDTProduction\\Boot\\LiteTouchPE\_x64.wim** boot image, and then complete Replace Boot Image Wizard using the default settings.
|
||||
|
||||
## Replicate the content
|
||||
|
||||
## <a href="" id="sec03"></a>Replicate the content
|
||||
Once the MDT01 and MDT02 servers are prepared, you are ready to configure the actual replication.
|
||||
|
||||
### Create the replication group
|
||||
|
||||
7. On MDT01, using DFS Management, right-click **Replication**, and select **New Replication Group**.
|
||||
8. On the **Replication Group Type** page, select **Multipurpose replication group**, and click **Next**.
|
||||
9. On the **Name and Domain** page, assign the **MDTProduction** name, and click **Next**.
|
||||
10. On the **Replication Group Members** page, click **Add**, add **MDT01** and **MDT02**, and then click **Next**.
|
||||
6. On MDT01, using DFS Management (dfsmgmt.msc), right-click **Replication**, and click **New Replication Group**.
|
||||
7. On the **Replication Group Type** page, select **Multipurpose replication group**, and click **Next**.
|
||||
8. On the **Name and Domain** page, assign the **MDTProduction** name, and click **Next**.
|
||||
9. On the **Replication Group Members** page, click **Add**, add **MDT01** and **MDT02**, and then click **Next**.
|
||||
|
||||

|
||||
|
||||
Adding the Replication Group Members.
|
||||
|
||||
11. On the **Topology Selection** page, select the **Full mesh** option and click **Next**.
|
||||
12. On the **Replication Group Schedule and Bandwidth** page, accept the default settings and click **Next**.
|
||||
13. On the **Primary Member** page, select **MDT01** and click **Next**.
|
||||
14. On the **Folders to Replicate** page, click **Add**, type in **E:\\MDTProduction** as the folder to replicate, click **OK**, and then click **Next**.
|
||||
15. On the **Local Path of MDTProduction** on the **Other Members** page, select **MDT02**, and click **Edit**.
|
||||
16. On the **Edit** page, select the **Enabled** option, type in **E:\\MDTProduction** as the local path of folder, select the **Make the selected replicated folder on this member read-only** check box, click **OK**, and then click **Next**.
|
||||
10. On the **Topology Selection** page, select the **Full mesh** option and click **Next**.
|
||||
11. On the **Replication Group Schedule and Bandwidth** page, accept the default settings and click **Next**.
|
||||
12. On the **Primary Member** page, select **MDT01** and click **Next**.
|
||||
13. On the **Folders to Replicate** page, click **Add**, enter **D:\\MDTProduction** as the folder to replicate, click **OK**, and then click **Next**.
|
||||
14. On the **Local Path of MDTProduction** on the **Other Members** page, select **MDT02**, and click **Edit**.
|
||||
15. On the **Edit** page, select the **Enabled** option, type in **D:\\MDTProduction** as the local path of folder, select the **Make the selected replicated folder on this member read-only** check box, click **OK**, and then click **Next**.
|
||||
|
||||

|
||||
|
||||
Configure the MDT02 member.
|
||||
|
||||
17. On the **Review Settings and Create Replication Group** page, click **Create**.
|
||||
18. On the **Confirmation** page, click **Close**.
|
||||
16. On the **Review Settings and Create Replication Group** page, click **Create**.
|
||||
17. On the **Confirmation** page, click **Close**.
|
||||
|
||||
### Configure replicated folders
|
||||
|
||||
19. On MDT01, using DFS Management, expand **Replication** and then select **MDTProduction**.
|
||||
20. In the middle pane, right-click the **MDT01** member and select **Properties**.
|
||||
21. On the **MDT01 (MDTProduction) Properties** page, configure the following and then click **OK**:
|
||||
18. On **MDT01**, using DFS Management, expand **Replication** and then select **MDTProduction**.
|
||||
19. In the middle pane, right-click the **MDT01** member and click **Properties**.
|
||||
20. On the **MDT01 (MDTProduction) Properties** page, configure the following and then click **OK**:
|
||||
1. In the **Staging** tab, set the quota to **20480 MB**.
|
||||
2. In the **Advanced** tab, set the quota to **8192 MB**.
|
||||
In this scenario the size of the deployment share is known, but you might need to change the values for your environment. A good rule of thumb is to get the size of the 16 largest files and make sure they fit in the staging area. Here is a Windows PowerShell example that calculates the size of the 16 largest files in the E:\\MDTProduction deployment share:
|
||||
In this scenario the size of the deployment share is known, but you might need to change the values for your environment. A good rule of thumb is to get the size of the 16 largest files and make sure they fit in the staging area. Below is a Windows PowerShell example that calculates the size of the 16 largest files in the D:\\MDTProduction deployment share:
|
||||
|
||||
``` powershell
|
||||
(Get-ChildItem E:\MDTProduction -Recurse | Sort-Object Length -Descending | Select-Object -First 16 | Measure-Object -Property Length -Sum).Sum /1GB
|
||||
(Get-ChildItem D:\MDTProduction -Recurse | Sort-Object Length -Descending | Select-Object -First 16 | Measure-Object -Property Length -Sum).Sum /1GB
|
||||
```
|
||||
|
||||

|
||||
|
||||
Configure the Staging settings.
|
||||
|
||||
22. In the middle pane, right-click the **MDT02** member and select **Properties**.
|
||||
23. On the **MDT02 (MDTProduction) Properties** page, configure the following and then click **OK**:
|
||||
21. In the middle pane, right-click the **MDT02** member and select **Properties**.
|
||||
22. On the **MDT02 (MDTProduction) Properties** page, configure the following and then click **OK**:
|
||||
1. In the **Staging** tab, set the quota to **20480 MB**.
|
||||
2. In the **Advanced** tab, set the quota to **8192 MB**.
|
||||
|
||||
> [!NOTE]
|
||||
> It will take some time for the replication configuration to be picked up by the replication members (MDT01 and MDT02). The time for the initial sync will depend on the WAN link speed between the sites. After that, delta changes are replicated quickly.
|
||||
|
||||
23. Verify that MDT01 and MDT02 are members of the MDTProduction replication group, with MDT01 being primary as follows using an elevated command prompt:
|
||||
|
||||
```cmd
|
||||
C:\> dfsradmin membership list /rgname:MDTProduction /attr:MemName,IsPrimary
|
||||
MemName IsPrimary
|
||||
MDT01 Yes
|
||||
MDT02 No
|
||||
```
|
||||
|
||||
### Verify replication
|
||||
|
||||
1. On MDT02, wait until you start to see content appear in the **E:\\MDTProduction** folder.
|
||||
On **MDT02**:
|
||||
|
||||
1. Wait until you start to see content appear in the **D:\\MDTProduction** folder.
|
||||
2. Using DFS Management, expand **Replication**, right-click **MDTProduction**, and select **Create Diagnostics Report**.
|
||||
3. In the Diagnostics Report Wizard, on the **Type of Diagnostics Report or Test** page, select **Health report** and click **Next**.
|
||||
3. In the Diagnostics Report Wizard, on the **Type of Diagnostics Report or Test** page, choose **Health report** and click **Next**.
|
||||
4. On the **Path and Name** page, accept the default settings and click **Next**.
|
||||
5. On the **Members to Include** page, accept the default settings and click **Next**.
|
||||
6. On the **Options** page, accept the default settings and click **Next**.
|
||||
@ -196,6 +227,8 @@ When you have multiple deployment servers sharing the same content, you need to
|
||||
|
||||
The DFS Replication Health Report.
|
||||
|
||||
>If there are replication errors you can review the DFS event log in Event Viewer under **Applications and Services Logs**.
|
||||
|
||||
## Configure Windows Deployment Services (WDS) in a remote site
|
||||
|
||||
Like you did in the previous topic for MDT01, you need to add the MDT Production Lite Touch x64 Boot image to Windows Deployment Services on MDT02. For the following steps, we assume that WDS has already been installed on MDT02.
|
||||
@ -207,21 +240,22 @@ Like you did in the previous topic for MDT01, you need to add the MDT Production
|
||||
Now you should have a solution ready for deploying the Windows 10 client to the remote site, Stockholm, connecting to the MDT Production deployment share replica on MDT02.
|
||||
|
||||
1. Create a virtual machine with the following settings:
|
||||
1. Name: PC0006
|
||||
2. Location: C:\\VMs
|
||||
3. Generation: 2
|
||||
4. Memory: 2048 MB
|
||||
5. Hard disk: 60 GB (dynamic disk)
|
||||
1. Name: PC0006
|
||||
2. Location: C:\\VMs
|
||||
3. Generation: 2
|
||||
4. Memory: 2048 MB
|
||||
5. Hard disk: 60 GB (dynamic disk)
|
||||
6. Install an operating system from a network-based installation server
|
||||
2. Start the PC0006 virtual machine, and press **Enter** to start the Pre-Boot Execution Environment (PXE) boot. The machine will now load the Windows PE boot image from the WDS server.
|
||||
3. After Windows Preinstallation Environment (Windows PE) has booted, complete the Windows Deployment Wizard using the following settings:
|
||||
1. Password: P@ssw0rd
|
||||
1. Password: pass@word1
|
||||
2. Select a task sequence to execute on this computer:
|
||||
1. Windows 10 Enterprise x64 RTM Custom Image
|
||||
2. Computer Name: PC0006
|
||||
3. Applications: Select the Install - Adobe Reader XI - x86 application
|
||||
4. The setup will now start and do the following:
|
||||
1. Install the Windows 10 Enterprise operating system.
|
||||
2. Install the added application.
|
||||
2. Install applications.
|
||||
3. Update the operating system via your local Windows Server Update Services (WSUS) server.
|
||||
|
||||
## Related topics
|
||||
|
@ -35,7 +35,7 @@ For the purposes of this topic, we will use three server computers: **DC01**, **
|
||||
- Note: Although MDT supports Windows Server 2008 R2, at least Windows Server 2012 R2 or later is requried to perform the procedures in this guide.
|
||||
- **DC01** is a domain controller, DHCP server, and DNS server for <b>contoso.com</b>, representing the fictitious Contoso Corporation.
|
||||
- **MDT01** is a domain member server in contoso.com with a data (D:) drive that can store at least 200GB. MDT01 will host deployment shares and run the Windows Deployment Service. Optionally, MDT01 is also a WSUS server.
|
||||
- A second MDT server (**MDT02**) configured identially to MDT01 is optionally used to [build a distributed environment](build-a-distributed-environment-for-windows-10-deployment.md) for Windows 10 deployment.
|
||||
- A second MDT server (**MDT02**) configured identially to MDT01 is optionally used to [build a distributed environment](build-a-distributed-environment-for-windows-10-deployment.md) for Windows 10 deployment. This server is located on a different subnet than MDT01 and has a different default gateway.
|
||||
- **HV01** is a Hyper-V host computer that is used to build a Windows 10 reference image.
|
||||
- See [Hyper-V requirements](#hyper-v-requirements) below for more information about HV01.
|
||||
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 39 KiB |
Binary file not shown.
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 39 KiB |
Reference in New Issue
Block a user