Registry key location for software deployed via Group Policy?
Solution 1:
Look in:
HKLM\Software\Microsoft\Windows\Current Version\Group Policy\AppMgmt. Find the key that corresponds to the software you're looking for, and delete it. Then run gpupdate /force and restart.
Solution 2:
I believe:
GPO applied to the local computer:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Group Policy\History
GPO applied to the currently logged on user:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion
\Group Policy\History
Solution 3:
Instead of deleting the key, you can also set the AppState value to 0. The original value should 9 or 17 (with removal option).
Get-ItemProperty `
-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\AppMgmt\*" `
| ForEach-Object {
if ($_. "Deployment Name" -match '^<the deployment name>$') {
$_
$answer = Read-Host "Set value?"
if ( $answer -match "(?i)Y") {
New-ItemProperty $_.PSPath -Name AppState -Value 0 -Force
}
}
}
PS: I wanted to add a comment to the accepted answer but I do not have 50 reputations as of now, so I am adding an answer here.