Classes and Broadcasts: Building a PowerShell Module for Instant Visual Settings
summary
Creates a PowerShell module (published to GitHub and the PowerShell Gallery) that actually changes Windows visual effects immediately by combining Win32 APIs, registry edits and Windows broadcast messages; demonstrates Procmon and a tiny Spy++‑like listener to discover which registry keys and WM_SETTINGCHANGE parameters to send, uses PInvoke and PowerShell classes for extensibility, supports PowerShell 5+, and is already running in production to apply presets at user login without logging off or restarting.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 2:17Manage Windows visual settings
- 5:48Registry keys and effects
- 8:19SystemParametersInfo API
- 10:47P/Invoke for Windows APIs
- 11:49Broadcast messages for updates
- 14:43Monitoring broadcast messages
- 18:40Module architecture design
- 21:56PowerShell classes simplify code
- 26:14Base and derived classes
- 31:16JSON for effect definitions
- 34:09Demo: VisualEffects module
- 37:54Module features and pipeline
- 38:58Production use and presets
- 40:25Extending with registry settings
- 42:54Q&A
related talks
01h 45mWriting Award Winning PowerShell Functions and Script Modules
46mThese Are the Modules You’re Looking For: Packaging and Publishing PowerShell..
45mInteractive Enhancements to PowerShell
37mUsing Windows PowerShell to create scripts your users want to use
43mPowerShell Tooling
01h 32mOptimizing Visual Studio Code for PowerShell, 2023 Edition
48mUnexplained phenomena: powerful tricks you likely didn't know were even possible
17mPowerShell Events
