# Windows Server



# Active Windows Server EVAL

DISM /Online /Set-Edition:ServerStandard /ProductKey:xxxxx-xxxxx-xxxxxx-xxxxxx /AcceptEula

# Creating a File Share

To create a new file share on a Windows Server using Sever Manager.

1. First, [Create a Group to Assign Permissions to Access Files](https://docs.coltscomputer.services/books/windows/page/create-a-group-to-assign-permissions-to-access-files "Create a Group to Assign Permissions to Access Files") following the guide for creating [Security Groups](https://docs.coltscomputer.services/books/windows/page/security-groups "Security Groups") for creating file access.
2. Next Open Windows Server Manager.
3. Navigate to the File and Storage Services &gt; Shares tab
4. Right click and select New Share
5. Select the share profile from the options. Select the SMB Quick option to create the share, then edit the necessary properties at a later time.
6. Select the server the share will live on, as well as the volume. It is best practice to create new shares on something other than the C drive 
    1. Change the local path to the shares if needed
7. Name the share and include a description
8. Enable options as needed. 
    1. Share based enumeration is recommended for sensitive files and folders
    2. Also recommended to encrypt the data. Data encryption is not the default option.
9. Change NTFS permissions as necessary.
10. Always set the Share Permissions to be Everyone full control. The file level permissions will handle access control, no need to complicate things.

File Shares: Drive Permissions: NTFS

# DFS Replication

[<span class="TextRun SCXO61270545 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO61270545 BCX0">http://blogs.technet.com/b/askds/archive/2009/06/23/recovering-from-unsupported-one-way-replication-in-dfsr-windows-server-2003-r2-and-windows-server-2008.aspx</span></span>](http://blogs.technet.com/b/askds/archive/2009/06/23/recovering-from-unsupported-one-way-replication-in-dfsr-windows-server-2003-r2-and-windows-server-2008.aspx)<span class="EOP SCXO61270545 BCX0"> </span>

<span class="EOP SCXO61270545 BCX0"> </span>

<span class="TextRun SCXO61270545 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO61270545 BCX0">Possible method of correcting DFS if problem is that it is only working one way.</span></span><span class="EOP SCXO61270545 BCX0"></span>

# DFS Size

<span class="TextRun SCXO69111497 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO69111497 BCX0">(Get-ChildItem "D:\\DFS Root" -recurse | Sort-Object length -descending | select-object -first 32 | measure-object -property length -sum).sum /1gb</span></span><span class="EOP SCXO69111497 BCX0"> </span>

<span class="EOP SCXO69111497 BCX0"> </span>

<span class="EOP SCXO69111497 BCX0"> </span>

<span class="TextRun SCXO69111497 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO69111497 BCX0">For the initial replication of existing data on the primary member, the staging folder quota must be large enough so that replication can continue even if multiple large files remain in the staging folder because partners cannot promptly download the files.</span></span><span class="EOP SCXO69111497 BCX0"> </span>

<span class="TextRun SCXO69111497 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO69111497 BCX0"> To properly size the staging folder for initial replication, you must take into account the size of the files to be replicated. At a minimum, the staging folder quota should be at least the size of the 32 largest files in the replicated folder, or the 16 largest files for read-only replicated folders. To improve performance, set the size of the staging folder quota as close as possible to the size of the replicated folder.</span></span><span class="EOP SCXO69111497 BCX0"> </span>

<span class="TextRun SCXO69111497 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO69111497 BCX0"> To determine the size of the largest files in a replicated folder using Windows Explorer, sort by size and add the 32 largest file sizes (16 if it’s a read-only replicated folder) to get the minimum staging folder size. To get the recommended minimum staging folder size (in gigabytes) from a Windows PowerShell® command prompt, use this Windows PowerShell command where &lt;replicatedfolderpath&gt; is the path to the replicated folder (change 32 to 16 for read-only replicated folders): </span></span><span class="EOP SCXO69111497 BCX0"> </span>

<span class="TextRun SCXO69111497 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO69111497 BCX0">(Get-ChildItem &lt;replicatedfolderpath&gt; -recurse | Sort-Object length -descending | select-object -first 32 | measure-object -property length -sum).sum /1gb</span></span><span class="EOP SCXO69111497 BCX0"> </span>

<span class="EOP SCXO69111497 BCX0"> </span>

[<span class="TextRun SCXO69111497 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO69111497 BCX0">http://technet.microsoft.com/library/cc754229.aspx#bkmk\_optimize</span></span>](http://technet.microsoft.com/library/cc754229.aspx#bkmk_optimize)<span class="EOP SCXO69111497 BCX0"> </span>

<span class="EOP SCXO69111497 BCX0"></span>

# DFSR Error 4012

[<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">https://support.microsoft.com/en-us/kb/2218556</span></span>](https://support.microsoft.com/en-us/kb/2218556)<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">How to perform an authoritative synchronization of DFSR-replicated SYSVOL (like "D4" for FRS)</span></span><span class="EOP  BCX0 SCXO193289993"> </span>

<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">In the ADSIEDIT.MSC tool, modify the following DN and two attributes on the domain controller you want to make authoritative (preferrably the PDC Emulator, which is usually the most up to date for SYSVOL contents):</span></span><span class="EOP  BCX0 SCXO193289993"> </span>

<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,CN=&lt;the server name&gt;,OU=Domain Controllers,DC=&lt;domain&gt;</span></span><span class="EOP  BCX0 SCXO193289993"> </span>

<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">msDFSR-Enabled=FALSE</span></span><span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">msDFSR-options=1</span></span><span class="EOP  BCX0 SCXO193289993"> </span>

<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">Modify the following DN and single attribute on all other domain controllers in that domain:</span></span><span class="EOP  BCX0 SCXO193289993"> </span>

<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,CN=&lt;each other server name&gt;,OU=Domain Controllers,DC=&lt;domain&gt;</span></span><span class="EOP  BCX0 SCXO193289993"> </span>

<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">msDFSR-Enabled=FALSE</span></span><span class="EOP  BCX0 SCXO193289993"> </span>

<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">Force Active Directory replication throughout the domain and validate its success on all DCs.</span></span><span class="EOP  BCX0 SCXO193289993"> </span>

<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">Start the DFSR service set as authoritative:</span></span><span class="EOP  BCX0 SCXO193289993"> </span>

<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">You will see Event ID 4114 in the DFSR event log indicating SYSVOL is no longer being replicated.</span></span><span class="EOP  BCX0 SCXO193289993"> </span>

<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">On the same DN from Step 1, set:</span></span><span class="EOP  BCX0 SCXO193289993"> </span>

<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">msDFSR-Enabled=TRUE</span></span><span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">Force Active Directory replication throughout the domain and validate its success on all DCs.</span></span><span class="EOP  BCX0 SCXO193289993"> </span>

<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">Run the following command from an elevated command prompt on the same server that you set as authoritative:</span></span><span class="EOP  BCX0 SCXO193289993"> </span>

<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">DFSRDIAG POLLAD</span></span><span class="EOP  BCX0 SCXO193289993"> </span>

<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">You will see Event ID 4602 in the DFSR event log indicating SYSVOL has been initialized. That domain controller has now done a “D4” of SYSVOL.</span></span><span class="EOP  BCX0 SCXO193289993"> </span>

<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">Start the DFSR service on the other non-authoritative DCs. You will see Event ID 4114 in the DFSR event log indicating SYSVOL is no longer being replicated on each of them.</span></span><span class="EOP  BCX0 SCXO193289993"> </span>

<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">Modify the following DN and single attribute on all other domain controllers in that domain:</span></span><span class="EOP  BCX0 SCXO193289993"> </span>

<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,CN=&lt;each other server name&gt;,OU=Domain Controllers,DC=&lt;domain&gt;</span></span><span class="EOP  BCX0 SCXO193289993"> </span>

<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">msDFSR-Enabled=TRUE</span></span><span class="EOP  BCX0 SCXO193289993"> </span>

<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">Run the following command from an elevated command prompt on all non-authoritative DCs (i.e. all but the formerly authoritative one):</span></span><span class="EOP  BCX0 SCXO193289993"> </span>

<span class="EOP  BCX0 SCXO193289993"> </span>

<span class="TextRun  BCX0 SCXO193289993" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun  BCX0 SCXO193289993">DFSRDIAG POLLAD</span></span><span class="EOP  BCX0 SCXO193289993"></span>

# Encrypted SMB

# SMB security enhancements

<div class="display-flex justify-content-space-between align-items-center flex-wrap-wrap page-metadata-container" id="bkmrk-article-05%2F18%2F2023-1"><div class="margin-right-xxs">- Article
- <time aria-label="Article review date" class="" data-article-date="" data-article-date-source="calculated" datetime="2023-05-18T08:00:00.000Z">05/18/2023</time>
- <button aria-label="View all contributors" class="contributors-button link-button" data-bi-name="contributors" title="View all contributors">15 contributors</button>

</div><div class="margin-block-xxs display-none-print" data-hide-on-archived="" id="bkmrk-feedback"><button class="button button-sm button-clear button-primary" data-bi-name="user-feedback-button" data-test-id="conceptual-feedback-button" data-user-feedback-button="" id="bkmrk-feedback-1" type="button">Feedback</button></div></div><div data-bi-name="inline-notification" id="bkmrk-"></div><nav aria-label="In this article" class="doc-outline display-none-print margin-bottom-sm" data-bi-name="intopic toc" id="bkmrk-in-this-article-smb-" role="navigation">## In this article

1. [SMB Encryption](https://learn.microsoft.com/en-us/windows-server/storage/file-server/smb-security#smb-encryption)
2. [Enable SMB Encryption](https://learn.microsoft.com/en-us/windows-server/storage/file-server/smb-security#enable-smb-encryption)
3. [Preauthentication integrity](https://learn.microsoft.com/en-us/windows-server/storage/file-server/smb-security#preauthentication-integrity)
4. [New signing algorithm](https://learn.microsoft.com/en-us/windows-server/storage/file-server/smb-security#new-signing-algorithm)

<button aria-controls="content-well-in-this-article-list" aria-expanded="false" class="link-button font-weight-semibold font-size-sm margin-top-xxs margin-left-xs" data-bi-name="show-more-btn" data-show-more="" data-title="Show 2 more" type="button"><span class="show-more-text ">Show 2 more</span></button></nav>> Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Azure Stack HCI version 21H2, Windows 11, Windows 10

This article explains the SMB security enhancements in Windows Server and Windows.

## SMB Encryption

SMB Encryption provides SMB data end-to-end encryption and protects data from eavesdropping occurrences on untrusted networks. You can deploy SMB Encryption with minimal effort, but it might require other costs for specialized hardware or software. It has no requirements for Internet Protocol security (IPsec) or WAN accelerators. SMB Encryption can be configured on a per share basis, for the entire file server, or when mapping drives.

 Note

SMB Encryption does not cover security at rest, which is typically handled by BitLocker Drive Encryption.

You can consider SMB Encryption for any scenario in which sensitive data needs to be protected from interception attacks. Possible scenarios include:

- You move an information worker’s sensitive data by using the SMB protocol. SMB Encryption offers an end-to-end privacy and integrity assurance between the file server and the client. It provides this security regardless of the networks traversed, such as wide area network (WAN) connections maintained by non-Microsoft providers.
- SMB 3.0 enables file servers to provide continuously available storage for server applications, such as SQL Server or Hyper-V. Enabling SMB Encryption provides an opportunity to protect that information from snooping attacks. SMB Encryption is simpler to use than the dedicated hardware solutions that are required for most storage area networks (SANs).

Windows Server 2022 and Windows 11 introduce AES-256-GCM and AES-256-CCM cryptographic suites for SMB 3.1.1 encryption. Windows automatically negotiates this more advanced cipher method when connecting to another computer that supports it. You can also mandate this method through Group Policy. Windows still supports AES-128-GCM and AES-128-CCM. By default, AES-128-GCM is negotiated with SMB 3.1.1, bringing the best balance of security and performance.

Windows Server 2022 and Windows 11 SMB Direct now support encryption. Previously, enabling SMB encryption disabled direct data placement, making RDMA performance as slow as TCP. Now data is encrypted before placement, leading to relatively minor performance degradation while adding AES-128 and AES-256 protected packet privacy. You can enable encryption using [Windows Admin Center](https://learn.microsoft.com/en-us/windows-server/manage/windows-admin-center/overview), [Set-SmbServerConfiguration](https://learn.microsoft.com/en-us/powershell/module/smbshare/set-smbserverconfiguration?view=windowsserver2022-ps&preserve-view=true), or [UNC Hardening group policy](https://support.microsoft.com/topic/ms15-011-vulnerability-in-group-policy-could-allow-remote-code-execution-february-10-2015-91b4bda2-945d-455b-ebbb-01d1ec191328).

Furthermore, Windows Server failover clusters now support granular control of encrypting intra-node storage communications for Cluster Shared Volumes (CSV) and the storage bus layer (SBL). This support means that when using Storage Spaces Direct and SMB Direct, you can encrypt east-west communications within the cluster itself for higher security.

 Important

There is a notable performance operating cost with any end-to-end encryption protection when compared to non-encrypted.

## Enable SMB Encryption

You can enable SMB Encryption for the entire file server or only for specific file shares. Use one of the following procedures to enable SMB Encryption.

### Enable SMB Encryption with Windows Admin Center

1. Download and install [Windows Admin Center](https://learn.microsoft.com/en-us/windows-server/manage/windows-admin-center/overview).
2. Connect to the file server.
3. Select **Files &amp; file sharing**.
4. Select the **File shares** tab.
5. To require encryption on a share, select the share name and choose **Enable SMB encryption**.
6. To require encryption on the server, select **File server settings**.
7. Under **SMB 3 encryption**, select **Required from all clients (others are rejected)**, and then choose **Save**.

### Enable SMB Encryption with UNC Hardening

UNC Hardening lets you configure SMB clients to require encryption regardless of server encryption settings. This feature helps prevent interception attacks. To configure UNC Hardening, see [MS15-011: Vulnerability in Group Policy could allow remote code execution](https://support.microsoft.com/topic/ms15-011-vulnerability-in-group-policy-could-allow-remote-code-execution-february-10-2015-91b4bda2-945d-455b-ebbb-01d1ec191328). For more information on interception attack defenses, see [How to Defend Users from Interception Attacks via SMB Client Defense](https://techcommunity.microsoft.com/t5/itops-talk-blog/how-to-defend-users-from-interception-attacks-via-smb-client/ba-p/1494995).

### Enable SMB Encryption with Windows PowerShell

1. Sign into your server and run PowerShell on your computer in an elevated session.
2. To enable SMB Encryption for an individual file share, run the following command.
    
    <div class="codeHeader" data-bi-name="code-header" id="bkmrk-powershellcopy"><span class="language">PowerShell</span><button class="action position-relative display-none-print" data-bi-name="copy" type="button">Copy</button><div aria-hidden="true" class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent">  
    </div></div>```
     -EncryptData $true
    " style="box-sizing: inherit; outline-color: inherit; font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 1em; direction: ltr; border: 0px; padding: 0px; line-height: 1.3571; display: block; position: relative;">Set-SmbShare –Name <sharename> -EncryptData $true
    
    ```
3. To enable SMB Encryption for the entire file server, run the following command.
    
    <div class="codeHeader" data-bi-name="code-header" id="bkmrk-powershellcopy-1"><span class="language">PowerShell</span><button class="action position-relative display-none-print" data-bi-name="copy" type="button">Copy</button><div aria-hidden="true" class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent">  
    </div></div>```
    Set-SmbServerConfiguration –EncryptData $true
    
    ```
4. To create a new SMB file share with SMB Encryption enabled, run the following command.
    
    <div class="codeHeader" data-bi-name="code-header" id="bkmrk-powershellcopy-2"><span class="language">PowerShell</span><button class="action position-relative display-none-print" data-bi-name="copy" type="button">Copy</button><div aria-hidden="true" class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent">  
    </div></div>```
     -Path <pathname> –EncryptData $true
    " style="box-sizing: inherit; outline-color: inherit; font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 1em; direction: ltr; border: 0px; padding: 0px; line-height: 1.3571; display: block; position: relative;">New-SmbShare –Name <sharename> -Path <pathname> –EncryptData $true
    
    ```

### Map drives with encryption

1. To enable SMB Encryption when mapping a drive using PowerShell, run the following command.
    
    <div class="codeHeader" data-bi-name="code-header" id="bkmrk-powershellcopy-3"><span class="language">PowerShell</span><button class="action position-relative display-none-print" data-bi-name="copy" type="button">Copy</button><div aria-hidden="true" class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent">  
    </div></div>```
     -RemotePath <UNC path> -RequirePrivacy $TRUE
    " style="box-sizing: inherit; outline-color: inherit; font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 1em; direction: ltr; border: 0px; padding: 0px; line-height: 1.3571; display: block; position: relative;">New-SMBMapping -LocalPath <drive letter> -RemotePath <UNC path> -RequirePrivacy $TRUE
    
    ```
2. To enable SMB Encryption when mapping a drive using CMD, run the following command.
    
    <div class="codeHeader" data-bi-name="code-header" id="bkmrk-windows-command-prom"><span class="language">Windows Command Prompt</span><button class="action position-relative display-none-print" data-bi-name="copy" type="button">Copy</button><div aria-hidden="true" class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent">  
    </div></div>```
     <UNC path> /REQUIREPRIVACY
    " style="box-sizing: inherit; outline-color: inherit; font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 1em; direction: ltr; border: 0px; padding: 0px; line-height: 1.3571; display: block; position: relative;">NET USE <drive letter> <UNC path> /REQUIREPRIVACY
    
    ```

### Considerations for deploying SMB Encryption

By default, when SMB Encryption is enabled for a file share or server, only SMB 3.0, 3.02, and 3.1.1 clients are allowed to access the specified file shares. This limit enforces the administrator's intent of safeguarding the data for all clients that access the shares.

However, in some circumstances, an administrator might want to allow unencrypted access for clients that don't support SMB 3.x. This situation could occur during a transition period when mixed client operating system versions are being used. To allow unencrypted access for clients that don't support SMB 3.x, enter the following script in Windows PowerShell:

<div class="codeHeader" data-bi-name="code-header" id="bkmrk-powershellcopy-4"><span class="language">PowerShell</span><button class="action position-relative display-none-print" data-bi-name="copy" type="button">Copy</button><div aria-hidden="true" class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent">  
</div></div>```
Set-SmbServerConfiguration –RejectUnencryptedAccess $false

```

 Note

We do not recommend allowing unencrypted access when you have deployed encryption. Update the clients to support encryption instead.

The preauthentication integrity capability described in the next section prevents an interception attack from downgrading a connection from SMB 3.1.1 to SMB 2.x (which would use unencrypted access). However, it doesn't prevent a downgrade to SMB 1.0, which would also result in unencrypted access.

To guarantee that SMB 3.1.1 clients always use SMB Encryption to access encrypted shares, you must disable the SMB 1.0 server. For instructions, connect to the server with Windows Admin Center and open the **Files &amp; File Sharing** extension, and then select the **File shares** tab to be prompted to uninstall. For more information, see [How to detect, enable and disable SMBv1, SMBv2, and SMBv3 in Windows](https://learn.microsoft.com/en-us/windows-server/storage/file-server/troubleshoot/detect-enable-and-disable-smbv1-v2-v3).

If the **–RejectUnencryptedAccess** setting is left at its default setting of **$true**, only encryption-capable SMB 3.x clients are allowed to access the file shares (SMB 1.0 clients are also rejected).

Consider the following issues as you deploy SMB Encryption:

- SMB Encryption uses the Advanced Encryption Standard (AES)-GCM and CCM algorithm to encrypt and decrypt the data. AES-CMAC and AES-GMAC also provide data integrity validation (signing) for encrypted file shares, regardless of the SMB signing settings. If you want to enable SMB signing without encryption, you can continue to do so. For more information, see [Configure SMB Signing with Confidence](https://aka.ms/smbsigning).
- You might encounter issues when you attempt to access the file share or server if your organization uses wide area network (WAN) acceleration appliances.
- With a default configuration (where there's no unencrypted access allowed to encrypted file shares), if clients that don't support SMB 3.x attempt to access an encrypted file share, Event ID 1003 is logged to the Microsoft-Windows-SmbServer/Operational event log, and the client receives an **Access denied** error message.
- SMB Encryption and the Encrypting File System (EFS) in the NTFS file system are unrelated, and SMB Encryption doesn't require or depend on using EFS.
- SMB Encryption and the BitLocker Drive Encryption are unrelated, and SMB Encryption doesn't require or depend on using BitLocker Drive Encryption.

## Preauthentication integrity

SMB 3.1.1 is capable of detecting interception attacks that attempt to downgrade the protocol or the capabilities that the client and server negotiate by use of preauthentication integrity. Preauthentication integrity is a mandatory feature in SMB 3.1.1. It protects against any tampering with Negotiate and Session Setup messages by using cryptographic hashing. The resulting hash is used as input to derive the session’s cryptographic keys, including its signing key. This process enables the client and server to mutually trust the connection and session properties. When the client or the server detects such an attack, the connection is disconnected, and event ID 1005 is logged in the Microsoft-Windows-SmbServer/Operational event log.

Because of this protection, and to take advantage of the full capabilities of SMB Encryption, we strongly recommend that you disable the SMB 1.0 server. For instructions, connect to the server with Windows Admin Center and open the **Files &amp; File Sharing** extension, and then select the **File shares** tab to be prompted to uninstall. For more information, see [How to detect, enable and disable SMBv1, SMBv2, and SMBv3 in Windows](https://learn.microsoft.com/en-us/windows-server/storage/file-server/troubleshoot/detect-enable-and-disable-smbv1-v2-v3).

## New signing algorithm

SMB 3.0 and 3.02 use a more recent encryption algorithm for signing: Advanced Encryption Standard (AES)-cipher-based message authentication code (CMAC). SMB 2.0 used the older HMAC-SHA256 encryption algorithm. AES-CMAC and AES-CCM can significantly accelerate data encryption on most modern CPUs that have AES instruction support.

Windows Server 2022 and Windows 11 introduce AES-128-GMAC for SMB 3.1.1 signing. Windows automatically negotiates this better-performing cipher method when connecting to another computer that supports it. Windows still supports AES-128-CMAC. For more information, see [Configure SMB Signing with Confidence](https://aka.ms/smbsigning).

## Disabling SMB 1.0

SMB 1.0 isn't installed by default starting in Windows Server version 1709 and Windows 10 version 1709. For instructions on removing SMB1, connect to the server with Windows Admin Center, open the **Files &amp; File Sharing** extension, and then select the **File shares** tab to be prompted to uninstall. For more information, see [How to detect, enable and disable SMBv1, SMBv2, and SMBv3 in Windows](https://learn.microsoft.com/en-us/windows-server/storage/file-server/troubleshoot/detect-enable-and-disable-smbv1-v2-v3).

If it's still installed, you should disable SMB1 immediately. For more information on detecting and disabling SMB 1.0 usage, see [Stop using SMB1](https://aka.ms/stopusingsmb1). For a clearinghouse of software that previously or currently requires SMB 1.0, see [SMB1 Product Clearinghouse](https://aka.ms/stillneedssmb1).

## Related links

- [Overview of file sharing using the SMB 3 protocol in Windows Server](https://learn.microsoft.com/en-us/windows-server/storage/file-server/file-server-smb-overview)
- [Windows Server Storage documentation](https://learn.microsoft.com/en-us/windows-server/storage/storage)
- [Scale-Out File Server for application data overview](https://learn.microsoft.com/en-us/windows-server/failover-clustering/sofs-overview)

# How to force an authoritative and non-authoritative synchronization for DFSR-replicated SYSVOL (like "D4/D2" for FRS)

<span style="text-decoration: underline; color: rgb(241, 196, 15);">**<span class="TextRun Highlight Underlined SCXO117418562 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO117418562 BCX0">\*\*\*\*\*Important to note: This should only be done by a competent tech that understands the steps they are performing. If done wrong these steps can have critical irreversible effects on a domain. AKA: Don't do this if you do not understand it because it can really jack stuff up!!!\*\*\*\*\*</span></span><span class="EOP SCXO117418562 BCX0"> </span>**</span>

<span class="TextRun SCXO172624149 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO172624149 BCX0">\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*</span></span><span class="EOP SCXO172624149 BCX0"> </span>

<span class="TextRun SCXO172624149 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO172624149 BCX0">\#DomainBackup</span></span><span class="EOP SCXO172624149 BCX0"> </span>

<span class="TextRun SCXO172624149 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO172624149 BCX0">\#Backup Domain Level files </span></span><span class="EOP SCXO172624149 BCX0"> </span>

<span class="TextRun SCXO172624149 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO172624149 BCX0">SET FILEROOTA="C:\\Windows\\SYSVOL\\domain"</span></span><span class="EOP SCXO172624149 BCX0"> </span>

<span class="TextRun SCXO172624149 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO172624149 BCX0">SET FILEENDA="C:\\Accent\\DomainBackup"</span></span><span class="EOP SCXO172624149 BCX0"> </span>

<span class="TextRun SCXO172624149 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO172624149 BCX0">ROBOCOPY %FILEROOTA% %FILEENDA% /MIR /R:2 /W:2 /MT:6</span></span><span class="EOP SCXO172624149 BCX0"> </span>

<span class="TextRun SCXO172624149 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO172624149 BCX0">\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*</span></span><span class="EOP SCXO172624149 BCX0"> </span>

<span class="TextRun SCXO220767663 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO220767663 BCX0">Update-DfsrConfigurationFromAD</span></span><span class="EOP SCXO220767663 BCX0"> </span>

<span class="TextRun SCXO220767663 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO220767663 BCX0">repadmin /syncall FS3 /APeD</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO220767663 BCX0"><span class="SCXO220767663 BCX0"> </span>  
</span><span class="TextRun SCXO220767663 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO220767663 BCX0">Pause</span></span><span class="EOP SCXO220767663 BCX0"> </span>

<span class="EOP SCXO220767663 BCX0"> </span>

<span class="TextRun SCXO220767663 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO220767663 BCX0">Invoke-Command -ComputerName DC1, DC2 -ScriptBlock {Restart-Service DFSR}</span></span><span class="EOP SCXO220767663 BCX0"> </span>

<span class="TextRun SCXO220767663 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO220767663 BCX0">or</span></span><span class="EOP SCXO220767663 BCX0"> </span>

<span class="TextRun SCXO220767663 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO220767663 BCX0">Invoke-Command -ComputerName DC1, DC2 -ScriptBlock {Stop-Service DFSR}</span></span><span class="EOP SCXO220767663 BCX0"> </span>

<span class="TextRun SCXO220767663 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO220767663 BCX0">Invoke-Command -ComputerName DC1, DC2 -ScriptBlock {Start-Service DFSR}</span></span><span class="EOP SCXO220767663 BCX0"> </span>

<div class="SCXO128471924 BCX0" id="bkmrk-non-authoritative-re">- <span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Non-authoritative restore is useful when a </span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">NON-PDC</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0"> domain controller is not replicating the sysvol folder. This is done on the </span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">NON-PDC </span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">domain controller. It marks its data as non-authoritative and pulls in new sysvol data from the PDC.</span></span><span class="EOP SCXO128471924 BCX0"> </span>
- <span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">An authoritative restore is useful when the non-authoritative does not work. This is done primarily on the PDC but you also have to complete steps on the </span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">NON-PDC</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0"> domain controllers. This marks the data on the PDC as authoritative and pushes it to all other DCs. I believe this can be done on a non PDC domain controller if the non-PDC holds the good sysvol data but this needs to be verified. </span></span><span class="EOP SCXO128471924 BCX0"> </span>
- <span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Important to note</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">: this is for servers that use DFSR to replicate SYSVOL, so Server 2008 and newer. Older servers have a different process. On older servers look at </span></span>[<span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">D2 and D4</span></span>](https://support.microsoft.com/en-us/kb/290762)<span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">.</span></span><span class="EOP SCXO128471924 BCX0"> </span>
- <span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Below is three links. One is the Microsoft link with a step-by-step for both processes and the other two are step-by-step that include a more non-formal and understandable format. </span></span><span class="EOP SCXO128471924 BCX0"> </span>
- <span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">In the Microsoft steps below (and in the first link) there is a </span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">More Info</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0"> section that provides some scenario based information that is helpful.</span></span><span class="EOP SCXO128471924 BCX0"> </span>
- <span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Also the Microsoft steps are pasted below.</span></span><span class="EOP SCXO128471924 BCX0"> </span>

</div><span class="EOP SCXO128471924 BCX0"> </span>

<span class="EOP SCXO128471924 BCX0"> </span>

[<span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Microsoft links to both authoritative and non-authoritative steps.</span></span>](https://support.microsoft.com/en-us/kb/2218556)<span class="EOP SCXO128471924 BCX0"> </span>

<span class="EOP SCXO128471924 BCX0"> </span>

[<span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Authoritative step-by-step that is easier to understand.</span></span>](http://kpytko.pl/active-directory-domain-services/authoritative-sysvol-restore-dfs-r/)<span class="EOP SCXO128471924 BCX0"> </span>

<span class="EOP SCXO128471924 BCX0"> </span>

[<span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Non-authoritative step-by-step that is easier to understand.</span></span>](http://kpytko.pl/active-directory-domain-services/non-authoritative-sysvol-restore-dfs-r/)<span class="EOP SCXO128471924 BCX0"> </span>

<span class="EOP SCXO128471924 BCX0"> </span>

<span class="EOP SCXO128471924 BCX0"> </span>

<span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_</span></span><span class="EOP SCXO128471924 BCX0"> </span>

<span class="EOP SCXO128471924 BCX0"> </span>

<span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Microsoft steps:</span></span><span class="EOP SCXO128471924 BCX0"> </span>

<span class="EOP SCXO128471924 BCX0"> </span>

<span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Consider the following scenario:</span></span><span class="EOP SCXO128471924 BCX0"> </span>

<span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">You want to force the non-authoritative synchronization of SYSVOL on a domain controller. In the File Replication Service (FRS), this was controlled through the</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">D2</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0"> and </span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">D4</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0"> data values for the </span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Burflags</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0"> registry values, but these values do not exist for the Distributed File System Replication (DFSR) service. You cannot use the DFS Management snap-in (Dfsmgmt.msc) or the Dfsradmin.exe command-line tool to achieve this. Unlike custom DFSR replicated folders, SYSVOL is intentionally protected from any editing through its management interfaces to prevent accidents.</span></span><span class="EOP SCXO128471924 BCX0"> </span>

<span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">How to perform a non-authoritative synchronization of DFSR-replicated SYSVOL (like "D2" for FRS)</span></span><span class="EOP SCXO128471924 BCX0"> </span>

1. <span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">In the </span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">ADSIEDIT.MSC</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0"> tool modify the following distinguished name (DN) value and attribute on each of the domain controllers that you want to make non-authoritative:</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,CN=</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">&lt;the server name&gt;</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">,OU=Domain Controllers,DC=</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">&lt;domain&gt;</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">msDFSR-Enabled=</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">FALSE</span></span><span class="EOP SCXO128471924 BCX0"> </span>
2. <span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Force Active Directory replication throughout the domain.</span></span><span class="EOP SCXO128471924 BCX0"> </span>
3. <span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Run the following command from an elevated command prompt on the same servers that you set as non-authoritative:</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">DFSRDIAG POLLAD</span></span><span class="EOP SCXO128471924 BCX0"> </span>
4. <span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">You will see Event ID 4114 in the DFSR event log indicating SYSVOL is no longer being replicated.</span></span><span class="EOP SCXO128471924 BCX0"> </span>
5. <span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">On the same DN from Step 1, set:</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">msDFSR-Enabled=</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">TRUE</span></span><span class="EOP SCXO128471924 BCX0"> </span>
6. <span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Force Active Directory replication throughout the domain.</span></span><span class="EOP SCXO128471924 BCX0"> </span>
7. <span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Run the following command from an elevated command prompt on the same servers that you set as non-authoritative:</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">DFSRDIAG POLLAD</span></span><span class="EOP SCXO128471924 BCX0"> </span>
8. <span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">You will see Event ID 4614 and 4604 in the DFSR event log indicating SYSVOL has been initialized. That domain controller has now done a “D2” of SYSVOL.</span></span><span class="EOP SCXO128471924 BCX0"> </span>

<span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">How to perform an authoritative synchronization of DFSR-replicated SYSVOL (like "D4" for FRS)</span></span><span class="EOP SCXO128471924 BCX0"> </span>

9. <span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Stop DFSR Service</span></span><span class="EOP SCXO128471924 BCX0"> </span>
10. <span class="EOP SCXO128471924 BCX0"> </span>
11. <span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">In the </span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">ADSIEDIT.MSC</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0"> tool, modify the following DN and two attributes on the domain controller you want to make authoritative (preferably the PDC Emulator, which is usually the most up to date for SYSVOL contents):</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,CN=</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">&lt;the server name&gt;</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">,OU=Domain Controllers,DC=</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">&lt;domain&gt;</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">msDFSR-Enabled=</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">FALSE</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">msDFSR-options=</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">1</span></span><span class="EOP SCXO128471924 BCX0"> </span>
12. <span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Modify the following DN and single attribute on </span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">all </span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">other domain controllers in that domain:</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,CN=</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">&lt;each other server name&gt;</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">,OU=Domain Controllers,DC=</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">&lt;domain&gt;</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">msDFSR-Enabled=</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">FALSE</span></span><span class="EOP SCXO128471924 BCX0"> </span>
13. <span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Force Active Directory replication throughout the domain and validate its success on all DCs.</span></span><span class="EOP SCXO128471924 BCX0"> </span>
14. <span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Start the DFSR service set as authoritative:</span></span><span class="EOP SCXO128471924 BCX0"> </span>
15. <span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">You will see Event ID 4114 in the DFSR event log indicating SYSVOL is no longer being replicated.</span></span><span class="EOP SCXO128471924 BCX0"> </span>
16. <span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">On the same DN from Step 1, set:</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">msDFSR-Enabled=</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">TRUE</span></span><span class="EOP SCXO128471924 BCX0"> </span>
17. <span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Force Active Directory replication throughout the domain and validate its success on all DCs.</span></span><span class="EOP SCXO128471924 BCX0"> </span>
18. <span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Run the following command from an elevated command prompt on the same server that you set as authoritative:</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">DFSRDIAG POLLAD</span></span><span class="EOP SCXO128471924 BCX0"> </span>
19. <span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">You will see Event ID 4602 in the DFSR event log indicating SYSVOL has been initialized. That domain controller has now done a “D4” of SYSVOL.</span></span><span class="EOP SCXO128471924 BCX0"> </span>
20. <span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Start the DFSR service on the other non-authoritative DCs. You will see Event ID 4114 in the DFSR event log indicating SYSVOL is no longer being replicated on each of them.</span></span><span class="EOP SCXO128471924 BCX0"> </span>
21. <span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Modify the following DN and single attribute on </span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">all </span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">other domain controllers in that domain:</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,CN=</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">&lt;each other server name&gt;</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">,OU=Domain Controllers,DC=</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">&lt;domain&gt;</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">msDFSR-Enabled=</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">TRUE</span></span><span class="EOP SCXO128471924 BCX0"> </span>
22. <span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Run the following command from an elevated command prompt on all non-authoritative DCs (i.e. all but the formerly authoritative one):</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="LineBreakBlob BlobObject DragDrop SCXO128471924 BCX0"><span class="SCXO128471924 BCX0"> </span>  
    </span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">DFSRDIAG POLLAD</span></span><span class="EOP SCXO128471924 BCX0"> </span>

<span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">More Information</span></span><span class="EOP SCXO128471924 BCX0"> </span>

<span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">If setting the authoritative flag on one DC, you </span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">must </span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">non-authoritatively synchronize </span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">all other DCs in the domain</span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">. Otherwise you will see conflicts on DCs, originating from any DCs where you did not set auth/non-auth and restarted the DFSR service. For example, if all logon scripts were accidentally deleted and a manual copy of them was placed back on the PDC Emulator role holder, making that server authoritative and all other servers non-authoritative would guarantee success and prevent conflicts.</span></span><span class="EOP SCXO128471924 BCX0"> </span>

<span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">If making any DC authoritative, the PDC Emulator as authoritative is preferable, since its SYSVOL contents are usually most up to date.</span></span><span class="EOP SCXO128471924 BCX0"> </span>

<span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">The use of the authoritative flag is only necessary if you need to force synchronization of all DCs. If only repairing one DC, simply make it non-authoritative and do not touch other servers.</span></span><span class="EOP SCXO128471924 BCX0"> </span>

<span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">This article is designed with a 2-DC environment in mind, for simplicity of description. If you had more than one affected DC, expand the steps to include </span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">ALL </span></span><span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">of those as well. It also assumes you have the ability to restore data that was deleted, overwritten, damaged, etc. previously if this is a disaster recovery scenario on all DCs in the domain.</span></span><span class="EOP SCXO128471924 BCX0"> </span>

<span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See </span></span>[<span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Terms of Use</span></span>](http://go.microsoft.com/fwlink/?LinkId=151500)<span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0"> for other considerations.</span></span><span class="EOP SCXO128471924 BCX0"> </span>

<span class="EOP SCXO128471924 BCX0"> </span>

<span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">From &lt;</span></span>[<span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">https://support.microsoft.com/en-us/kb/2218556</span></span>](https://support.microsoft.com/en-us/kb/2218556)<span class="TextRun SCXO128471924 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">&gt; </span></span><span class="EOP SCXO128471924 BCX0"> </span>

<span class="EOP SCXO128471924 BCX0"> </span>

<span class="EOP SCXO128471924 BCX0"> </span>

<span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">If SYSVOL will not replicate, adjust the following registry key from "0" to "1"</span></span><span class="EOP SCXO128471924 BCX0"> </span>

<span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">HKEY\_LOCAL\_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Netlogon\\Parameters\\SysvolReady</span></span><span class="EOP SCXO128471924 BCX0"> </span>

<span class="EOP SCXO128471924 BCX0"> </span>

<span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Net stop netlogon</span></span><span class="EOP SCXO128471924 BCX0"> </span>

<span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Net start netlogon</span></span><span class="EOP SCXO128471924 BCX0"> </span>

<span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Repadmin /syncall /AeDqP</span></span><span class="EOP SCXO128471924 BCX0"> </span>

<span class="TextRun SCXO128471924 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO128471924 BCX0">Dfsrdiag pollad</span></span><span class="EOP SCXO128471924 BCX0"> </span>

<span class="EOP SCXO128471924 BCX0"></span>

# How to: Configure Windows Server to query an external NTP Server

[https://community.spiceworks.com/how\_to/5765-configure-windows-server-to-query-an-external-ntp-server](https://community.spiceworks.com/how_to/5765-configure-windows-server-to-query-an-external-ntp-server)

## Step 1: Info

This is generally performed on DCs in an Active Directory domain. Then all workstations use AD to get time from the DCs. This could also be used on a non-DC windows machine to be your NTP server for your network that you point to for all of your switches/routers and various other devices.

Again, it doesn't have to be a DC, but it makes sense for it to be, as it's not very resource intensive.

## Step 2: Elevated prompt

Open the command prompt as administrator.

You could also use a PowerShell prompt instead of command prompt if you want.

## Step 3: Stop the time service

net stop w32time

## Step 4: Set the manual peer list external servers

w32tm /config /syncfromflags:manual /manualpeerlist:0.us.pool.ntp.org,1.us.pool.ntp.org,2.us.pool.ntp.org,3.us.pool.ntp.org

## Step 5: Set the connection as reliable

w32tm /config /reliable:yes

## Step 6: Start the time service back up

net start w32time

## Step 7: Test the configururation

<div class="how-to-step steps-content " id="bkmrk-expand"><div class="step-header">  
</div><div class="step-image resized">![How to step](https://content.spiceworksstatic.com/service.community/p/how_to_step_attachments/0000079684/5406a962/attached_file/Screen_Shot_2014-09-02_at_10.22.40_PM.png)<div class="expand-wrapper">[Expand](https://content.spiceworksstatic.com/service.community/p/how_to_step_attachments/0000079684/5406a962/attached_file/Screen_Shot_2014-09-02_at_10.22.40_PM.png)</div></div><div class="step-content how-to-markdown">  
</div></div>w32tm /query /configuration

and

w32tm /query /status

# Migrate DHCP from one Server to Another

[<span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0">http://www.terminalworks.com/blog/post/2016/03/08/dhcp-server-migration-from-server-2008r2-to-server-2012r2</span></span>](http://www.terminalworks.com/blog/post/2016/03/08/dhcp-server-migration-from-server-2008r2-to-server-2012r2)<span class="EOP SCXO44467330 BCX0"> </span>

<span class="EOP SCXO44467330 BCX0"> </span>

<span class="EOP SCXO44467330 BCX0"> </span>

<span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0">netsh dhcp server export C:\\Accent\\dhcpdata.dat all</span></span><span class="EOP SCXO44467330 BCX0"> </span>

<span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0">netsh dhcp server import C:\\Accent\\dhcpdata.dat all</span></span><span class="EOP SCXO44467330 BCX0"> </span>

<div class="OutlineElement Ltr SCXO44467330 BCX0" id="bkmrk-log-into-old-server-">1. <span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0">Log into old server and run these commands:</span></span><span class="EOP SCXO44467330 BCX0"> </span>
    
    
    1. <span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0">C:\\&gt;</span></span><span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0"> netsh</span></span><span class="EOP SCXO44467330 BCX0"> </span>
    2. <span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0">netsh&gt;</span></span><span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0"> dhcp</span></span><span class="EOP SCXO44467330 BCX0"> </span>
    3. <span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0">netsh dhcp&gt;</span></span><span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0"> server</span></span><span class="EOP SCXO44467330 BCX0"> </span>
    4. <span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0">netsh dhcp server&gt;</span></span><span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0"> export C:\\Accent\\dhcpdata.dat all</span></span><span class="EOP SCXO44467330 BCX0"> </span>
2. <span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0">Make sure DHCP is installed and authorized on new server.</span></span><span class="EOP SCXO44467330 BCX0"> </span>
3. <span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0">Copy dhcpdata.dat to new server</span></span><span class="EOP SCXO44467330 BCX0"> </span>
4. <span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0">Disable DHCP service on old server</span></span><span class="EOP SCXO44467330 BCX0"> </span>
5. <span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0">Log into new server and run these commands:</span></span><span class="EOP SCXO44467330 BCX0"> </span>
    
    
    1. <span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0">C:\\&gt;</span></span><span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0"> netsh</span></span><span class="EOP SCXO44467330 BCX0"> </span>
    2. <span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0">netsh&gt;</span></span><span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0"> dhcp</span></span><span class="EOP SCXO44467330 BCX0"> </span>
    3. <span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0">netsh dhcp&gt;</span></span><span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0"> server</span></span><span class="EOP SCXO44467330 BCX0"> </span>
    4. <span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0">netsh dhcp server&gt;</span></span><span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0"> import C:\\Accent\\dhcpdata.dat all</span></span><span class="EOP SCXO44467330 BCX0"> </span>
6. <span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0">Validate and test by renewing an IP on a PC.</span></span><span class="EOP SCXO44467330 BCX0"> </span>

</div><span class="TextRun SCXO44467330 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO44467330 BCX0">That is all folks!</span></span><span class="EOP SCXO44467330 BCX0"> </span>

<span class="EOP SCXO44467330 BCX0"></span>

# NTP Server Commands

set server: w32tm /config /manualpeerlist:time.windows.com

# RADIUS

<span class="TextRun SCXO1607721 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO1607721 BCX0">Well, good 'ol Microsoft strikes again. Jacob (from Wintek) was able to isolate our NPS/RADIUS authentication problem to Windows Firewall. Even though the 1812 port exceptions were properly in place, Windows was dropping the traffic anyway. Evidently many other sys admins were having the </span></span>[<span class="TextRun SCXO1607721 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO1607721 BCX0">same problem</span></span>](https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsocial.technet.microsoft.com%2FForums%2Fen-US%2Fcf047df5-ed4a-46b9-9564-c9db5a9bc8dc%2Fwindows-server-2019-default-nps-firewall-rules-port-1812-udp-not-working%3Fforum%3Dws2019&data=04%7C01%7Ckeith.johnson%40accentconsulting.com%7Cc2c517aeace6478210ba08da039e61b3%7Cb3505beedd8d4d90b8856d94317f097c%7C0%7C0%7C637826276203757231%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=TWCUQRwmj9HUkp3KdlbJq97JThqjiRHbPfjK%2BT050Eo%3D&reserved=0)<span class="TextRun SCXO1607721 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO1607721 BCX0">, and </span></span>[<span class="TextRun SCXO1607721 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO1607721 BCX0">Microsoft's own documents</span></span>](https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fnetworking%2Ftechnologies%2Fnps%2Fnps-firewalls-configure&data=04%7C01%7Ckeith.johnson%40accentconsulting.com%7Cc2c517aeace6478210ba08da039e61b3%7Cb3505beedd8d4d90b8856d94317f097c%7C0%7C0%7C637826276203757231%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=36UxCYOd5CRQRTyGTA7Gpx7lgb83Ieoq%2BNCv%2BVmw5xY%3D&reserved=0)<span class="TextRun SCXO1607721 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO1607721 BCX0"> finally revealed the issue and answer to me:</span></span><span class="EOP SCXO1607721 BCX0"> </span>

<span class="TextRun SCXO1607721 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO1607721 BCX0"> </span></span><span class="EOP SCXO1607721 BCX0"> </span>

<span class="TextRun Highlight SCXO1607721 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO1607721 BCX0">With Server 2019 this firewall exception requires a modification to the service account security identifier to effectively detect and allow RADIUS traffic. If this security identifier change is not executed, the firewall will drop RADIUS traffic. From an elevated command prompt, run </span></span><span class="TextRun SCXO1607721 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO1607721 BCX0">sc sidtype IAS unrestricted</span></span><span class="TextRun Highlight SCXO1607721 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO1607721 BCX0">. This command changes the IAS (RADIUS) service to use a unique SID instead of sharing with other NETWORK SERVICE services.</span></span><span class="EOP SCXO1607721 BCX0"> </span>

<span class="TextRun SCXO1607721 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO1607721 BCX0"> </span></span><span class="EOP SCXO1607721 BCX0"> </span>

<span class="TextRun SCXO1607721 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO1607721 BCX0">Once I issued that command and rebooted the system, the new server can now perform RADIUS authentication. Both the Cisco WLC and Cisco Firewall have been updated to use the new server now. I would say we're finally ready to switch over the remaining roles.</span></span><span class="EOP SCXO1607721 BCX0"> </span>

<span class="TextRun SCXO1607721 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO1607721 BCX0"> </span></span><span class="EOP SCXO1607721 BCX0"> </span>

<span class="TextRun SCXO1607721 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO1607721 BCX0">Wishing both of you a great weekend,</span></span> <span class="EOP SCXO1607721 BCX0"> </span>

<span class="EOP SCXO1607721 BCX0"> </span>

<span class="EOP SCXO1607721 BCX0"> </span>

<span class="TextRun SCXO1607721 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO1607721 BCX0">Tix: 358981</span></span><span class="EOP SCXO1607721 BCX0"></span>

# Windows server 2016 Activation stuck at 10% for over 12 hours

[https://social.technet.microsoft.com/Forums/en-US/dfd6273d-2baa-4ca0-b216-28e521327cfb/windows-server-2016-activation-stuck-at-10-for-over-12-hours?forum=ws2016](https://social.technet.microsoft.com/Forums/en-US/dfd6273d-2baa-4ca0-b216-28e521327cfb/windows-server-2016-activation-stuck-at-10-for-over-12-hours?forum=ws2016)

The problem each time was that the **Windows License Manager Service** was not running. By default the service is set to **Startup Type: Manual (Trigger Start)**. I believe **dism.exe** is failing to trigger the service to start, thus halting the process. Simply starting this service, while **dism.exe** was stuck at 10%, resolved the issue 100% of the time.[![Sign in to vote](https://i1.social.s-msft.com/globalresources/Images/trans.gif?cver=0001 "Sign in to vote")](https://social.technet.microsoft.com/Forums/Account/Login?ReturnUrl=https%3a%2f%2fsocial.technet.microsoft.com%3a443%2fforums%2fen-US%2fdfd6273d-2baa-4ca0-b216-28e521327cfb%2fwindows-server-2016-activation-stuck-at-10-for-over-12-hours%3fforum%3dws2016%26prof%3drequired "Vote as helpful")

I started another thread and got an answer that helped in my case:

I needed to press enter a couple of times in the cmd window to wake the process back up.

I did this after starting the services again and it then proceeded to completion!

# WMI Filters for GPO

<span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">To make sure that each GPO associated with a group can only be applied to computers running the correct version of Windows, use the Group Policy Management MMC snap-in to create and assign WMI filters to the GPO. Although you can create a separate membership group for each GPO, you would then have to manage the memberships of the different groups. Instead, use only a single membership group, and let WMI filters automatically ensure the correct GPO is applied to each computer.</span></span><span class="EOP SCXO173692066 BCX0"> </span>

<div class="OutlineElement Ltr  BCX0 SCXO173692066" id="bkmrk-to-create-a-wmi-filt">- [<span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">To create a WMI filter that queries for a specified version of Windows</span></span>](http://technet.microsoft.com/en-us/library/jj717288.aspx#bkmk_1)<span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0"> </span></span><span class="EOP SCXO173692066 BCX0"> </span>
- [<span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">To link a WMI filter to a GPO</span></span>](http://technet.microsoft.com/en-us/library/jj717288.aspx#bkmk_2)<span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0"> </span></span><span class="EOP SCXO173692066 BCX0"> </span>

</div><span class="EOP SCXO173692066 BCX0"> </span>

<span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Administrative credentials</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0"> </span></span><span class="EOP SCXO173692066 BCX0"> </span>

<span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">To complete these procedures, you must be a member of the Domain Administrators group, or otherwise be delegated permissions to modify the GPOs.</span></span><span class="EOP SCXO173692066 BCX0"> </span>

<span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">First, create the WMI filter and configure it to look for a specified version (or versions) of the Windows operating system.</span></span><span class="EOP SCXO173692066 BCX0"> </span>

<a class="Hyperlink SCXO173692066 BCX0" rel="noreferrer noopener" target="_blank"><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">To create a WMI filter that queries for a specified version of Windows</span></span></a><span class="EOP SCXO173692066 BCX0"> </span>

<span class="LineBreakBlob BlobObject DragDrop SCXO173692066 BCX0"><span class="SCXO173692066 BCX0"> </span>  
</span><span class="EOP SCXO173692066 BCX0"> </span>

<div class="OutlineElement Ltr  BCX0 SCXO173692066" id="bkmrk-on-a-computer-that-h">1. <span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">On a computer that has the Group Policy Management feature installed, click </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Start</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">, click </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Administrative Tools</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">, and then click </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Group Policy Management</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">.</span></span><span class="EOP SCXO173692066 BCX0"> </span>
2. <span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">In the navigation pane, expand </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Forest: </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">YourForestName</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">, expand </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Domains</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">, expand </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">YourDomainName</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">, and then click </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">WMI Filters</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">.</span></span><span class="EOP SCXO173692066 BCX0"> </span>
3. <span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Click </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Action</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">, and then click </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">New</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">.</span></span><span class="EOP SCXO173692066 BCX0"> </span>
4. <span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">In the </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Name</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0"> text box, type the name of the WMI filter.</span></span><span class="EOP SCXO173692066 BCX0"> </span>

<div class="OutlineElement Ltr  BCX0 SCXO173692066"><div class="TableContainer SCXO173692066 BCX0"><div aria-hidden="true" class="WACAltTextDescribedBy SCXO173692066 BCX0" id="bkmrk-"></div><table border="0" class="Table NoBorder SCXO173692066 BCX0"><tbody class="SCXO173692066 BCX0"><tr class="TableRow SCXO173692066 BCX0" role="row"><td class="SCXO173692066 BCX0" role="rowheader"><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Note </span></span><span class="EOP SCXO173692066 BCX0"> </span>

</td></tr><tr class="TableRow SCXO173692066 BCX0" role="row"><td class="SCXO173692066 BCX0" role="rowheader"><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Be sure to use a name that clearly indicates the purpose of the filter. Check to see if your organization has a naming convention.</span></span><span class="EOP SCXO173692066 BCX0"> </span>

</td></tr></tbody></table>

</div></div>5. <span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">In the </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Description</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0"> text box, type a description for the WMI filter. For example, if the filter excludes domain controllers, you might consider stating that in the description.</span></span><span class="EOP SCXO173692066 BCX0"> </span>
6. <span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Click </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Add</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">.</span></span><span class="EOP SCXO173692066 BCX0"> </span>
7. <span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Leave the </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Namespace</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0"> value set to </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">root\\CIMv2</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">.</span></span><span class="EOP SCXO173692066 BCX0"> </span>
8. <span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">In the </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Query</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0"> text box, type:</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO173692066 BCX0"><span class="SCXO173692066 BCX0"> </span>  
    </span><a class="Hyperlink SCXO173692066 BCX0" rel="noreferrer noopener" target="_blank"><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Copy</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO173692066 BCX0"><span class="SCXO173692066 BCX0"> </span>  
    </span></a><span class="TextRun SCXO173692066 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">select \* from Win32\_OperatingSystem where Version like "6.%"</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO173692066 BCX0"><span class="SCXO173692066 BCX0"> </span>  
    </span><span class="LineBreakBlob BlobObject DragDrop SCXO173692066 BCX0"><span class="SCXO173692066 BCX0"> </span>  
    </span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">This query will return </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">true</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0"> for computers running Windows 8, Windows 7, Windows Vista, Windows Server 2012, Windows Server 2008, and Windows Server 2008 R2. To set a filter for just Windows 8 and Windows Server 2012, use "6.2%". To specify multiple versions, combine them with or, as shown in the following:</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO173692066 BCX0"><span class="SCXO173692066 BCX0"> </span>  
    </span><a class="Hyperlink SCXO173692066 BCX0" rel="noreferrer noopener" target="_blank"><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Copy</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO173692066 BCX0"><span class="SCXO173692066 BCX0"> </span>  
    </span></a><span class="TextRun SCXO173692066 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">... where Version like "6.1%" or Version like "6.2%"</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO173692066 BCX0"><span class="SCXO173692066 BCX0"> </span>  
    </span><span class="LineBreakBlob BlobObject DragDrop SCXO173692066 BCX0"><span class="SCXO173692066 BCX0"> </span>  
    </span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">To restrict the query to only clients or only servers, add a clause that includes the ProductType parameter. To filter for client operating systems only, such as Windows 8 or Windows 7, use only ProductType="1". For server operating systems that are not domain controllers, use ProductType="3". For domain controllers only, use ProductType="2". This is a useful distinction, because you often want to prevent your GPOs from being applied to the domain controllers on your network.</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO173692066 BCX0"><span class="SCXO173692066 BCX0"> </span>  
    </span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">The following clause returns </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">true</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0"> for all computers that are not domain controllers:</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO173692066 BCX0"><span class="SCXO173692066 BCX0"> </span>  
    </span><a class="Hyperlink SCXO173692066 BCX0" rel="noreferrer noopener" target="_blank"><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Copy</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO173692066 BCX0"><span class="SCXO173692066 BCX0"> </span>  
    </span></a><span class="TextRun SCXO173692066 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">... where ProductType="1" or ProductType="3"</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO173692066 BCX0"><span class="SCXO173692066 BCX0"> </span>  
    </span><span class="LineBreakBlob BlobObject DragDrop SCXO173692066 BCX0"><span class="SCXO173692066 BCX0"> </span>  
    </span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">The following complete query returns </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">true</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0"> for all computers running Windows 8, and returns </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">false</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0"> for any server operating system or any other client operating system.</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO173692066 BCX0"><span class="SCXO173692066 BCX0"> </span>  
    </span><a class="Hyperlink SCXO173692066 BCX0" rel="noreferrer noopener" target="_blank"><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Copy</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO173692066 BCX0"><span class="SCXO173692066 BCX0"> </span>  
    </span></a><span class="TextRun SCXO173692066 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">select \* from Win32\_OperatingSystem where Version like "6.2%" and ProductType="1"</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO173692066 BCX0"><span class="SCXO173692066 BCX0"> </span>  
    </span><span class="LineBreakBlob BlobObject DragDrop SCXO173692066 BCX0"><span class="SCXO173692066 BCX0"> </span>  
    </span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">The following query returns </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">true</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0"> for any computer running Windows Server 2012, except domain controllers:</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO173692066 BCX0"><span class="SCXO173692066 BCX0"> </span>  
    </span><a class="Hyperlink SCXO173692066 BCX0" rel="noreferrer noopener" target="_blank"><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Copy</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO173692066 BCX0"><span class="SCXO173692066 BCX0"> </span>  
    </span></a><span class="TextRun SCXO173692066 BCX0" data-contrast="none" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">select \* from Win32\_OperatingSystem where Version like "6.2%" and ProductType="3"</span></span><span class="LineBreakBlob BlobObject DragDrop SCXO173692066 BCX0"><span class="SCXO173692066 BCX0"> </span>  
    </span><span class="EOP SCXO173692066 BCX0"> </span>
9. <span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Click </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">OK</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0"> to save the query to the filter.</span></span><span class="EOP SCXO173692066 BCX0"> </span>
10. <span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Click </span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">Save</span></span><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0"> to save your completed filter.</span></span><span class="EOP SCXO173692066 BCX0"> </span>

</div><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">After you have created a filter with the correct query, link the filter to the GPO. Filters can be reused with many GPOs simultaneously; you do not have to create a new one for each GPO if an existing one meets your needs.</span></span><span class="EOP SCXO173692066 BCX0"> </span>

<a class="Hyperlink SCXO173692066 BCX0" rel="noreferrer noopener" target="_blank"><span class="TextRun SCXO173692066 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO173692066 BCX0">To link a WMI filter to a GPO</span></span></a><span class="EOP SCXO173692066 BCX0"> </span>

1. <span class="TextRun SCXO98862677 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO98862677 BCX0">On a computer that has the Group Policy Management feature installed, click </span></span><span class="TextRun SCXO98862677 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO98862677 BCX0">Start</span></span><span class="TextRun SCXO98862677 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO98862677 BCX0">, click </span></span><span class="TextRun SCXO98862677 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO98862677 BCX0">Administrative Tools</span></span><span class="TextRun SCXO98862677 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO98862677 BCX0">, and then click </span></span><span class="TextRun SCXO98862677 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO98862677 BCX0">Group Policy Management</span></span><span class="TextRun SCXO98862677 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO98862677 BCX0">.</span></span><span class="EOP SCXO98862677 BCX0"> </span>
2. <span class="TextRun SCXO98862677 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO98862677 BCX0">In the navigation pane, find and then click the GPO that you want to modify.</span></span><span class="EOP SCXO98862677 BCX0"> </span>
3. <span class="TextRun SCXO98862677 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO98862677 BCX0">Under </span></span><span class="TextRun SCXO98862677 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO98862677 BCX0">WMI Filtering</span></span><span class="TextRun SCXO98862677 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO98862677 BCX0">, select the correct WMI filter from the list.</span></span><span class="EOP SCXO98862677 BCX0"> </span>
4. <span class="TextRun SCXO98862677 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO98862677 BCX0">Click </span></span><span class="TextRun SCXO98862677 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO98862677 BCX0">Yes</span></span><span class="TextRun SCXO98862677 BCX0" data-contrast="auto" lang="EN-US" xml:lang="EN-US"><span class="NormalTextRun SCXO98862677 BCX0"> to accept the filter.</span></span><span class="EOP SCXO98862677 BCX0"> </span>

# Adding DNS Alias | Replacing File Server

[https://www.edwardsd.co.uk/work/2020/04/adding-dns-alias-replacing-file-server/](https://www.edwardsd.co.uk/work/2020/04/adding-dns-alias-replacing-file-server/)

[https://support.microsoft.com/en-gb/help/3181029/smb-file-server-share-access-is-unsuccessful-through-dns-cname-alias](https://support.microsoft.com/en-gb/help/3181029/smb-file-server-share-access-is-unsuccessful-through-dns-cname-alias)

[https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc835082(v=ws.10)](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc835082(v=ws.10))

When replacing a file server with new server and new name you probably want to keep the old name and add a redirect. Originally, I thought this was a simple “change the DNS IP” and job done but there’s a little bit more to it than just that!

**1) Locate OLDSERVER entry in DNS and delete it.**

**2) If the OLDSERVER server AD object still exists, you need to delete it. Failing to remove the old computer object will result in this error:**

*Unable to add NEWSERVER.*  
*as an alternate name for the computer.*  
*The error is: Cannot create a file when that file already exists.*  
*The command failed to complete successfully.*

**3) Run this command to add the server alias:**

<div id="bkmrk-netdom-computername-"><div class="syntaxhighlighter nogutter  powershell" id="bkmrk-netdom-computername--1"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="code"><div class="container"><div class="line number1 index0 alt2">`netdom computername NEWSERVER /add:OLDSERVER`</div></div></td></tr></tbody></table>

</div></div>**Note:** if you have subdomains in use (sub.domain.com) then you need to specifically define this overwise the object will add “oldserver.domain.com” rather than “oldserver.sub.domain.com”

**4) Register the machine in DNS**

<div id="bkmrk-ipconfig-%2Fregisterdn"><div class="syntaxhighlighter nogutter  powershell" id="bkmrk-ipconfig-%2Fregisterdn-1"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="code"><div class="container"><div class="line number1 index0 alt2">`IPConfig /RegisterDNS`</div></div></td></tr></tbody></table>

</div></div>**5) Run this command to check the aliases are shown on the machine**

<div id="bkmrk-netdom-computername--2"><div class="syntaxhighlighter nogutter  powershell" id="bkmrk-netdom-computername--3"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="code"><div class="container"><div class="line number1 index0 alt2">`netdom computername NEWSERVER /enum`</div></div></td></tr></tbody></table>

</div></div>**6) Final check to show what SPF entries have been created:**

<div id="bkmrk-setspn--l-newserver"><div class="syntaxhighlighter nogutter  powershell" id="bkmrk-setspn--l-newserver-1"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="code"><div class="container"><div class="line number1 index0 alt2">`setspn` `-l` `NEWSERVER`</div></div></td></tr></tbody></table>

</div></div>

# Add IIS APPPOOL to SQL Database

The `IIS APPPOOL\AppPoolName` will work, but as mentioned previously, it does not appear to be a valid AD name so when you search for it in the "Select User or Group" dialog box, it won't show up (actually, it will find it, but it will think its an actual system account, and it will try to treat it as such...which won't work, and will give you the error message about it not being found).

How I've gotten it to work is:

1. In SQL Server Management Studio, look for the **Security** folder (the security folder at the same level as the Databases, Server Objects, etc. folders...not the security folder within each individual database)
2. Right click logins and select "New Login"
3. In the Login name field, type `IIS APPPOOL\YourAppPoolName` - do not click search
4. Fill whatever other values you like (i.e., authentication type, default database, etc.)
5. Click OK

As long as the AppPool name actually exists, the login should now be created.

[![image.png](https://docs.coltscomputer.services/uploads/images/gallery/2025-09/scaled-1680-/zUQwzGxqmspXh1r2-image.png)](https://docs.coltscomputer.services/uploads/images/gallery/2025-09/zUQwzGxqmspXh1r2-image.png)