How To Write PowerShell Functions in a Week of Blog Posts

added by DotNetKicks
4/7/2015 12:31:32 PM

426 Views

After I got to a certain level of proficiency in PowerShell (I was only swearing at it every other day instead of every single day) I fell into a rut and I got lazy. I would write dazzling one-liners that could do things, and once in a while I’d even string a couple of those together and save them out to a .PS1 file that I could run later. But I sort of stopped there. I was able to get things done, so my learning sort of tapered off. A few months ago I decided I need to up my PowerShell skills and I started turning all of those various and sundry PS1 files into functions in a .PSM1 file. My skill at writing functions is weak, so I found myself doing the same HELP and Bing searches over and over.


0 comments