r/PowerShell • u/Reddit_Sux_Hardcore • 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
6
u/[deleted] Sep 17 '21
Like what commands are you talking here? I've used the same ones for AD, Office 365 for a while without issue. Sure, there may be some that get updated/added parameters, or even new cmdlts that will add functionality. There's also some that will lose support over time in favor of something new to replace it.
The only time I can recall in the last five-ish years of having to update a script for something new is because a new command came out (Exchange Online PowerShell V2 for example) or the SharePoint-PnP module getting sunset in favor of PnP.PowerShell. While the commands are the same, it just may require a different module.
If you follow the community or this sub, you'll see if certain commands/parameters are going to change, making it easy to test/plan for when that change happens. With PoSH, there's many ways to get from start to end, and things will always change over time no matter what. That shouldn't sway you away from learning it though.