Disable PCA (Windows' Program Compatibility Assistant)

Apr 24, 2014 at 8:53 AM
Does BoxStarter have an easy way to disable the PCA (Program Compatibility Assistant)?

Here's a guide how to do it manually:
Apr 25, 2014 at 3:36 PM
It certainly looks like something that can be scripted. So we could add a function to Boxstarter and in the meantime, you could create a package to perform the disabling it would likely look like this:
if(!(Test-path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppCompat')) {
    New-Item 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppCompat'
Set-ItemProperty 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppCompat' -Name DisablePCA -Value 1
$svc = Get-Service PCASVC -ErrorAction SilentlyContinue
if($svc) {
    Set-Service PCASVC -startuptype disabled
    Stop-Service PCASVC
Apr 25, 2014 at 3:57 PM
Adding a function sounds nice.
Thanks for the example!