Skip to content

Instantly share code, notes, and snippets.

reg add "HKLM\SOFTWARE\Policies\Adobe\Acrobat Reader\DC\FeatureLockDown" /v bShowEULAPrompt /t REG_DWORD /d 0 /f
@domhoward14
domhoward14 / gist:3349c5a9f49e192f371168126cf29d4a
Created September 10, 2024 18:31
suppress application output
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\UserChoice" /v ProgId /t REG_SZ /d AcroExch.Document.11 /f
reg add "HKEY_CLASSES_ROOT\AcroExch.Document.11\shell\open\command" /ve /t REG_SZ /d "\"C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe\" \"%1\"" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\Features" /v TamperProtection /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v DisableAntiVirus /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableBehaviorMonitoring /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableOnAccessProtection /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableScanOnRealtimeEnable /t REG_DWORD /d 1 /f
D:\Office2019-setup.exe /configure D:\office-config.xml
D:\AdbeRdr11000_en_US.exe /sALL
D:\AdbeRdrUpd11023.msp /quiet
@domhoward14
domhoward14 / SystemUser-TakeOwnership.psh
Last active September 6, 2024 22:47
view windows registry 32 and 64 bit subkeys
function TakeOwnership-RegistryKey {
param (
[string]$RegistryPath,
[string]$UserAccount = "Phil" # Explicitly specify the user account
)
# Open the 64-bit registry key
try {
$key = [Microsoft.Win32.RegistryKey]::OpenBaseKey(
[Microsoft.Win32.RegistryHive]::LocalMachine,