Category: Command Line

Setting the Title of the Command Prompt Window

PowerShell Prompt

I was wondering how you change the title of the Command Prompt window.  A little searching found that Scott Hanselman had answered this question here.  All you have to do is type:

and press Enter to change the title of your Command Prompt window.  It should look like the following: Note that if you are …

Continue reading

Afraid of PowerShell? Watch this video now.

I have been working more and more with PowerShell lately and I love it.  If you want to watch a great introductory 75 minute video to get up to speed quickly, look no further than here: Windows PowerShell Crash Course https://channel9.msdn.com/Events/TechEd/NorthAmerica/2012/WSV321 It is presented by Don Jones and Jeffrey Snover.  They share a number of great tricks and …

Continue reading

Want to add color to PowerShell code in your docs?

I was writing a Word document and wanted syntax highlighting for my PowerShell scripts.  It turns out that ISE (Integrated Scripting Environment) has an extension for copying text with color (and for copying text with color as HTML).  Just do the following: Install the PowerShellPack.msi file from here. Open ISE and your .ps1 PowerShell file. …

Continue reading

File Hashing Is Built Into Windows

Note: This post was updated on 08/08/2021 to include instructions for PowerShell. I always used to download the md5sum.exe and sha1sum.exe files when I needed to generate a file’s hash in Windows. I just discovered that certutil.exe, included with Windows 7 and Windows Server 2008 R2 (and later), will do this for you (I’m not …

Continue reading

Where to Store Your PowerShell Profiles

I recently decided to get on the PowerShell bandwagon again (after starting many times and then forgetting “everything”), so I went to Scott Hanselman’s blog about using the Visual Studio environment from the PowerShell prompt. I followed everything in his article except where I was supposed to store my profile (i.e. startup script) for PowerShell.  It …

Continue reading

Load more