Skip to content

Commit 79fe7d2

Browse files
Address feedback review
1 parent 0d17dd3 commit 79fe7d2

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

docs/windows/redist-version-auditing.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@ ms.author: msaleh
1313

1414
# How to audit Visual C++ Runtime version usage within your organization
1515

16-
The Microsoft Visual C++ Redistributable and the Visual C++ Studio Runtime (collectively, "VC Runtime") is a critical component to thousands of applications. Across your enterprise network, machines may still be running applications that install and use an out-of-support version of the VC Runtime. NTFS File Auditing can be used to identify such usage as a step towards helping you replace these applications with ones that take a dependency on a supported version of the VC Runtime. This guide will walk you through setting up NTFS File Auditing, provide troubleshooting tips, and highlight the benefits of regular audits.
16+
The Microsoft Visual C++ Redistributable and the Visual Studio C++ Runtime (collectively, "VC Runtime") are critical components to thousands of applications. Across your enterprise network, machines may still be running applications that install and use an out-of-support version of the VC Runtime. NTFS File Auditing can be used to identify such usage as a step towards helping you replace these applications with ones that take a dependency on a supported version of the VC Runtime. This guide will walk you through setting up NTFS File Auditing, provide troubleshooting tips, and highlight the benefits of regular audits.
1717

1818
For details on the versions of VC Runtime no longer supported, see [Microsoft Visual C++ Redistributable latest supported downloads](/cpp/windows/latest-supported-vc-redist).
1919

2020
## Enabling NTFS File Auditing to determine usage of VC Runtime
2121

2222
NTFS File Auditing can be used to determine which process is calling VC Runtime files. You can use this information on machines with legacy versions of the VC Runtime already installed to determine which applications are calling the unsupported versions of the VC Runtime.
2323

24-
This guide will first provide steps to manually enable NTFS File Auditing and review logs. Because there are several component files that can be used by an application, this guide also provides and recommends that you use PowerShell's [Get-Acl](/powershell/module/microsoft.powershell.security/get-acl) and [Set-Acl](/powershell/module/microsoft.powershell.security/set-acl) cmdlets to update Auditing permissions. For details on how to configure the audit policies on a file, see [Apply a basic audit policy on a file or folder.](/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/apply-a-basic-audit-policy-on-a-file-or-folder)
24+
This guide will first provide steps to manually enable NTFS File Auditing and review logs. Because there are several component files that can be used by an application, this guide also shows how to use PowerShell's [Get-Acl](/powershell/module/microsoft.powershell.security/get-acl) and [Set-Acl](/powershell/module/microsoft.powershell.security/set-acl) cmdlets to update Auditing permissions. For details on how to configure the audit policies on a file, see [Apply a basic audit policy on a file or folder.](/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/apply-a-basic-audit-policy-on-a-file-or-folder)
2525

2626
### Manually enable object access auditing on the system
2727

2828
Object access must be enabled before you enable file level auditing.
2929

30-
1. Open the Group Policy Editor (with gpedit.msc).
31-
2. Navigate to Computer Configuration > Windows Settings > Security Settings > Advanced Audit Policy Configuration > System Audit Policies > Object Access.
32-
3. Double-click on Audit File System. In the Audit File System Properties dialog, select Configure the following audit events, select Success and then select OK.
33-
4. Close the policy editor app
30+
1. Open Group Policy: Press Windows + R to open the **Run** dialog , type `gpedit.msc`, and press Enter.
31+
2. Navigate to **Computer Configuration** > **Windows Settings** > **Security Settings** > **Advanced Audit Policy Configuration** > **System Audit Policies** > **Object Access**.
32+
3. Double-click on **Audit File System**. In the **Audit File System Properties** dialog, select **Configure the following audit events**, select **Success** and then select **OK**.
33+
4. Close the Group Policy Editor app
3434

3535
Alternatively, you may use auditpol.exe to enable object access.
3636

@@ -41,35 +41,35 @@ Alternatively, you may use auditpol.exe to enable object access.
4141

4242
To monitor which process is accessing a VC Runtime file, enable auditing on the file.
4343

44-
1. Right-click on the file that you want to audit, select Properties, and then select Security tab.
44+
1. Right-click on the file that you want to audit, select **Properties**, and then select **Security** tab.
4545

4646
* See the section below [VC Runtime installed locations](#vcruntime_install_location) to find the VC Runtime files installed on a machine.
4747

48-
2. Select Advanced.
48+
2. Select **Advanced**.
4949

50-
3. In the Advanced Security Settings dialog box, select Auditing tab and then select Continue.
50+
3. In the **Advanced Security Settings** dialog box, select **Auditing** tab and then select **Continue**.
5151

52-
4. To add a new auditing rule, select Add. In the Auditing Entry dialog, select a principal, then type the name of the user or group you want to add (Everyone) and then select OK.
52+
4. To add a new auditing rule, select **Add**. In the **Auditing Entry** dialog, select a principal, then type the name of the user or group you want to add (Everyone) and then select OK.
5353

54-
5. In the Type box, use the default of Success.
54+
5. In the Type box, use the default of **Success**.
5555

56-
6. Select Show advance permissions, select Clear all and then select Traverse folder / execute file, and select OK.
56+
6. Select **Show advance permissions**, select **Clear all** and then select **Traverse folder / execute file**, and select **OK**.
5757

58-
7. At this point there should be a new row in the Auditing entries: matching what you have selected. Select OK.
58+
7. At this point there should be a new row in the **Auditing** entries matching what you have selected. Select **OK**.
5959

60-
8. In the Properties Dialog, select OK.
60+
8. In the **Properties** Dialog, select **OK**.
6161

6262
The audit rule is enabled now.
6363

6464
### Manually review audit logs
6565

6666
NTFS File Auditing will generate ["Event 4663: An attempt was made to access an object"](/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4663) for each file that includes + audit permission and the+ process accessing process namethe file.
6767

68-
1. Open Event Viewer: Press Windows + R, type `eventvwr.msc`, and press Enter.
68+
1. Open Event Viewer: Press Windows + R to open the **Run** dialog , type `eventvwr.msc`, and press Enter.
6969

70-
2. Navigate to Security Logs: In the Event Viewer, expand Windows Logs and select Security. The results pane lists individual security events.
70+
2. Navigate to Security Logs: In the Event Viewer, expand Windows Logs and select **Security**. The results pane lists individual security events.
7171

72-
3. Filter and Analyze the Logs: Use the Filter Current Log option to narrow down the events to Event ID 4663 (Audit Success for the File System Category).
72+
3. Filter and Analyze the Logs: Use the **Filter Current Log** option to narrow down the events to Event ID 4663 (Audit Success for the File System Category).
7373

7474
For an example of a File Access Auditing Event 4663, see ["4663(S): An attempt was made to access an object."](/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4663)
7575

@@ -140,7 +140,7 @@ ForEach-Object {
140140

141141
### PowerShell: Viewing file auditing events
142142

143-
PowerShell provides Get-WinEvent to obtain event records for various event logs.
143+
PowerShell provides `Get-WinEvent` to obtain event records for various event logs.
144144

145145
The following PowerShell section of code will list all of the Auditing Event 4663 records over the past 24 hours.
146146

@@ -193,15 +193,15 @@ ResourceAttributes : S:AI
193193
194194
### Next steps after auditing VC Runtime usage
195195
196-
After you have determined which processes are using the VC Runtime files or installing the VC Redistributable, uninstall those applications or upgrade them to newer versions that do not depend on unsupported VC Runtimes.
196+
After you have determined which processes are using the VC Runtime files or which applications have installed the VC Redistributable, uninstall those applications or upgrade them to newer versions that don't depend on unsupported VC Runtimes.
197197
198-
Note that some Microsoft applications do require legacy versions of the VC Runtime. For details, see [Visual C++ Redistributable and runtime libraries FAQ | Microsoft Learn](/lifecycle/faq/visual-c-faq).
198+
Some Microsoft applications require legacy versions of the VC Runtime. For details, see [Visual C++ Redistributable and runtime libraries FAQ | Microsoft Learn](/lifecycle/faq/visual-c-faq).
199199
200200
<a id="vcruntime_install_location"></a>
201201
202-
## VC Runtime installed locations
202+
## VC Runtime installation locations
203203
204-
The following section lists where each version of the VC Runtime component files are installed.
204+
The following is where each version of the VC Runtime is installed.
205205
206206
| **Visual Studio Version**| **Installed Location(s)**|
207207
| ------------- | ------------- |
@@ -213,6 +213,6 @@ The following section lists where each version of the VC Runtime component files
213213
214214
## See also
215215
216-
* [Redistributing Visual C++ Files](redistributing-visual-cpp-files.md)
217-
* [The latest supported Visual C++ downloads](latest-supported-vc-redist.md)
218-
* [Lifecycle FAQ - Visual C++ Redistributable and runtime libraries](/lifecycle/faq/visual-c-faq)
216+
[Redistributing Visual C++ Files](redistributing-visual-cpp-files.md)<br/>
217+
[The latest supported Visual C++ downloads](latest-supported-vc-redist.md)<br/>
218+
[Lifecycle FAQ - Visual C++ Redistributable and runtime libraries](/lifecycle/faq/visual-c-faq)

0 commit comments

Comments
 (0)