Skip to content

Instantly share code, notes, and snippets.

View CKurti-MCMTSG's full-sized avatar

Christian Kurti CKurti-MCMTSG

  • MCM Technology Solutions
View GitHub Profile
@CKurti-MCMTSG
CKurti-MCMTSG / RegistryPolViewer.ps1
Last active July 26, 2023 02:40 — forked from zbalkan/RegistryPolViewer.ps1
Registry.Pol Viewer
#Requires -Modules GPRegistryPolicyParser
#Requires -Version 5
Import-Module -Name GPRegistryPolicyParser -WarningAction Ignore
Add-Type -AssemblyName System.Windows.Forms
Add-Type -AssemblyName PresentationFramework
$Script:response = [System.Windows.Forms.MessageBox]::Show("Do you want to open current hives?`n`nClick Yes to display current hives on this computer.`nClick No to pick a `'registry.pol`' file to read.", "Open current hives?", [System.Windows.MessageBoxButton]::YesNoCancel, [System.Windows.MessageBoxImage]::Question)
switch ($Script:response)