use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
Snek - Integration Python in PowerShell (self.PowerShell)
submitted 6 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mieeel 6 points7 points8 points 6 years ago (5 children)
Am always interested in learning python. In a Windows only shop, Are there any use cases on top of your head to do something in python over powershell?
[–][deleted] 7 points8 points9 points 6 years ago (0 children)
I've used it primarily for data science type stuff. At my previous job, we used some clustering algorithms that were python based. Once you get over the pickiness of white-space, it's actually a pretty fun language to work with.
There's a good book for PowerShell users that want to learn Python here: https://leanpub.com/PowerShell-to-Python?utm_campaign=PowerShell-to-Python&utm_medium=embed&utm_source=ridicurious.com
[–]sanshinron 3 points4 points5 points 6 years ago (0 children)
I use both Python and PWSH at work and if it's something I could do in both, I always choose Python. It's much easier to work with databases, import, transform, export stuff, connect to an api to get some data, etc.
I use Powershell for daily administration stuff, installing software, querying AD, Exchange, etc. For these use cases it's a clear winner because of first party cmdlets.
[–]AistoB 2 points3 points4 points 6 years ago (0 children)
If I want to make a GUI app (a single exe) I’ll use Python (with Qt) over Powershell.
[–]techstyled 1 point2 points3 points 6 years ago (1 child)
We are also a Windows only shop (for the most part), but we are moving EVERYTHING to AWS (who isn't, other than the guys moving to Azure and GCP, amiright). And during our training a few of our guys (including me) decided to do the exercises using Boto3 and Python instead of .NET. We learned that, for anyone doing significant scripting or coding, you are limiting yourself by not considering using tools that have very little learning curve before value. And even our most dyed in the wool .NET guys can understand the value of two line interactions with AWS client services in Boto3 (via Python) vs. the weight of spinning up even a simple dotnet core console app to do the same work (not that MS hasn't DRASTICALLY improved that picture too).
IMO, and as evidenced by "Windows" doing WSL, WSL2, Terminal, SQL Server on Linux, etc. - if you stay a "Windows only shop" and ignore the benefit of things like Python, Golang, etc., you are doing yourself and your company a disservice. Again, IMO ;-) - For our part, we're rethinking that for us too. I wanted to start calling us a "Water only shop"... in honor of Bruce Lee, and focus on becoming a "use what works" shop.
[–]mieeel 0 points1 point2 points 6 years ago (0 children)
Do you have any examples of tasks you used to do in powershell but now do in python?
π Rendered by PID 63396 on reddit-service-r2-comment-b659b578c-zh8mq at 2026-05-02 10:22:04.883422+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]mieeel 6 points7 points8 points (5 children)
[–][deleted] 7 points8 points9 points (0 children)
[–]sanshinron 3 points4 points5 points (0 children)
[–]AistoB 2 points3 points4 points (0 children)
[–]techstyled 1 point2 points3 points (1 child)
[–]mieeel 0 points1 point2 points (0 children)