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
3
u/Thotaz Sep 17 '21
Microsoft focuses a lot on avoiding breaking changes, to the point where it hurts PowerShell a little bit. Look at a cmdlet like Join-Path, it started out with a "Path" and "ChildPath" parameter and then they later added an "AdditionalChildPath" parameter instead of updating the "ChildPath" parameter to be a string array.
Anyway, I'm sure there are some edge cases that have been broken but for the most part scripts written in older versions will work just fine in newer versions. You will have to name explicit examples if you want to know more.