# How to fetch particular Windows Registry? **Last Updated On**: 24 Jun 2026 **6 minutes read** This document explains the steps to fetch particular Registry data and generate a report using Computer/User based Custom Script Configuration in Endpoint Central. ## Prerequisites ### Adding the Script using Template ![Read Registry Script Template](https://cdn.manageengine.com/sites/meweb/images/desktop-central/help/configurations/readreg-script-template.webp) 1. In the Endpoint Central console, go to **_Configurations > Settings > Script Repository > Templates_** ![Read Registry Script Template](https://cdn.manageengine.com/sites/meweb/images/desktop-central/help/configurations/readreg-template2.webp) 2. Using the search tool navigate to the **CheckValueDataofMultipleRegistryKeys Script** and click **Add to Repository** under the Actions column. **Note** You can use this script to extract important system information from the registry like, to check time zone settings and adjustments, to ensure Remote Desktop settings, to review the applied security GPO policy values, to retrieve the user's recent document path in the endpoints. 3. The script will now be successfully added to the Script Repository for deployment. You can view the script in the Repository tab. 4. Click **Save** to save the script. ## How to deploy the Script using Computer/User Based Custom Script Configuration 1. In the Endpoint Central console, navigate to **_Configurations > Add Configurations > Windows Configuration > Custom Script > Computer /User Configuration_** **Note:** It is recommended to use Computer Configuration when you want to fetch Registry data from the HKEY_LOCAL_MACHINE (HKLM) hive and for User Configuration from the HKEY_CURRENT_USER (HKCU) hive. ![Read Registry Computer Config](https://cdn.manageengine.com/sites/meweb/images/desktop-central/help/configurations/readreg-config.webp) **Computer based Configuration** ![Read Registry User Config](https://cdn.manageengine.com/sites/meweb/images/desktop-central/help/configurations/readreg-user-config.webp) **User based Configuration** 2. Specify the **Name** and **Description** for the configuration. 3. Click on **Repository** and choose the **Read Registry** script in the Script Name tab. 4. Provide **Script Argument** in the below given format: `"RegistryPath1" "ValueName1" "RegistryPath2" "ValueName2"` 5. **Example:** - Computer-based Configuration: `"HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" "TimeZoneKeyName"` - User-based Configuration: `"HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" "Recent"` Kindly note that giving mixed paths in the Script Argument will not be effective. 6. Exit codes confirm if the script has been executed successfully. By default, it is 0. If you have any exit codes, you can specify them here. If there are multiple exit codes, separate them with commas [,]. 7. Configure the **Frequency** as **Once**. 8. Select **Enable logging for troubleshooting** to receive the executed script's output which will be logged and displayed in the Remarks section under the Execution Status of your configuration after its execution is completed. 9. Configure the **Run As** based on the type of the configuration based on your requirement from the below options: 1. **System User:** The script will be applied at the System level, utilizing the System user account. (Applicable to Computer based configuration.) 2. **Run As User:** The script will be deployed to the target machine with the credentials you select. We recommend choosing the Domain Admin credentials to avoid access level issues. 3. **Target User:** The script will be applied to the target users configured under Define Target. (Applicable to User based configuration) 10. [Define the targets](https://www.manageengine.com/products/desktop-central/help/general/defining_targets.html) for the deployment. 11. Specify retry options, if required. 12. You can also [enable notifications](https://www.manageengine.com/products/desktop-central/help/configuration-management/configuring_execution_settings.html?trackingcode=dci&did=DIDNotAvailable&buildno=113241609#notifications) to receive emails based on the specified frequency. 13. Click on the **Deploy** or **Deploy Immediately** button to deploy the configuration in the target machines. 14. To save the configuration as a draft or template for later use, click **Save as**. ## Generating Report 1. Once the Configuration is successfully executed navigate to **_Configuration > Execution Status_**. ![Read Registry Script Template](https://cdn.manageengine.com/sites/meweb/images/desktop-central/help/configurations/readreg-generate-report.webp) 2. Click on the Column Chooser option to customize the data you want to be included in the report—preferably the Computer Name, Domain Name, Executed At and Remarks column with the script output. Click **Save**. ![Read Registry Script Template](https://cdn.manageengine.com/sites/meweb/images/desktop-central/help/configurations/readreg-export-report.webp) 3. After completing the customization of data input, click on **Export**. You can export the report in PDF, CSV or XLSX format. ![Read Registry Script Template](https://cdn.manageengine.com/sites/meweb/images/desktop-central/help/configurations/readreg-export-formats.webp) You have successfully generated a report fetching particular Registry data from your endpoints using Endpoint Central.