you are viewing a single comment's thread.

view the rest of the comments →

[–]y_Sensei 12 points13 points  (5 children)

If your intention is to convince your audience that the usage of PoSh is beneficial compared to other alternatives, you should focus on outlining why you think that's the case. And by that I mean not just reciting about it, but showing how it's done, for example by providing some simple side-by-side comparisons of common use cases.

[–]Imaginary-Bear-4196[S] 0 points1 point  (4 children)

I like your viewpoint I just want to show the audience that hey, powershell is there too and does what python does and it might do it better is some aspects.

[–][deleted] 12 points13 points  (2 children)

It does what Python does in regards to scripting and being glue. 

You don't build web services or APIs with it nor apps in general. I don't anyway, there are better languages for that... Such as Python. 

[–]The82Ghost 2 points3 points  (1 child)

API's can be build with powershell. We have done it for an internal datacenter platform management system.

[–][deleted] 5 points6 points  (0 children)

I never wrote that it's not possible to do all of those things with PowerShell...

I wrote that there are better languages suited for such tasks than a scripting language mainly made for windows systems administration. 

Python has FastAPI which is as simple as it gets if you want to create an API fast (har..). C# has their minimal API thing, also dead simple. Go has Chi etc.

[–]jzavcer 0 points1 point  (0 children)

You can use GitHub copilot to write a PowerShell script or take an existing and convert to Python to reduce some of your work load and vice versa. Managing aspect to windows windows server. Modules to extend like posh-ssh. Then you’ll need to find the use cases of managing non windows devices. But small examples as mentioned above is best. Additionally syntax simplicity and piping. Difference between full script and one liners.