Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F35444723
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
View Options
diff --git a/scripts/uninstall_CA.ps1 b/scripts/uninstall_CA.ps1
new file mode 100644
index 0000000..73c8866
--- /dev/null
+++ b/scripts/uninstall_CA.ps1
@@ -0,0 +1,28 @@
+# let current powershell execute this script:
+# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process
+
+param (
+ [Switch]$list
+ , [Switch]$delete
+)
+
+$allgnupgcerts = Get-ChildItem -Path Cert:\CurrentUser\Root\ -recurse | Where-Object {$_.Subject -match "GnuPG Outlook Add-in Local Root CA"}
+
+if ($allgnupgcerts) {
+ if ($list -eq $true) {
+ Out-GridView -InputObject $allgnupgcerts
+ }
+ elseif ($delete -eq $true) {
+ forEach ($i in $allgnupgcerts) {
+ $thisTP = ($i).Thumbprint
+ Write-Host "Removing CA Certificate $thisTP from registry of current user"
+ Remove-Item "HKCU:\Software\Microsoft\SystemCertificates\Root\Certificates\$thisTP" -Force
+ }
+ }
+ else {
+ Write-Host "Use either -list or -delete flags to tell what you want to do!"
+ }
+}
+else {
+ Write-Host "No GnuPG Outlook Add-in Local Root CA certificate found for current user."
+}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Feb 8, 3:08 PM (1 d, 9 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
bf/db/278499ac17bd0b25ab1e59852ec1
Attached To
rOJ GpgOL.js
Event Timeline
Log In to Comment