Skip to main content

Audit-FolderRedirection

Purpose

This solution will provide data related to folder redirection on target machines.
It can be utilized to visually see users with an effective folder redirection policy, what folders are being redirected, and to where they are being redirected. Redirected folders will be displayed in red in the dataview.

Associated Content

ContentTypeFunction
EPM - Data Collection - Custom Table - plugin_proval_gpo_redirection_auditCustom TableHolds returned data from the target and is called by the dataview.
EPM - Data Collection - Dataview - Redirection-AuditDataviewDisplays data from targets.
EPM - Data Collection - Script - Audit - GPO Redirection SettingsScriptThis script will audit the registry settings associated with any group policy redirection settings. It will populate EPM - Data Collection - Custom Table - plugin_proval_gpo_redirection_audit with its returned data.
CWM - Automate - Script - OverFlowedVariable - SQL Insert - ExecuteScriptUsed by EPM - Data Collection - Script - Audit - GPO Redirection Settings to populate the data into the table as a safety precaution against potential overflowed variables coming into the RMM.
CWM - Automate - Script - PowerShell Response - All Errors - CheckScriptThis script will take a parent's psout variable and check it for known common errors, convert that error into a human-readable format, and log that error in human-readable format on the script log. This is particularly useful when attempting to determine why a PowerShell command didn't run as expected and can be instrumental in testing, troubleshooting, and development of future scripts. This script has been used in 12 scripts as a method of troubleshooting; it has gone from 3 known errors to now 7 and can be added to quite easily.

Implementation

  1. Import the EPM - Data Collection - Script - Audit - GPO Redirection Settings script.
  2. Import the EPM - Data Collection - Dataview - Redirection-Audit dataview.
  3. Schedule the script as desired, via monitor or scheduled script.
  4. Review the Dataview for results.

FAQ

  1. What happens if I run this on a schedule? Will the table bloat?
    1. Not necessarily. If the script is run multiple times on the same machine, it will update the 'value' column in the custom table only, using the computerID, the User, and the PropertyName as the primary keys. So, unless a new user is added, data will simply be changed rather than added. On average, one computer with one user will render about 16 KiB of data in the table.