Skip to content

Instantly share code, notes, and snippets.

@BenNeise
Created February 24, 2014 10:14
Show Gist options
  • Save BenNeise/9185054 to your computer and use it in GitHub Desktop.
Save BenNeise/9185054 to your computer and use it in GitHub Desktop.
Remove AppSense CCA GUID
# Remove AppSense CCA GUID
# "Removing values"
If (Get-ItemProperty -Path "HKLM:\Software\AppSense Technologies\Communications Agent" -name "machine id" -ErrorAction SilentlyContinue){
Remove-ItemProperty -Path "HKLM:\Software\AppSense Technologies\Communications Agent" -name "machine id"
}
If (Remove-ItemProperty -Path "HKLM:\Software\AppSense Technologies\Communications Agent" -name "group id" -ErrorAction SilentlyContinue){
Remove-ItemProperty -Path "HKLM:\Software\AppSense Technologies\Communications Agent" -name "group id"
}
# "Removing subkeys"
Get-Childitem "HKLM:\Software\AppSense\Environment Manager" | Remove-Item
# "Removing folders"
If (Test-Path "%systemdrive%\AppSenseVirtual"){
Get-Childitem "%systemdrive%\AppSenseVirtual" | Remove-Item $_
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment