Skip to content

Instantly share code, notes, and snippets.

View danmansfield's full-sized avatar

Dan Mansfield danmansfield

View GitHub Profile
@danmansfield
danmansfield / WindowsSecurityBaseline.ps1
Created March 11, 2021 10:06
Manages various security settings through local group policy, without the need for a domain controller or Azure AD. Allows for central management of Windows Defender when combined with event ID monitoring from your RMM of choice. Errors are also written to the event log for monitoring purposes.
<#
.SYNOPSIS
Configures Windows Defender and various security settings.
.DESCRIPTION
This script uses the PolicyFileEditor PowerShell Module to manage local group policy settings of Windows Defender and various other OS security related settings.
.EXAMPLE
./WindowsSecurityBaseline.ps1 -ASRMode 2
.LINK
Required PowerShell Module: https://www.powershellgallery.com/packages/PolicyFileEditor
Group Policy Registry Lookup: https://gpsearch.azurewebsites.net/