Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Migrate Windows CA from CSP to KSP and from SHA-1 to SHA-256: Part 1

Summary: Thomas Rayner, Microsoft Cloud & Datacenter Management MVP, shows how to start the migration of a Windows certification authority from CSP to KSP and from SHA-1 to SHA-256. Hello! I’m Thomas Rayner, a proud Cloud & Datacenter Management Microsoft MVP, filling in for The Scripting Guy this week. You can find me on Twitter (@...

PowerTip: Use PowerShell to add exclusion folder to Windows Defender

Summary: Use Windows PowerShell to add an exclusion folder to Windows Defender. (image)  How can I add the C:\temp folder to the exclusion list so it is not scanned by Windows Defender? (image)  Use the Add-MpPreference cmdlet and specify the exclusion path, for example: Add-MpPreference -ExclusionPath "C:\Temp" Note  You must run Windows ...

PowerTip: Flush file system cache by using PowerShell

Summary: Use Windows PowerShell to forcibly write the file system cache to a drive. (image)  How can I use Windows PowerShell to forcibly flush the volume cache by writing it to a drive? (image)  Use the Write-VolumeCache cmdlet and specify the drive letter, for example: Write-VolumeCache c Note  There is no colon following the drive ...