Microsoft KB Archive/887303

= Applying Group Policy causes Userenv errors and events to occur on your computers that are running Windows Server 2003, Windows XP, or Windows 2000 =

Article ID: 887303

Article Last Modified on 9/4/2007

-

APPLIES TO


 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition
 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
 * Microsoft Windows Server 2003, Web Edition
 * Microsoft Windows XP Professional
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional Edition
 * Microsoft Windows 2000 Server

-



Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SUMMARY
''You may experience one or many errors and events if Group Policy is applied to the computers on your network. To determine the cause of the issue, you must troubleshoot the configuration of the computers on your network. Follow these steps to troubleshoot the cause of the issue:''


 * 1) Examine the DNS settings and network properties on the servers and client computers.
 * 2) Examine the Server Message Block signing settings on the client computers.
 * 3) Make sure that the TCP/IP NetBIOS Helper service, the Net Logon service, and the Remote Procedure Call (RPC) service are started on all computers.
 * 4) Make sure that Distributed File System (DFS) is enabled on all computers.
 * 5) Examine the contents and the permissions of the Sysvol folder.
 * 6) Make sure that the Bypass traverse checking right is granted to the required groups.
 * 7) Make sure that the domain controllers are not in a journal wrap state.
 * 8) Run the dfsutil /purgemupcache command.



SYMPTOMS
You experience one or more of the following symptoms on a computer that is running Microsoft Windows Server 2003, Microsoft Windows XP or Microsoft Windows 2000:  Group Policy settings are not applied to the computers. Group Policy replication is not completed between the domain controllers on the network. You cannot open Group Policy snap-ins. For example, you cannot open the Domain Controller Security Policy snap-in, or the Domain Security Policy snap-in. If you try to open a Group Policy snap-in, you receive one of the following error messages:

Failed to open the Group Policy Object. You may not have the appropriate rights.

Details: The account is not authorized to log in from this station.

You do not have permission to perform this operation.

Details: Access is denied.

Failed to open the Group Policy Object. You may not have the appropriate rights.

Details: The system cannot find the path specified.

 If you try to access shared files on any domain controller, you receive an error message. This symptom occurs even if you are logged on to the server, and you try to access a local share. Specifically, this symptom may affect access to a domain controller's Sysvol share. If you try to access a file share, you are repeatedly prompted for a password. If you try to access a file share, you receive an error message that is similar to one of the following error messages:

\\ \ is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions.

The account is not authorized to log in from this station.

\\ \ is not accessible.

The account is not authorized to log in from this station.

The network path was not found.

</li></ul>

If you view the Application log in Event Viewer on Windows XP or Windows Server 2003, you see events that are similar to the following events:

Event Type: Error

Event Source: Userenv

Event Category: None

Event ID: 1058

Date:

Time:

User:

Computer:

Description: Windows cannot access the file gpt.ini for GPO CN={31B2F340-016D-11D2-945F-00C04FB984F9},CN=Policies,CN=System,DC= ,DC=com. The file must be present at the location <\\ .com\sysvol\ .com\Policies\{31B2F340-016D-11D2-945F-00C04FB984 F9}\gpt.ini>. . Group Policy processing aborted. For more information, see Help and Support Center at http://support.microsoft.com.

The error message that appears in the  placeholder in Event ID 1058 may be any of the following error messages: <ul> 

The network path was not found.

</li> 

Access is denied.

</li> 

Configuration information could not be read from the domain controller, either because the machine is unavailable, or access has been denied.

</li></ul>

Event Type: Error

Event Source: Userenv

Event Category: None

Event ID: 1030

Date:

Time:

User:

Computer:

Description: Windows cannot query for the list of Group Policy objects. A message that describes the reason for this was previously logged by the policy engine. For more information, see Help and Support Center at http://support.microsoft.com.

Typically, if Event ID 1058 and Event ID 1030 occur, they are logged by client computers and member servers when the computer starts. Domain controllers log these events every five minutes.

If you view the Application log in Event Viewer on a Windows 2000-based computer, you see events that are similar to the following events:

Event Type: Error

Event Source: Userenv

Event Category: None

Event ID: 1000

Date:

Time:

User: NT AUTHORITY\SYSTEM

Computer:

Description: Windows cannot access the registry information at \\ .com\sysvol\ .com\Policies\{31B2F340-016D-11D2-945F-00C04FB984F 9}\Machine\registry.pol with.

The error code that appears in the  placeholder in Event ID 1000 may be any of the following error codes:
 * 5
 * 51
 * 53
 * 1231
 * 1240
 * 1722

<div class="cause_section">

CAUSE
These issues occur if the computers that are on your network cannot connect to certain Group Policy objects. Specifically, these objects are in the Sysvol folders on your network's domain controllers.

<div class="resolution_section">

RESOLUTION
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To resolve this issue, you must troubleshoot the configuration of your network to narrow the cause of the issue, and then correct the configuration. To troubleshoot the possible cause of this issue, follow these steps:

Step one: Examine the DNS settings and network properties on the servers and client computers
In the local area connection properties, Client for Microsoft Networks must be enabled on all servers and client computers. The File and Printer Sharing for Microsoft Networks component must be enabled on all domain controllers.

Additionally, every computer on the network must use DNS servers that can resolve SRV records and host names for the Active Directory forest where the computer is a member. Typically, a common configuration error is for the client computers to use the DNS servers that belong to your Internet service provider (ISP).

On all the computers that have logged the Userenv errors, examine the DNS settings and network properties. Additionally, check these settings on all domain controllers, whether or not they log Userenv errors.

To verify DNS settings and network properties on Windows XP-based computers in your network, follow these steps:
 * 1) Click Start, and then click Control Panel.
 * 2) If Control Panel is set to Category View, click Switch to Classic View.
 * 3) Double-click Network Connections, right-click Local Area Connection, and then click Properties.
 * 4) On the General tab, click to select the Client for Microsoft Networks check box.
 * 5) Click Internet Protocol (TCP/IP), and then click Properties.
 * 6) If Use the following DNS server addresses is selected, make sure that the IP addresses for the preferred and alternate DNS servers are the IP addresses of DNS servers that can resolve SRV records and host names in Active Directory. Specifically, the computer must not use the DNS servers that belong to your ISP. If the DNS server addresses are not correct, type the IP addresses of the correct DNS servers in the Preferred DNS server and Alternate DNS server boxes.
 * 7) Click Advanced, and then click the DNS tab.
 * 8) Click to select the Register this connection's addresses in DNS check box, and then click OK three times.
 * 9) Start a command prompt. To do this, click Start, click Run, type cmd, and then click OK.
 * 10) Type ipconfig /flushdns, and then press ENTER. Type ipconfig /registerdns , and then press ENTER.
 * 11) Restart the computer for your changes to take effect.

To verify DNS settings and network properties on Windows 2000-based computers in your network, follow these steps:
 * 1) Click Start, point to Settings, and then click Control Panel.
 * 2) Double-click Network and Dial-up Connections.
 * 3) Right-click Local area connection, and then click Properties.
 * 4) On the General tab, click to select the Client for Microsoft Networks check box.
 * 5) If the computer is a domain controller, click to select the File and Printer Sharing for Microsoft Networks check box.

Note On multi-homed Remote Access servers and Microsoft Internet Security and Acceleration (ISA) Server-based servers, you can disable the File and Printer Sharing for Microsoft Networks component for the network adaptor that is connected to the Internet. However, the Client for Microsoft Networks component must be enabled for all the server's network adaptors.
 * 1) Click Internet Protocol (TCP/IP), and then click Properties.
 * 2) If Use the following DNS server addresses is selected, make sure that the IP addresses for the preferred and alternate DNS servers are the IP addresses of DNS servers that can resolve SRV records and host names in Active Directory. Specifically, the computer must not use the DNS servers that belong to your ISP. If the DNS server addresses are not correct, type the IP addresses of the correct DNS servers in the Preferred DNS server and Alternate DNS server boxes.
 * 3) Click Advanced, and then click the DNS tab.
 * 4) Click to select the Register this connection's addresses in DNS check box, and then click OK three times.
 * 5) Start a command prompt. To do this, click Start, click Run, type cmd in the Open box, and then click OK.
 * 6) Type ipconfig /flushdns, and then press ENTER. Type ipconfig /registerdns , and then press ENTER.
 * 7) Restart the computer.

To verify DNS settings and network properties on Windows Server 2003-based computers in your network, follow these steps:
 * 1) Click Start, point to Control Panel, and then double-click Network Connections.
 * 2) Right-click the local area connection, and then click Properties.
 * 3) On the General tab, click to select the Client for Microsoft Networks check box.
 * 4) If the computer is a domain controller, click to select the File and Printer Sharing for Microsoft Networks check box.

Note On multi-homed Remote Access servers and ISA Server-based servers,, you can disable the File and Printer Sharing for Microsoft Networks component for the network adaptor that is connected to the Internet. However, the Client for Microsoft Networks component must be enabled for all the server's network adaptors.
 * 1) Click Internet Protocol (TCP/IP), and then click Properties.
 * 2) If Use the following DNS server addresses is selected, make sure that the IP addresses for the preferred and alternate DNS servers are the IP addresses of DNS servers that can resolve SRV records and host names in Active Directory. Specifically, the computer must not use the DNS servers that belong to your ISP. If the DNS server addresses are not correct, type the IP addresses of the correct DNS servers in the Preferred DNS server and Alternate DNS server boxes.
 * 3) Click Advanced, and then click the DNS tab.
 * 4) Click to select the Register this connection's addresses in DNS check box, and then click OK three times.
 * 5) Start a command prompt. To do this, click Start, click Run, type cmd, and then click OK.
 * 6) Type ipconfig /flushdns, and then press ENTER. Type ipconfig /registerdns , and then press ENTER.
 * 7) Restart the computer for your changes to take effect.

If the client computers in your network are configured to obtain their IP addresses automatically, make sure that the computer that is running the DHCP service assigns the IP addresses of DNS servers that can resolve SRV records and host names in the Active Directory.

To determine what IP addresses a computer is using for DNS, follow these steps:
 * 1) Start a command prompt. To do this, click Start, click Run, type cmd in the Open box, and then click OK.
 * 2) Type ipconfig /all, and then press ENTER.
 * 3) Note the DNS entries that are listed on the screen.

If computers that are configured to obtain IP addresses automatically are not using the correct DNS servers, view the documentation for your DHCP server for information about how to configure the DNS servers option. Additionally, make sure that each computer can resolve the IP address of the domain. To do this, type ping. at a command prompt, and then press ENTER. Alternatively, type nslookup. , and then press ENTER.

Note It is expected that this host name will resolve to the IP address of one of the domain controllers on the network. If the computer cannot resolve this name, or if the name resolves to the wrong IP address, make sure that the forward lookup zone for the domain contains valid (same as parent folder) Host (A) records.

To make sure that the forward lookup zone for the domain contains valid (same as parent folder) Host (A) records on a Windows 2000-based computer, follow these steps: <ol> On a domain controller that is running DNS, click Start, point to Programs, point to Administrative Tools, and then click DNS.</li> Expand  , expand Forward Lookup Zones, and then click the forward lookup zone for your domain.</li> Look for (same as parent folder) Host (A) records.</li> If a (same as parent folder) Host (A) record does not exist, follow these steps to create one: <ol style="list-style-type: lower-alpha;"> On the Action menu, click New Host.</li> In the IP address box, type the IP address of the domain controller's local network adaptor.</li> Click to select the Create associated pointer (PTR) record check box, and then click Add Host.</li> When you receive the following message, click Yes:

(same as parent folder) is not a valid host name. Are you sure you want to add this record?

</li></ol> </li> Double-click the (same as parent folder) Host (A) record.</li> Verify that the correct IP address is listed in the IP address box.</li> If the IP address in the IP address box is not valid, type the correct IP address in the IP address box, and then click OK.</li> Alternatively, you can delete the (same as parent folder) Host (A) record that contains an IP address that is not valid. To delete the (same as parent folder) Host (A) record, right-click it, and then click Delete.</li> <li>If the DNS server is a domain controller that is also a Routing and Remote Access server, view the following Microsoft Knowledge Base article:

292822 Name resolution and connectivity issues on a Routing and Remote Access Server that also runs DNS or WINS

</li> <li>On all computers where you add, delete, or modify DNS records, type ipconfig /flushdns at a command prompt, and then press ENTER.</li></ol>

To make sure that the forward lookup zone for the domain contains valid (same as parent folder) Host (A) records on a Windows Server 2003-based computer, follow these steps: <ol> <li>On a domain controller that is running DNS, click Start, point to Administrative Tools, and then click DNS.</li> <li>Expand  , expand Forward Lookup Zones, and then click the forward lookup zone for your domain.</li> <li>Look for the (same as parent folder) Host (A) record.</li> <li>If the (same as parent folder) Host (A) record does not exist, follow these steps to create one: <ol style="list-style-type: lower-alpha;"> <li>On the Action menu, click New Host (A).</li> <li>In the IP address box, type the IP address of the domain controller's local network adaptor.</li> <li>Click to select the Create associated pointer (PTR) record check box, and then click Add Host.</li> <li>When you receive the following message, click Yes:

(same as parent folder) is not a valid host name. Are you sure you want to add this record?

</li></ol> </li> <li>Double-click the (same as parent folder) Host (A) record.</li> <li>Verify that the correct IP address is listed in the IP address box.</li> <li>If the IP address is in the IP address box is not valid, type the correct IP address in the IP address box, and then click OK.</li> <li>Alternatively, you can delete the (same as parent folder) Host (A) record that contains the IP address that is not valid. To delete the Host (A) record, right-click (same as parent folder), and then click Delete.</li> <li>If the DNS server is a domain controller that is also a Routing and Remote Access server, view the following Microsoft Knowledge Base article:

292822 Name resolution and connectivity issues on a Routing and Remote Access Server that also runs DNS or WINS

</li> <li>On all computers where you add, delete, or modify DNS records, type ipconfig /flushdns at a command prompt, and then press ENTER.</li></ol>

Step two: Examine the Server Message Block signing settings on the client computers and member servers
The Server Message Block (SMB) signing settings define whether the computers on the network digitally sign communications. If the SMB signing settings are not configured correctly, the client computers, or the member servers, may not be able to connect to the domain controllers.

For example, SMB signing may be required by the domain controllers, but SMB signing may be disabled on the client computers. If this issue occurs, Group Policy cannot be applied correctly. Therefore, the client computers log user environment (Userenv) errors in the Application log.

Sometimes, the SMB signing settings for the Server service and the Workstation service on a domain controller may conflict with each other.

For example, SMB signing may be disabled for the domain controller’s Workstation service, but SMB signing is required for the domain controller’s Server service. In this scenario, you cannot open one or more of the domain controller’s local file shares if you are logged on to the server. Additionally, you cannot open Group Policy snap-ins if you are logged on to the server. For more information about how to troubleshoot this problem on a domain controller, click the following article number to view the article in the Microsoft Knowledge Base:

839499 You cannot open file shares or Group Policy snap-ins when you disable SMB signing for the Workstation or Server service on a domain controller

If Group Policy errors only occur on client computers and member servers, or if you determine that KB article 839499 does not apply to your situation, continue to troubleshoot the issue.

By default, SMB signing is enabled but is not required for client communication on client computers and member servers that are running Windows XP, Windows 2000, or Windows Server 2003. We recommend that you use the default configuration because the client computers can use SMB signing when it is possible, but will still communicate with servers that have SMB signing disabled.

To configure the client computers and member servers so that SMB signing is enabled but not required, you must change the values for some registry entries. To make the registry changes on the client computers, follow these steps: <ol> <li>Click Start, click Run, type regedit in the Open box, and then click OK.</li> <li>Expand the following registry subkey:

</li> <li>In the right pane, right-click enablesecuritysignature, and then click Modify.</li> <li>In the Value data box, type 0, and then click OK.</li> <li>Right-click requiresecuritysignature, and then click Modify.</li> <li>In the Value data box, type 0, and then click OK.</li> <li>Expand the following registry subkey:

</li> <li>In the right pane, right-click enablesecuritysignature, and then click Modify.</li> <li>In the Value data box, type 1, and then click OK.</li> <li>Right-click requiresecuritysignature, and then click Modify.</li> <li>In the Value data box, type 0, and then click OK.</li></ol>

After you change the registry values, restart the Server and Workstation services. Do not restart the computers because this may cause group policies to be applied, and the Group Policy settings may configure conflicting values again.

After you change the registry values and restart the Server and Workstation services on the affected computers, follow these steps: <ol> <li>View the Group Policy settings for the GPO or GPOs that apply to the affected computer accounts.</li> <li>Make sure that the group policies do not conflict with the required registry settings.</li> <li>Use the Group Policy Object Editor to view the policy settings in the following folder:

Computer Configuration/Windows Settings/Security Settings/Local Policies/Security Options

</li></ol>

On a computer that is running Windows Server 2003, the SMB signing Group Policy settings have the following names:
 * Microsoft network server: Digitally sign communications (always)
 * Microsoft network server: Digitally sign communications (if client agrees)
 * Microsoft network client: Digitally sign communications (always)
 * Microsoft network client: Digitally sign communications (if server agrees)

On a computer that is running Windows 2000 Server, the SMB signing Group Policy settings have the following names:
 * Digitally sign server communication (always)
 * Digitally sign server communication (when possible)
 * Digitally sign client communications (always)
 * Digitally sign client communications (when possible)

Typically, the SMB signing Group Policy settings are configured as &quot;Not Defined&quot;. If you define the SMB signing Group Policy settings, make sure that you understand how the settings may affect network connectivity. For more information about the SMB signing settings, click the following article number to view the article in the Microsoft Knowledge Base:

823659 Client, service, and program incompatibilities that may occur when you modify security settings and user rights assignments

If you change the GPO settings on a domain controller that is running Windows 2000 Server, follow these steps:
 * 1) Start a command prompt. To do this, click Start, click Run, type cmd in the Open box, and then click OK.
 * 2) Type secedit /refreshpolicy machine_policy /enforce, and then press ENTER.
 * 3) Restart the affected client computers.
 * 4) Re-check the SMB signing values in the registry on the client computers to make sure that they did not change unexpectedly.

If you change the GPO settings on a domain controller that is running Windows Server 2003, follow these steps:
 * 1) Start a command prompt. To do this, click Start, click Run, type cmd in the Open box, and then click OK.
 * 2) Type gpupdate /force, and then press ENTER.
 * 3) Restart the affected client computers.
 * 4) Re-check the SMB signing values in the registry on the client computers to make sure that they did not change unexpectedly.

If the SMB signing values in the registry change unexpectedly after you restart the client computers, use one of the following methods to view the applied policy settings that are applied to a client computer: <ul> <li>On a Windows XP-based computer, use the Resultant Set of Policy MMC snap-in (Rsop.msc). For more information about Resultant Set of Policy, visit the following Microsoft &quot;Resultant Set of Policy&quot; Web site:

http://technet2.microsoft.com/WindowsServer/en/library/1180b465-ea3b-4a73-8670-81fa5871a3c71033.mspx?mfr=true

</li> <li>On Windows 2000, use the Gpresult.exe command-line tool to examine the Group Policy results. To do this, follow these steps: <ol> <li>Install Gpresult.exe from the Windows 2000 Resource Kit.

Alternatively, you can download Gpresult.exe from the following Microsoft &quot;Gpresult.exe: Group Policy Results&quot; Web site:

http://support.microsoft.com/kb/927229

</li> <li>At a command prompt, type gpresult /scope computer, and then press ENTER.</li> <li>In the Applied Group Policy Objects section of the output, note the Group Policy objects that are applied to the computer account.</li> <li>Compare the Group Policy objects that are applied to the computer account that has the SMB signing policy settings on the domain controller for these Group Policy objects.</li></ol> </li></ul>

Step three: Make sure that the TCP/IP NetBIOS Helper service is started on all computers
All computers on the network must run the TCP/IP NetBIOS Helper service.

To verify that the TCP/IP NetBIOS Helper service is running on a Windows XP-based computer, follow these steps: <ol> <li>Click Start, and then click Control Panel.</li> <li>If Control Panel is in Category View, click Switch to Classic View.</li> <li>Double-click Administrative Tools.</li> <li>Double-click Services.</li> <li>In the Services list, click TCP/IP NetBIOS Helper. Verify that the value under the Status column is Started. Verify that the value under the Startup Type column is Automatic. If the Status or the Startup Type values are not correct, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Right-click TCP/IP NetBIOS Helper, and then click Properties.</li> <li>In the Startup type list, click Automatic.</li> <li>In the Service status area, if the service is not started, click Start.</li> <li>Click OK.</li></ol> </li></ol>

To verify that the TCP/IP NetBIOS Helper service is running on a Windows Server 2003-based computer, follow these steps: <ol> <li>Click Start, point to Administrative Tools, and then click Services.</li> <li>In the Services list, click TCP/IP NetBIOS Helper. Verify that the value under the Status column is Started. Verify that the value under the Startup Type column is Automatic. If the Status or the Startup Type values are not correct, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Right-click TCP/IP NetBIOS Helper, and then click Properties.</li> <li>In the Startup type list, click Automatic.</li> <li>In the Service status area, if the service is not started, click Start.</li> <li>Click OK.</li></ol> </li></ol>

To verify that the TCP/IP NetBIOS Helper service is running on a Windows 2000-based computer, follow these steps: <ol> <li>Click Start, point to Programs, point to Administrative Tools, and then click Services.</li> <li>In the Services list, click TCP/IP NetBIOS Helper Service. Verify that the value under the Status column is Started. Verify that the value under the Startup Type column is Automatic. If the Status or the Startup Type values are not correct, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Right-click TCP/IP NetBIOS Helper Service, and then click Properties.</li> <li>In the Startup type list, click Automatic.</li> <li>In the Service status area, if the service is not started, click Start.</li> <li>Click OK.</li></ol> </li></ol>

Additionally, make sure that you have not disabled one or more of the required system services by using Group Policy objects. View these policy settings by using the Group Policy Object Editor in the &quot;Computer Configuration/Windows Settings/Security Settings/System Services&quot; folder.

On Windows Server 2003 and Windows XP, you can use the Resultant Set of Policy MMC snap-in (Rsop.msc) to check all applied policy settings that are applied to a computer. To do this, click Start, click Run, type rsop.msc in the Open box, and then click OK.

On Windows 2000, use the Gpresult.exe command-line tool to examine the Group Policy results. To do this, follow these steps: <ol> <li>Install Gpresult.exe from the Windows 2000 Resource Kit.

Alternatively, to download Gpresult.exe, visit the following Microsoft &quot;Gpresult.exe: Group Policy Results&quot; Web site:

http://support.microsoft.com/kb/927229

</li> <li>At a command prompt, type gpresult /scope computer, and then press ENTER.</li> <li>In the Applied Group Policy Objects section of the output, note the Group Policy objects that are applied to the computer account.</li> <li>Compare the Group Policy objects that are applied to the computer account with the SMB signing policy settings on the domain controller for these Group Policy objects.</li></ol>

Note If the TCP/IP NetBIOS Helper service is disabled on many desktops, you can use the following sample Microsoft Visual Basic script to start the TCP/IP NetBIOS Helper service on all computers in an organizational unit (OU) at the same time.

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. <pre class="fixed_text">Set objDictionary = CreateObject(&quot;Scripting.Dictionary&quot;) i = 0 Set objOU = GetObject(&quot;LDAP://OU=Computers, OU=OUName, OU=OUName, DC=OUName, DC=OUName,DC=CompanyName, DC=com&quot;) objOU.Filter = Array(&quot;Computer&quot;) For Each objComputer In objOU objDictionary.Add i, objComputer.CN        i = i + 1 Next For Each objItem In objDictionary strComputer = objDictionary.Item(objItem) Set objWMIService = GetObject(&quot;winmgmts:{impersonationLevel=impersonate}!\\&quot; & strComputer & &quot;\root\cimv2&quot;)

Set colServices = objWMIService.ExecQuery _ (&quot;Select * from Win32_Service where Name = 'LmHosts'&quot;) For Each objService In colServices If objService.StartMode = &quot;Disabled&quot; Then objService.Change(, , , , &quot;Automatic&quot;) End If        Next Next

Step four: Make sure that Distributed File System (DFS) is enabled on all computers
All domain controllers must run the Distributed File System service because the Sysvol share is a DFS volume. Additionally, the DFS client must be enabled in the registry on all computers.

To make sure that the Distributed File System service is running on Windows Server 2003-based domain controllers, follow these steps: <ol> <li>Click Start, point to Administrative Tools, and then click Services.</li> <li>In the Services list, click Distributed File System service. Verify that the value under the Status column is Started. Verify that the value under the Startup Type column is Automatic. If the Status or the Startup Type values are not correct, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Right-click Distributed File System, and then click Properties.</li> <li>In the Startup type list, click Automatic.</li> <li>In the Service status area, if the service is not started, click Start.</li> <li>Click OK.</li></ol> </li></ol>

To make sure that the Distributed File System service is running on Windows 2000 Server-based domain controllers, follow these steps: <ol> <li>Click Start, point to Programs, point to Administrative Tools, and then click Services.</li> <li>In the Services list, click Distributed File System service. Verify that the value under the Status column is Started. Verify that the value under the Startup Type column is Automatic. If the Status or the Startup Type values are not correct, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Right-click Distributed File System, and then click Properties.</li> <li>In the Startup type list, click Automatic.</li> <li>In the Service status area, if the service is not started, click Start.</li> <li>Click OK.</li></ol> </li></ol>

For more information about a related topic, click the following article number to view the article in the Microsoft Knowledge Base:

834649 Client computers record Event ID 1030 and Event ID 1058 when DFS is not started on a Windows 2000-based domain controller

To make sure that the Distributed File System client is enabled on all client computers, follow these steps: <ol> <li>Click Start, click Run, type regedit in the Open box, and then click OK.</li> <li>Expand the following subkey:

</li> <li>Click Mup, and then in the right pane, search for a DWORD value entry that is named DisableDFS.</li> <li>If the DisableDFS entry exists and the value data is 1, double-click DisableDFS. In the Value data box, type 0, and then click OK. If the DisableDFS value data is already 0, or if the DisableDFS entry does not exist, do not make any change.</li> <li>Quit Registry Editor.</li> <li>If you changed the DisableDFS value data, restart the computer.</li></ol>

For more information about a related topic, click the following article number to view the article in the Microsoft Knowledge Base:

314494 Group policies are not applied the way you expect; &quot;Event ID 1058&quot; and &quot;Event ID 1030&quot; errors in the Application log

Step five: Examine the contents and the permissions of the Sysvol folder
By default, the Sysvol folder is located in the %systemroot% folder. The Sysvol folder contains the domain's Group Policy objects, the Sysvol and Netlogon shares, and the File Replication service (FRS) staging folder.

If the permissions on the Sysvol folder or the Sysvol share are too restrictive, group policies cannot be applied correctly, and cause user environment (Userenv) errors. Additionally, Userenv errors may occur if the Sysvol share or Group Policy objects are missing.

To make sure that the Sysvol share is available, run the net share command at a command prompt on each domain controller. To do this, follow these steps:
 * 1) Click Start, click Run, type cmd in the Open box, and then click OK.
 * 2) Type net share, and then press ENTER.
 * 3) Locate SYSVOL and NETLOGON in the list of folders.

If the Sysvol or Netlogon shares are missing from one or more domain controllers, you must troubleshoot the cause of the problem. For more information about how to troubleshoot the missing Sysvol and Netlogon shares in Windows 2000 Server, click the following article number to view the article in the Microsoft Knowledge Base:

257338 Troubleshooting missing SYSVOL and NETLOGON shares on Windows 2000 domain controllers

For more information about how to rebuild the Sysvol share in Windows Server 2003, click the following article number to view the article in the Microsoft Knowledge Base:

315457 How to rebuild the SYSVOL tree and its content in a domain

After you make sure that the Sysvol share is available, make sure that the Sysvol folder, the Sysvol share, and the root folder of the volume that contains the Sysvol folder are configured with the correct permissions. For more information about the permissions that are required by the Sysvol share and the Sysvol folder, click the following article number to view the article in the Microsoft Knowledge Base:

290647 Event ID 1000, 1001 is logged every five minutes in the Application Event log

Additionally, on Windows 2000 Server, the Everyone group must be granted Full Control permission on the root folder of the volume that contains the Sysvol folder. On Windows Server 2003, the Everyone group must be granted the Read & Execute special permission to &quot;This folder only,&quot; and the domain\Users group must be granted the following standard permissions:
 * Read & Execute
 * List Folder Contents
 * Read

Additionally, on Windows Server 2003, the domain\Users group must have the following special permissions:
 * Read & Execute permission to &quot;This folder, subfolders and files.&quot;
 * Create Folder / Append Data permission to &quot;This folder and subfolders.&quot;
 * Create Files / Write Data permission to &quot;Subfolders only.&quot;

After you verify the Sysvol permissions, make sure that the Sysvol folder contains the required Group Policy objects. To look for the required Group Policy objects, use the Gpotool.exe program from the Windows 2000 or the Windows Server 2003 Resource Kit.

To download the Windows 2000 Server Gpotool.exe program, visit the following Microsoft &quot;Gpotool.exe: Group Policy Verification Tool&quot; Web site:

http://support.microsoft.com/kb/927229

To download the Windows Server 2003 Resource Kit tools, visit the following Microsoft &quot;Windows Server 2003 Resource Kit Tools&quot; Web site:

http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

If you run the Gpotool.exe program without any options, it scans for all the Group Policy objects on all domain controllers in the domain. If you include the /checkacl switch, the tool also scans the Sysvol access control list (ACL). For detailed output when you run the Gpotool.exe program, use the /verbose switch.

Alternatively, you can manually verify the individual GPO in the SYSVOL folder. For example, if the description in the Userenv 1058 event lists the name of a GPO, you can manually verify the individual GPO in the SYSVOL folder. You can do this to make sure that it contains a USER folder, a MACHINE folder, and a Gpt.ini file. To manually verify the individual GPO in the SYSVOL folder, follow these steps:
 * 1) Start a command prompt. To do this, click Start, click Run, type cmd in the Open box, and then click OK.
 * 2) Type at   /interactive /next: cmd.exe, and then press ENTER, where   is 1 or 2 minutes later than the present time, and is written in 24-hour time format. For example, 3 minutes after 1:00 p.m. would be 13:03 in 24-hour time format.
 * 3) At the time that you specify in the previous command, a new Command Prompt window opens. Type net use j: \\domainname.com\sysvol\domainname.com\Policies\{ }, and then press ENTER, where   is the GUID of the GPO that is in the Userenv event description. For example, if the Userenv 1058 event description says, &quot;The file must be present at the location <\\ .com\sysvol\ .com\Policies\{31B2F340-016D-11D2-945F-00C04FB984 F9}\gpt.ini>,&quot; the GUID that you would use in the command is 31B2F340-016D-11D2-945F-00C04FB984F9.
 * 4) Type dir j:\*.*, and then press ENTER.
 * 5) Verify that a USER folder, a MACHINE folder, and a Gpt.ini file are listed in the folder listing for the I drive. If any one of these folders and files are missing, the computers on the network are likely to log Userenv errors in the Application log.

If one or more Group Policy objects are missing from the Sysvol folder, run the Windows Server 2003 Default Group Policy Restore Utility (Dcgpofix.exe), or the Windows 2000 Default Group Policy Restore Tool (Recreatedefpol.exe), to re-create the default Group Policy objects.

The Dcgpofix.exe program is included with Windows Server 2003. For additional information about the Dcgpofix.exe program, run the dcgpofix /? command at a command prompt.

For information about the Recreatedefpol.exe program, visit the following Microsoft Windows 2000 Default Group Policy Restore Tool Web site:

http://www.microsoft.com/downloads/details.aspx?familyid=b5b685ae-b7dd-4bb5-ab2a-976d6873129d&displaylang=en

Make sure to set the recommended exclusions when you are scanning the Sysvol drive with antivirus software. Scanning with antivirus software can block access to the required files, such as the Gpt.ini file. You must configure these exclusions for all real-time, scheduled, and manual antivirus scans. For more information about the recommended exclusions when you run antivirus programs on Windows-based servers, click the following article number to view the article in the Microsoft Knowledge Base:

822158 Virus scanning recommendations on a Windows 2000 or on a Windows Server 2003 domain controller

Step six: Make sure that the Bypass traverse checking right is granted to the required groups
The Bypass traverse checking right must be granted to the following groups on the domain controllers:
 * Administrators
 * Authenticated Users
 * Everyone
 * Pre-Windows 2000 Compatible Access

To verify that the Bypass traverse checking right has been granted on a Windows Server 2003-based domain controller, follow these steps: <ol> <li>Click Start, point to Administrative Tools, and then click Domain Controller Security Policy.</li> <li>Expand Local Policies, and then click User Rights Assignment.</li> <li>Double-click Bypass traverse checking.</li> <li>Click to select the Define these policy settings check box.</li> <li>Verify that the Administrators, Authenticated Users, Everyone, and Pre-Windows 2000 Compatible Access groups are listed for this policy setting. If any of these groups are missing, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Click Add User or Group.</li> <li>In the User and group names box, type the name of the missing group, and then click OK.</li></ol> </li> <li>Click OK to close the policy setting.</li> <li>Start a command prompt. To do this, click Start, click Run, type cmd in the Open box, and then click OK.</li> <li>Type gpupdate /force, and then press ENTER.</li></ol>

To verify that the Bypass traverse checking right has been granted on a Windows 2000 Server-based domain controller, follow these steps: <ol> <li>Click Start, point to Programs, point to Administrative Tools, and then click Domain Controller Security Policy.</li> <li>Expand Security Settings, expand Local Policies, and then click User Rights Assignment.</li> <li>Double-click Bypass traverse checking.</li> <li>Click to select the Define these policy settings check box.</li> <li>Verify that the Administrators, Authenticated Users, Everyone, and Pre-Windows 2000 Compatible Access groups are listed for this policy setting. If any one of these groups are missing, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Click Add.</li> <li>In the User and group names box, type the name of the missing group, and then click OK.</li></ol> </li> <li>Click OK to close the policy setting.</li> <li>Start a command prompt. To do this, click Start, click Run, type cmd in the Open box, and then click OK.</li> <li>Type secedit /refreshpolicy machine_policy /enforce, and then press ENTER.</li></ol>

Step seven: Make sure that the domain controllers are not in a journal wrap state
To see if a domain controller is in a journal wrap state, view the File Replication service log in Event Viewer, and search for NTFRS event ID 13568. Event ID 13568 is similar to the following Event ID: Event Type: Warning

Event Source: NtFrs

Event Category: None

Event ID: 13568

Date:

Time:

User: N/A

Computer:

Description: The File Replication Service has detected that the replica set &quot;<1>&quot; is in JRNL_WRAP_ERROR. Replica set name is : &quot;<1>&quot; Replica root path is : &quot;<2>&quot; Replica root volume is : &quot;<3>&quot;

If NTFRS event ID 13568 is logged on a domain controller, view the following Microsoft Knowledge Base article for information about how to troubleshoot journal wrap errors:

292438 Troubleshooting journal_wrap errors on Sysvol and DFS replica sets

Step eight: Run the Dfsutil /PurgeMupCache command
Run the Dfsutil.exe program with the /PurgeMupCache switch to flush the local DFS/MUP cached information. The Dfsutil.exe program is included in the Windows 2000 Server Support Tools and the Windows Server 2003 Support Tools. For more information about a related topic, click the following article number to view the article in the Microsoft Knowledge Base:

842804 A Windows Server 2003-based computer may stop responding when it is resumed from standby and events 1030 and 1058 are logged in the application log of a domain controller

Keywords: kbtshoot kbprb kbwinservperf kbmgmtservices KB887303

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.