r/PowerShell • • Sep 17 '21

Question Why do Powershell cmdlets change so much?

I've been trying to follow along a month of lunches, and quite a few commands can't be used anymore. How is one supposed to follow along?

Why do they keep changing them?

Won't this mess up people's scripts that they've written before? When are they going to stop changing them.. and why do they change them? Makes me a bit worried.

I want to master Powershell, but if the cmdlets keep changing, wtf?

Thanks.

1 Upvotes

22 comments sorted by

View all comments

3

u/silenceredirectshere Sep 17 '21

What edition of the book are you using? Things are evolving as is the case with any programming language.

What's your future use case for Powershell? There might be more current resources for learning, but it depends on what you need to learn.

2

u/Reddit_Sux_Hardcore Sep 17 '21

I'm on the 3rd edition, but things have changed even since then.

I just want to master Powershell for work purposes. I'll be stealing/building on other people's scripts for the most part.

3

u/silenceredirectshere Sep 17 '21

I think the third edition is now five years old, you're better off searching for specific concepts you need and going through the Microsoft docs when necessary, after you've gotten the basic syntax down.

1

u/Reddit_Sux_Hardcore Sep 17 '21

Ok I'll do that sir, thanks.

3

u/Ironic_Jedi Sep 17 '21

It's important to remember that windows 10 computers will generally have 5.1 installed. So unless you are writing scripts mainly for yourself that will run on your own machine/server then you should generally stick with 5.1 commands.

Don't forget there are plenty of modules you can install? I use the Az module a lot as I work with azureAD and intune joined devices.

I have one machine running the latest powershell version but my workhorse pc does not as I more often than not target 'standard ' windows devices.

Just something to keep in mind.