Select the product you need help with
How do I restore security settings to a known working state?Article ID: 313222 - View products that this article applies to. This article was previously published under Q313222 To continue receiving security updates for Windows, make sure you're running Windows XP with Service Pack 3 (SP3).
For more information, refer to this Microsoft web page: Support is ending for some versions of Windows |
| Method | Supported operating systems | Pro’s | Con’s | Pre-work needed |
| Windows Backup | All Windows Servers/Clients | Can be used to backup data & restore system state | Potentially Large data set to manage. Also, you may need to replay changes after the backup that was restored. | Yes |
| System Restore | All Windows clients –Windows XP, Windows Vista
(http://windows.microsoft.com/en-us/windows-vista/System-Restore-frequently-asked-questions)
, Windows 7
(http://windows.microsoft.com/en-us/windows7/System-Restore-frequently-asked-questions)
| Can be configured to perform automatic system state backups | Doesn’t restore application data which may be inadvertently changed. | Yes |
| Security Configuration Wizard | Windows XP, Windows Vista, Windows 7, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2 | Can provide a template to restore/apply security | Only applies or views data contained within the template used | Yes |
| ICACLS /Restore | Windows XP, Windows Vista, Windows 7, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2 | Useful for backing up NTFS file permissions for reuse later if needed | It currently doesn’t offer saving permissions for other locations such as registry, services etc. | Yes |
| Troubleshooting methods | Windows XP, Windows Vista, Windows 7, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2 | Useful when none of the above mentioned tools/backup are available | This may not put the entire machine configuration in its original state before the permissions change occurred. Also, undoing such changes may break dependencies set by an application or OS component. | No |
More information
The following Security parameters may need to be addressed to resolve a permissions issue. These are parameters that are defined within security templates:
The following tools are available for troubleshooting the different security areas:
1. SecurityPolicy (Account Policies, Audit Policies, Event Log Settings and Security Options):
a) RSOP
b) Security Configuration and Analysis
c) Gpresult
d) Secedit.exe /export
2. Group_Mgmt
a) RSOP
b) Gpresult
3. User_Rights
a) RSOP
b) Security Configuration and Analysis
c) Ntrights
4. RegKeys
a) RSOP
b) Security Configuration and Analysis
c) Process Monitor
d) AccessChk
e) AccessEnum
f) Subinacl
5. Filestore
a) RSOP
b) Security Configuration and Analysis
c) Process Monitor
d) Icacls
e) Xcacls.vbs
f) AccessChk
g) AccessEnum
h) Subinacl
i) Cacls
6. Services
a) RSOP
b) Security Configuration and Analysis
c) Process Monitor
d) Sc
e) AccessChk
f) Subinacl
Following are some additional details regarding the usage of each of the tools listed above.
RSOP (Resultant Set of Policy)
Resultant Set of Policy (RSoP) is an addition to Group Policy that makes policy implementation and troubleshooting easier. RSoP is a query engine that polls existing policies and planned policies, and then reports the results of those queries. It polls existing policies based on site, domain, domain controller, and organizational unit. RSoP gathers this information from the Common Information Management Object Model (CIMOM) database (otherwise known as CIM-compliant object repository) through Windows Management Instrumentation (WMI).
What Is Resultant Set of Policy?
http://technet.microsoft.com/en-us/library/cc758010(WS.10).aspx
Using RSoP
http://technet.microsoft.com/en-us/library/cc782663(WS.10).aspx
It’s a built-in snap-in “rsop.msc” available for all supported operating systems -Windows XP or later.
Security Configuration and Analysis is a tool for analyzing and configuring local system security. Security Configuration and Analysis enables you to quickly review security analysis results and directly configure local system security. It presents recommendations alongside of current system settings and uses visual flags or remarks to highlight any areas where the current settings do not match the proposed level of security. Security Configuration and Analysis also offers the ability to resolve any discrepancies that analysis reveals. Through its use of personal databases, you can import security templates that have been created with Security Templates and apply these templates to the local computer. This immediately configures the system security with the levels specified in the template.
Analyze system security
http://technet.microsoft.com/en-us/library/cc776590(WS.10).aspx
Best practices for Security Configuration and Analysis
http://technet.microsoft.com/en-us/library/cc757894(WS.10).aspx
For syntax and additional information, refer this
NTrights.exeis a command line resource kit tool that allows you to grant or revoke user rights on a Windows computer either locally or remotely.
How to set logon user rights by using the NTRights utility
http://support.microsoft.com/kb/315276
Ntrights.exe is part of the resource kit tools which can be downloaded here
Process Monitoris one of the Sysinternals utilities that allows for monitoring of File system, Registry, Process, Thread, and DLL activity in real time. It allows us to filter the results as well as save the results in a file for review later. This tool can be used to troubleshoot security issues with file and registry access. For example: You can filter the “result” for “denied” attempts.
For additional information, please refer the link below:
http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
Download from here or Run Process Monitor now from Live.Sysinternals.com
AccessCheckis a command line program that can be used to check what kind of accesses specific users/groups have to resources such as files/directories/registry keys, global objects and Windows services. Click link below for details:
http://technet.microsoft.com/en-us/sysinternals/bb664922.aspx
Download from here
AccessEnumgives you a full view of your file system path and Registry hive security settings helping you for security holes and lock down permissions where necessary.
http://technet.microsoft.com/en-us/sysinternals/bb897332.aspx
Download from here
Sc.exe is a built-in command line tool that communicates with the Service Control Manager. It can be used to display information about a service start value, change or disable it. In the context of this article, you can use the command “sc sdshow Service_Name” to output the permissions on the service. Once you have the output, you can use the following KB article to interpret the same
Best practices and guidance for writers of service discretionary access control listshttp://support.microsoft.com/kb/914392
Also, you can run the command “sc sdset service_name DACL_in_SDDL_format” to modify the permissions.
Additional information about this can be found in the following links:
http://support.microsoft.com/kb/251192
http://technet.microsoft.com/en-us/magazine/dd296748.aspx
Additional information about this can be found in the following links:
http://support.microsoft.com/kb/919240
http://technet.microsoft.com/en-us/library/cc753525(WS.10).aspx
Collapse this table
| Area Name | Description |
| SECURITYPOLICY | Local policy and domain policy for the system. This includes account policies, audit policies, and other policies. |
| GROUP_MGMT | Restricted group settings for any groups that are specified in the security template. |
| USER_RIGHTS | User logon rights and granting of permissions. |
| REGKEYS | Security on local registry keys. |
| FILESTORE | Security on local file storage. |
| SERVICES | Security for all defined services. |
The following tools are available for troubleshooting the different security areas:
1. SecurityPolicy (Account Policies, Audit Policies, Event Log Settings and Security Options):
a) RSOP
b) Security Configuration and Analysis
c) Gpresult
(http://technet.microsoft.com/en-us/library/cc756960(WS.10).aspx)
d) Secedit.exe /export
2. Group_Mgmt
a) RSOP
b) Gpresult
(http://technet.microsoft.com/en-us/library/cc756960(WS.10).aspx)
3. User_Rights
a) RSOP
b) Security Configuration and Analysis
c) Ntrights
4. RegKeys
a) RSOP
b) Security Configuration and Analysis
c) Process Monitor
d) AccessChk
e) AccessEnum
f) Subinacl
(http://www.microsoft.com/downloads/en/details.aspx?FamilyID=E8BA3E56-D8FE-4A91-93CF-ED6985E3927B&displaylang=en)
5. Filestore
a) RSOP
b) Security Configuration and Analysis
c) Process Monitor
d) Icacls
e) Xcacls.vbs
(http://support.microsoft.com/kb/825751)
f) AccessChk
g) AccessEnum
h) Subinacl
(http://www.microsoft.com/downloads/en/details.aspx?FamilyID=E8BA3E56-D8FE-4A91-93CF-ED6985E3927B&displaylang=en)
i) Cacls
(http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/cacls.mspx?mfr=true)
6. Services
a) RSOP
b) Security Configuration and Analysis
c) Process Monitor
d) Sc
e) AccessChk
f) Subinacl
(http://www.microsoft.com/downloads/en/details.aspx?FamilyID=E8BA3E56-D8FE-4A91-93CF-ED6985E3927B&displaylang=en)
Following are some additional details regarding the usage of each of the tools listed above.
RSOP (Resultant Set of Policy)
Resultant Set of Policy (RSoP) is an addition to Group Policy that makes policy implementation and troubleshooting easier. RSoP is a query engine that polls existing policies and planned policies, and then reports the results of those queries. It polls existing policies based on site, domain, domain controller, and organizational unit. RSoP gathers this information from the Common Information Management Object Model (CIMOM) database (otherwise known as CIM-compliant object repository) through Windows Management Instrumentation (WMI).
What Is Resultant Set of Policy?
http://technet.microsoft.com/en-us/library/cc758010(WS.10).aspx
(http://technet.microsoft.com/en-us/library/cc758010(WS.10).aspx)
Using RSoP
http://technet.microsoft.com/en-us/library/cc782663(WS.10).aspx
(http://technet.microsoft.com/en-us/library/cc782663(WS.10).aspx)
It’s a built-in snap-in “rsop.msc” available for all supported operating systems -Windows XP or later.
()
Security Configuration and AnalysisSecurity Configuration and Analysis is a tool for analyzing and configuring local system security. Security Configuration and Analysis enables you to quickly review security analysis results and directly configure local system security. It presents recommendations alongside of current system settings and uses visual flags or remarks to highlight any areas where the current settings do not match the proposed level of security. Security Configuration and Analysis also offers the ability to resolve any discrepancies that analysis reveals. Through its use of personal databases, you can import security templates that have been created with Security Templates and apply these templates to the local computer. This immediately configures the system security with the levels specified in the template.
Analyze system security
http://technet.microsoft.com/en-us/library/cc776590(WS.10).aspx
(http://technet.microsoft.com/en-us/library/cc776590(WS.10).aspx)
Best practices for Security Configuration and Analysis
http://technet.microsoft.com/en-us/library/cc757894(WS.10).aspx
(http://technet.microsoft.com/en-us/library/cc757894(WS.10).aspx)
Secedit /ExportSecedit.exe is a built-in command line tool that can be used to export the local policy or the merged policy from a Windows machine. You can export the policy state from the machine in its working state and then use the /configure switch to reapply the template onto the machine when in problem state.For syntax and additional information, refer this
(http://technet.microsoft.com/en-us/library/bb490997.aspx)
.NTrights.exeis a command line resource kit tool that allows you to grant or revoke user rights on a Windows computer either locally or remotely.
How to set logon user rights by using the NTRights utility
http://support.microsoft.com/kb/315276
(http://support.microsoft.com/kb/315276)
Ntrights.exe is part of the resource kit tools which can be downloaded here
(http://www.microsoft.com/downloads/en/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en)
.Process Monitoris one of the Sysinternals utilities that allows for monitoring of File system, Registry, Process, Thread, and DLL activity in real time. It allows us to filter the results as well as save the results in a file for review later. This tool can be used to troubleshoot security issues with file and registry access. For example: You can filter the “result” for “denied” attempts.
For additional information, please refer the link below:
http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
(http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx)
Download from here or Run Process Monitor now from Live.Sysinternals.com
AccessCheckis a command line program that can be used to check what kind of accesses specific users/groups have to resources such as files/directories/registry keys, global objects and Windows services. Click link below for details:
http://technet.microsoft.com/en-us/sysinternals/bb664922.aspx
(http://technet.microsoft.com/en-us/sysinternals/bb664922.aspx)
Download from here
(http://download.sysinternals.com/files/AccessChk.zip )
()
AccessEnumgives you a full view of your file system path and Registry hive security settings helping you for security holes and lock down permissions where necessary.
http://technet.microsoft.com/en-us/sysinternals/bb897332.aspx
(http://technet.microsoft.com/en-us/sysinternals/bb897332.aspx)
Download from here
(http://download.sysinternals.com/files/AccessEnum.zip )
Sc.exe is a built-in command line tool that communicates with the Service Control Manager. It can be used to display information about a service start value, change or disable it. In the context of this article, you can use the command “sc sdshow Service_Name” to output the permissions on the service. Once you have the output, you can use the following KB article to interpret the same
Best practices and guidance for writers of service discretionary access control listshttp://support.microsoft.com/kb/914392
(http://support.microsoft.com/kb/914392)
Also, you can run the command “sc sdset service_name DACL_in_SDDL_format” to modify the permissions.
Additional information about this can be found in the following links:
http://support.microsoft.com/kb/251192
(http://support.microsoft.com/kb/251192)
http://technet.microsoft.com/en-us/magazine/dd296748.aspx
(http://technet.microsoft.com/en-us/magazine/dd296748.aspx)
Icacls.exeIcacls.exe is a built-in command line utility which allows to display or modify the discretionary access control lists (DACLs) on specified files/directories. “ICACLS path_name /save aclfile” can be use to export the ACL’s for the relevant path name(files/directories) into a text file and also be used to restore it back onto the files using the command “ICACLS path_name /restore aclfile”Additional information about this can be found in the following links:
http://support.microsoft.com/kb/919240
(http://support.microsoft.com/kb/919240)
http://technet.microsoft.com/en-us/library/cc753525(WS.10).aspx
(http://technet.microsoft.com/en-us/library/cc753525(WS.10).aspx)
Properties
Article ID: 313222 - Last Review: March 4, 2013 - Revision: 17.0
Applies to
- Microsoft Windows XP Home Edition
- Microsoft Windows XP Professional
- Windows Vista Business
- Windows Vista Enterprise
- Windows Vista Ultimate
- Windows Vista Home Basic
- Windows Vista Home Premium
- Microsoft Windows Server 2003 R2 Datacenter Edition (32-Bit x86)
- Microsoft Windows Server 2003 R2 Datacenter x64 Edition
- Microsoft Windows Server 2003 R2 Enterprise Edition (32-Bit x86)
- Microsoft Windows Server 2003 R2 Enterprise x64 Edition
- Microsoft Windows Server 2003 R2 Standard Edition (32-bit x86)
- Microsoft Windows Server 2003 R2 Standard x64 Edition
- Microsoft Windows Server 2003 Scalable Networking Pack
- Microsoft Windows Server 2003 Service Pack 1
- Microsoft Windows Server 2003 Service Pack 2
- Microsoft Windows Server 2003, Web Edition
- Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
- Microsoft Windows Server 2003, Datacenter Edition for Itanium-Based Systems
- Microsoft Windows Server 2003, Datacenter x64 Edition
- Microsoft Windows Server 2003, Enterprise x64 Edition
- Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
- Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems
- Microsoft Windows Server 2003, Standard x64 Edition
- Microsoft Windows Server 2003, Standard Edition (32-bit x86)
- Windows Server 2008 Datacenter without Hyper-V
- Windows Server 2008 Enterprise without Hyper-V
- Windows Server 2008 for Itanium-Based Systems
- Windows Server 2008 R2 Datacenter
- Windows Server 2008 R2 Enterprise
- Windows Server 2008 R2 Standard
- Windows Server 2008 Service Pack 2
- Windows Server 2008 Standard without Hyper-V
- Windows Server 2008 Datacenter
- Windows Server 2008 Enterprise
- Windows Server 2008 Standard
Keywords: | kbenv kbhowtomaster KB313222 |
Article Translations
- (الشرق الاوسط (العربية
- Brasil (Português)
- Česká republika (Čeština)
- Danmark (Dansk)
- Deutschland (Deutsch)
- España, Latinoamérica (Español)
- France (Français)
- Indonesia (Bahasa Indonesia)
- Italia (Italiano)
- Lietuva (Lietuvių)
- Magyarország (Magyar)
- Nederland (Nederlands)
- Norge (Norsk Bokmål)
- Polska (Polski)
- Portugal (Português)
- Slovenija (Slovenščina)
- Suomi (Suomi)
- Sverige (Svenska)
- Türkiye (Türkçe)
- Việt Nam (Tiếng Việt)
- Ελλάδα (Ελληνικά)
- Россия (Русский)
- भारत (हिंदी)
- ไทย (ไทย)
- 대한민국 (한국어)
- 中国 (简体中文)
- 台灣 (繁體中文)
- 日本 (日本語)


Back to the top








