Welcome to the Liquidware Community Site.
Current and Future Clients/Partners are Welcome.

Allow for Group Policy Cleanup at logoff within ADMX Module

Profiles often get poluted by policies and sometimes even prevent ProfileUnity from running properly. It would be nice if you could delete all applied policies at logoff so the user could start with a fresh set of policies. This would guarantee the correct policies would be in place the next logon.

The following 2 commands in application launcher do trick as well but it would be a nice addition to the Group Policies module.

powershell.exe -executionpolicy bypass -windowstyle hidden -noninteractive -nologo -command "Remove-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\* -Recurse"

powershell.exe -executionpolicy bypass -windowstyle hidden -noninteractive -nologo -command "Remove-Item -Path HKCU:\Software\Policies\* -Recurse"

Attached zip contains a Json file that adds these rules.

3 votes

Active · Last Updated

Sign In or Register to comment.