Created
February 24, 2014 10:14
-
-
Save BenNeise/9185054 to your computer and use it in GitHub Desktop.
Remove AppSense CCA GUID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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