Endpoint Hardening (& EDR)
Get-ADComputer <ComputerName> -Properties ms-Mcs-AdmPwd
Get-LocalGroupMember -Group "Administrators"
Add-MpPreference -AttackSurfaceReductionRules_Ids <RuleID> -AttackSurfaceReductionRules_Actions Enabled
<FilePublisherCondition PublisherName="*" ProductName="*" BinaryName="*"> <FilePathRule Path="%USERPROFILE%\Downloads\*" /> </FilePublisherCondition>
New-NetFirewallRule -DisplayName "Block Workstation-to-Workstation" -Direction Inbound -Action BlockNew-NetFirewallRule -DisplayName "Block LOLBin Outbound" -Direction Outbound -Program "C:\Windows\System32\certutil.exe" -Action Block
Get-WinEvent -LogName "Microsoft-Windows-Windows Defender/Operational" | Where-Object { $_.Id -eq 1117 }
Last updated