Enable Best Practices. Extend ISE. Get This NOW.

Fellow MVP Jeff Hicks took me up on a challenge and created a free PowerShell ISE add-in that, when invoked, will expand all aliases in your script into their full cmdlet names.  Get it now . Go on, I'll wait. This is something you've been able to do with PrimalScript and, with a free add-in, in PowerGUI - but now it's in the built-in native ISE. I always tell students to avoid aliases (except really obvious ones like dir) in favor of full cmdlet names, because the full cmdlet names are obviously easier to read. Better script maintainability = better scripts. But now you can have the convenience of typing aliases (or pasting them from elsewhere) and converting them automagically. This'll only work if the aliases you use are loaded into the ISE, meaning any aliases from an add-in module won't work unless the module is loaded.

Don Jones

April 8, 2011

1 Min Read
ITPro Today logo in a gray background | ITPro Today

Fellow MVP Jeff Hicks took me up on a challenge and created a free PowerShell ISE add-in that, when invoked, will expand all aliases in your script into their full cmdlet names.Get it now. Go on, I'll wait.

This is something you've been able to do with PrimalScript and, with a free add-in, in PowerGUI - but now it's in the built-in native ISE. I always tell students to avoid aliases (except really obvious ones like dir) in favor of full cmdlet names, because the full cmdlet names are obviously easier to read. Better script maintainability = better scripts. But now you can have the convenience of typing aliases (or pasting them from elsewhere) and converting them automagically. This'll only work if the aliases you use are loaded into the ISE, meaning any aliases from an add-in module won't work unless the module is loaded.

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like