My MDT PowerShell Template
I’ve recently come to really appreciate PowerShell as the most versatile and powerful language available natively in any/all Windows OS. i.e. 2 lines of code to ensure laptop battery is plugged in and prompt the user. If ((Get-WmiObject -Query “SELECT * From Win32_Battery”).BatteryStatus -ne 2) { Write-Host “Please plug in your laptop” } An equivalent… Read More »