Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
5.7 KiB

  1. Overview
  2. ========
  3. In Whistler, the default security descriptors of various objects were adjusted to tighten domain and forest security. By default, domain controllers that were upgraded to Whistler do not receive all of these security enhancements and the access control entries of existing objects are not changed.
  4. Run this script on domain controllers that have been upgraded to Whistler to ensure that an upgraded domain and all objects in the domain will have the same level of security as a freshly installed Whistler domain.
  5. Domain Security Improvements
  6. ----------------------------
  7. One example of domain security improvements in Whistler is that the Anonymous Logon token was removed from the Everyone group, so, by default, only authenticated users are be members of the Everyone group. This change improves security because, when members of the Everyone group are granted access to a resource, only authenticated users will have access to this resource.
  8. If the upgraded domain is configured to allow pre-Windows 2000 compatible access, the script will add the Anonymous Logon group to the Pre-Windows 2000 Compatible Access group. To determine if a particular domain allows pre-Windows 2000 compatible access, check the membership of the Pre-Windows 2000 Compatible Access group. If the Everyone group is member of the Pre-Windows 2000 Compatible Access group, the domain allows Pre-Windows 2000 compatible access. Running the script on this domain will add the Anonymous Logon group to the Pre-Windows 2000 Compatible Access group.
  9. For a list of the domain security changes made, see the Domain Component Output section of this document. For a list of the objects to which additional access control entries were added, see the Details section of this document. For descriptions of each of the new access control entries, see the comments in the script.
  10. Forest Security Improvements
  11. ----------------------------
  12. Active Directory stores forest configuration information in the Configuration container. The Configuration container is replicated to all domain controllers in the forest. This script will add Whistler access control entries to existing objects in the configuration container.
  13. For a list of the forest security changes made, see the Forest Component Output section below. For a list of the objects to which additional access control entries were added, see the Details section of this document. For descriptions of each of the new access control entries, see the comments in the script.
  14. Usage
  15. =====
  16. The script has two components: a domain component, and a forest component. A command line parameter specifies which component to execute.
  17. To run the domain component, you must have Global Admin rights in the domain, local Administrator rights are not sufficient for some changes. To run the forest component, you must have Enterprise Administrator rights.
  18. Run the domain component on only one domain controller that has been upgraded to Whistler in each domain in your forest. The changes will replicate to the other domain controllers in the domain.
  19. Run the forest component on only one domain controller that has been upgraded to Whistler. The changes will replicate to all of the domain controllers in the forest.
  20. You need to specify the name of the domain. The domain controller where you run the script must be a domain controller in this domain.
  21. To run the script:
  22. 1. Open a command window.
  23. 2. Type
  24. cscript UpdateDomainACL.vbs [ /Domain | /Forest ] [Domainname]
  25. Troubleshooting
  26. ===============
  27. If the upgrade of one or more access control entries fails, make sure that you are running the script with sufficient privileges. You must have Domain Administrator rights to run the domain component and Enterprise Administrator rights to run the forest component.
  28. The script will fail single updates if the sAMAccount names of the following groups were changed:
  29. - Pre-Windows 2000 Compatible Access
  30. - Cert Publishers
  31. To solve the problem, either rename the groups to their original sAMAccountName, or adjust the trustee names used in the script to the new sAMAccountNames.
  32. Script Output
  33. =============
  34. Domain Component Output
  35. -----------------------
  36. If all domain access control list updates succeed, you will see the following output:
  37. C:\>cscript UpdateDomainACL.vbs /Domain example.microsoft.com
  38. Microsoft (R) Windows Script Host Version 5.6
  39. Copyright (C) Microsoft Corporation 1996-2000. All rights reserved.
  40. Anonymous Logon to Pre-Windows 2000 Compatible Access Group added
  41. Domain Password Property Set ACE set for RU
  42. Domain Other Parameters ACE set for RU
  43. Inheritable rights on Organizational Units set on Domain Object for RU
  44. Domain policy ACE for Enterprise Domain Controllers set
  45. Domain Controller policy ACE for ED set
  46. Policy Container ACE for Enterprise Domain Controllers set
  47. AdminSDHolder ACEs set
  48. ACE for Enterprise Domain Controllers on user domain policy set
  49. ACE for Enterprise Domain Controllers on user DC policy set
  50. ACE for Enterprise Domain Controllers on machine domain policy set
  51. ACE for Enterprise Domain Controllers on machine DC policy set
  52. Forest Component Output
  53. -----------------------
  54. If all forest access control list updates succeed, you will see the following output:
  55. C:\>cscript UpdateDomainACL.vbs /Forest example.microsoft.com
  56. Microsoft (R) Windows Script Host Version 5.6
  57. Copyright (C) Microsoft Corporation 1996-2000. All rights reserved.
  58. Inherited ACE for Enterprise Domain Controllers on Sites container set
  59. Details
  60. =======
  61. The script creates additional access control entries on the following objects:
  62. Domain Component:
  63. - Domain-DNS (or the domain)
  64. - Default Domain Policy
  65. - Default Domain Controllers Policy
  66. - AdminSDHolder
  67. - Existing group policies (user and machine policies)
  68. Forest Component:
  69. - The sites container