PowerShell Tip: Pipe to the Windows Clipboard

Through this blog post, I discovered the wonderful clip, which allows you to pipe to the clipboard from PowerShell (or cmd).

The IT department at my company has a weird scheme that they like to use for assigning computer names, so I find myself running a PowerShell command like this several times a week when I need to summon my cryptic computer name:

$Env:COMPUTERNAME | clip

1 comments :

Rasmus Bækgaard said...

This is useful!

Thanks a bunch'