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 2

Summary: Thomas Rayner, Microsoft Cloud & Datacenter Management MVP, shows how to back up your Windows certification authority as a part of migrating 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...

PowerTip: Send output to file and screen at the same time

Summary: Cloud & Datacenter Management MVP, Thomas Rayner, shows how to easily send data to the output of a script. (image)  How can I use Windows PowerShell to send the same data that I’m writing to a file to the standard output of my script? (image)  In Windows PowerShell 5.0, use Tee-Object, for example: PS C:\WINDOWS\system32> ...

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 Here-Strings with PowerShell

Summary: Learn the basic use of a here-string in Windows PowerShell. (image)  What is a here-string and how do I use it? (image) In PowerShell, you can use here-strings to declare blocks of text. They’re declared just like regular strings except they have an @ on each end. Instead of being limited to one line, you can ...

Sounds of the Holidays–Part 2

Summary: MVP, Thomas Rayner, continues to inspire holiday spirit by using PowerShell to trigger multimedia. Yesterday in Sounds of the Holidays–Part 1, I tried to inspire my coworker, Matthew, with some cool holiday messages. Unfortunately, Matthew is still being a Grinch and I need to step up my game. Instead of some spoken messages from...