Skip to content

Instantly share code, notes, and snippets.

@cparmn
cparmn / AMSI-Authenticode.ps1
Created March 20, 2023 17:13
AMSI Provider Information
function AMSI-Authenticode {
param (
[Parameter(Mandatory=$false)]
[switch]$EnableAuthenticodeSigning,
[switch]$DisableAuthenticodeSigning
)
if ($EnableAuthenticodeSigning) {
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\AMSI" -Name "FeatureBits" -Value 0x2 -Type DWord