In this live Play by Play, PowerShell MVPs and experts Don Jones and Hicks discuss and demonstrate their approaches to using PowerShell. Very often, a problem or task is presented to an IT Pro and while PowerShell seems like a viable solution, where do they begin? Do they run a few interactive commands? Should they take the time to write a script or a series of advanced functions? When is a PowerShell workflow the right solution? How does DSC fit into the picture? Don and Jeff will explore all of these decision points and offer plenty of practical advice and guidance and they'll do it by tackling a task they've never done before, so that you can see the exact process they use.
Jeffery Hicks is a Microsoft MVP in Windows PowerShell and an IT veteran with many years of experience, much of it spent as an IT consultant specializing in Microsoft server technologies with an emphasis in automation and efficiency.
Introduction Hi, I'm Don Jones, Curriculum Director for IT Pro Content at Pluralsight. Joining me today is Jeff Hicks, a fellow PowerShell MVP, co-author on several books, good friend. Welcome, Jeff. Thank you, glad to be here. So, today we're going to talk about something that I think a lot of folks struggle with, well, any new technology maybe, but especially so with PowerShell, because there's no buttons to hover over and menus to choose from, and it's how do you get started? I mean, given a task, what's the process that an experienced person actually follows to figure that task out and complete it? Because if you can replicate that process, well, then you can actually teach yourself quite a bit with PowerShell.
Moving from Command to Tool Now it's just a matter of, okay what do I want to do with this? I want to make a tool out of it. Because I want to be able to, like today, that's the range of address I want. I don't want to have to always hardcode something, here. I'm just going to go to a brand new window here. So we know we've got something useful. So let's, let's come here, and I'm just going to copy and paste, Ctrl+C, come over here, Ctrl+V. And I like to start with just making it a script. Tools and functions, all of that can come later. Because then I can incrementally add the features, I can turn variables into parameters, and all that. Change it to, like, 205 though, so it goes quicker. Quicker, yeah. And fewer error messages. Those are scary.