Script to delete Registry.pol file using SCCM SCRIPT option
Question
Hi,
I need a Script to delete Registry.pol file which can be run on collections using SCCM SCRIPT option.
in progress 0
Configuration Manager 1 year 2021-02-11T19:26:15+05:30 2021-02-11T19:26:15+05:30 2 Answers 829 views Beginner 0
Answers ( 2 )
hi Anoop,
While running the script in console, the parameter is defined. So, even if, I am running the script on collection, I have to mention the computer name.
Also, I tried it on single machine but it didn’t work, the reg.pol file is still present.
Is there any other way to achieve this for mass workstations?
Have you tried to run this script manually on the windows 10 machine abs start troubleshooting from there
You can use sccm run a script option to execute powershell scripts on Windows 10 devices
How to run a script from sccm explained here -> https://www.anoopcnair.com/sccm-run-script-step-by-step-guide/
Powershell script to delete corrupted registry pol file is given below
https://dxpetti.com/blog/2018/cleaning-up-corrupt-registry-pol-files-with-powershell/