Skip to content

Instantly share code, notes, and snippets.

configuration DSCEARegistryTest1 {
param([string[]]$ComputerName='localhost')
Import-DscResource -ModuleName PSDesiredStateConfiguration
Node $ComputerName {
Registry 'CrashOnAuditFail' {
Ensure = 'Present'
Key = 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa'
@absynce
absynce / SetChromeUpdates.ps1
Created May 19, 2015 21:06
Enable or disable Chrome updates in Windows via the registry - replaces https://gist.github.com/absynce/c35b93e27ababbeb9063
# *******************************************
#
# Mod by: Jared M. Smith
# Mod on: 2015.04.xx
# Mod y?: Enable or disable Google Chrome updates.
#
# *******************************************
# Log method
if (! (test-path function:Log)) { function Log { Param([string]$message) Write-Host $message; } }