Scripting Blog [archived]

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

PowerTip: Use PowerShell to Display Known Colors

Summary: Boe Prox shows how to find all known colors on your computer. (image)  How can I use Windows PowerShell to find known colors on my computer and their hex representations? (image)  Use the Add-Type cmdlet as follows: Add-Type –assemblyName PresentationFramework [windows.media.colors] | Get-Member -static -Type Property...

PowerTip: Restore Default PSSession Endpoints

Summary: Learn how to restore default PSSession endpoints. (image)  How do I restore my default PSSession endpoints if I accidently unregistered them? (image)  Use Enable-PSRemoting to automatically rebuild the remote endpoints on your system: Get-PSSessionConfiguration Enable-PSRemoting –Force #Now try it again Get-...