Uninstall Windows Updates Based On Date

I recently needed a quick PowerShell script to uninstall windows updates based on date. In the example below, i wanted to uninstall any Windows Updates that had been installed on or after 01/01/2022. cls $ListOfHotfixes = Get-HotFix | Select hotfixid,description,installedby,@{label=”InstalledOn”;e={[DateTime]::Parse($_.psbase.properties[“installedon”].value,$([System.Globalization.CultureInfo]::GetCultureInfo(“en-US”)))}} … Continue reading

|

Installing Fonts with PowerShell

The mechanism of installing fonts with PowerShell works slightly differently since the Windows 10 1809 feature update. Previously we could use this one-liner: (New-Object -ComObject Shell.Application).Namespace(0x14).CopyHere(“C:\Build\Font\A39WB_.TTF”,0x14); But since 1809 this installs the font to the per-user location as opposed to … Continue reading

|