Many times we need to delete registry.pol from Windows to fix some weird issues. If you have only a few computers, you can do manual deletions with CMD or PowerShell.
CMD:
DEL "C:\Windows\System32\GroupPolicy\Machine\Registry.pol"
PowerShell:
Remove-Item "C:\Windows\System32\GroupPolicy\Machine\Registry.pol"
However, if you happen to be in charge of thousands of computers for a big company, manual deletion will be a mission impossible.
In that case, you can turn to SCCM. There are several ways to delete registry.pol via SCCM.
- Package – using a package may be the first idea that jumps into your mind. But I’d say using a package does not always work. At least, it does not work per my test.
- Application – a feasible way, but it requires detection method. This complicates the task.
- Task Sequence – you can do that. The beauty of this method is that you can specify an account used to run the task.
- Scripts – my preferred way and works perfectly as long as PowerShell is not disabled on client machines.