5 ms·
Literally every windows admin uses it. It's the official commandline interface for microsoft software. Every piece of microsoft software must provide a ps inte
by UK-AL 10y ago
Literally every windows admin uses it. It's the official commandline interface for microsoft software.
Every piece of microsoft software must provide a ps interface. It's an engineering directive.
- jordache 10y ago"admin" This would be a good move if it was on Windows Server.
- treebeard901 10y agoIt is strange to claim no one really uses powershell. It is widely used in the Windows world. The main complaint I see about powershell is that it isn't bash. The object pipeline in powershell can be so much more powerful than parsing text between commands. After all, that's why we have data types instead of storing everything in strings.
- WayneBro 10y agoIt's not widely used in the Windows world from what I can see. Walk into any office and ask an IT guy to run "ipconfig". They'll open up cmd.exe without even thinking about it. I read a lot of programming tutorials. Nobody ever reference PowerShell in them. They always instruct people to open cmd. Do you have any evidence to the contrary?
- GordonS 10y agoFor simple tasks such as running a command, sure. But if that admin needs to do anything more complex, such as parsing the output of ipconfig, they're most likely going to use powershell.
- jodrellblank 10y agohttps://www.powershellgallery.com/stats https://www.powershellgallery.com/stats - 100k+ downloads of DSC resources in the last 6 weeks. https://github.com/search?l=PowerShell&q=powershell&type=Repositories&utf8= https://github.com/search?l=PowerShell&q=powershell&type=Rep... - 7,600 GitHub repositories (compared to 20,000 'shell' and 19,000 'perl') 40k questions on StackOverflow tagged PowerShell, vs. 54k tagged 'Perl', 50k tagged 'shell', 76k tagged 'bash'. 20k /r/powershell subscribers, 10k /r/bash subscribers on Reddit.
- Sargos 10y agoWhy would I run PowerShell for ipconfig? Just do the easiest thing. Running a multi line script that does nearly anything important? Well yes I am definitely going to use PowerShell.
- treebeard901 10y agoSomeone else posted the evidence below. In an attempt to understand and empathize with people who do not share my opinions, I looked back through some of your post history and you said this 5 days ago: "It's never been clear to me why anyone would want to use a completely opaque and undiscoverable interface such as a commandline over a nice GUI for anything. You didn't have to read anything or search around in order to change all of those settings in the GUI." Maybe it's possible you're not familiar with people who use powershell because you tend to stick to the GUI?
- WayneBro 10y agoThat's a good point - almost everywhere I go as a consultant...their IT people use the GUI to manage things and not PowerShell. Most places that I've seen automate things with a .NET program whether it's a service, a console app run via Task Scheduler, an SSIS package and in a few cases - a desktop app. EDIT: I'm a programmer and not a sysadmin except for on my own network where I do prefer "the easy way" as opposed to the way where you have to do rote memorization to perform simple tasks. If I automate anything, it's also done with .NET or Node.js because I like the tools better and my stuff runs everywhere without performing any ceremonies. I do visit a lot of client sites though and I work with client sysadmins regularly. I'm on the East coast and I work in the NY/NJ/PA area. Also the reason I like bash better is because if I have to memorize anything (and I do, for Linux work)...I'd rather have it be something terse.
- Devagamster 10y agoYou seem to be missing the fact that powershell is just designed better. Take powershell vs bash. Bash operates primarily on strings. In powershell everything that is interacted with is an object. This wont really effect you in day to day interactions, but it is incredibly useful when you decide that you want to automate something. This combined with the fact that powershell is built on the .net framework means that there is a simple way to extend it from C#. You should give it an honest try sometime. Its not really that much more verbose in everyday practice and it has lots of tools around it that make life simpler.
- UnoriginalGuy 10y ago> Walk into any office and ask an IT guy to run "ipconfig". They'll open up cmd.exe without even thinking about it. Absolutely because of twenty years of muscle memory. But once Powershell is the default and they learn about the wonderful "gip" alias, they'll be hooked. "gip" in case people don't know is an alias for Get-NetIpConfiguration which is a more powerful version of IPConfig. PS - "gip -all" is useful. "gip -all -d" for more detailed results.
- AnonymousPlanet 10y agoThat's all correct and it is the right way to do things (especially from Microsoft's perspective). However, the main goal of Powershell seems to be providing a scripting language that can automate Windows internals and not a shell in which you live in. Powershell is just a nice REPL, not so much a shell as you might be used from Bash. We have had Powershell for 10 years now. Has it taken off in a big way? No. The admins you mentioned use it because simple automation is the one thing GUIs cannot provide and MS had to face this after over a decade of denial. Do people get out Powershell instead of Python to do cool new projects that are unrelated to devops or admin work? Some maybe. But the real music plays somewhere else. And some of the reasons for that have been mentioned by the GP.
- UK-AL 10y agoPowershell is designed for devops and admin work. I wouldn't use it for anything else.
- mahyarm 10y agoI wouldn't take out bash or zsh or whatever else to do a project either. But I do use it when I want to run a bunch of cmdline tools. Right tool for the job and all...
- AnonymousPlanet 10y agoI compared Powershell to Python regarding projects, not Bash. It could have been 1. a shell 2. an automation tool 3. a scripting language, yet it fails at 1., is ignored regarding 3., and only succeds at 2.
- wvenable 10y agoEvery windows admin uses it but all the admins I know don't particularly like it or fully understand it. They do like what they can do with it, that they can script almost everything, and it's far better than cmd.exe but honestly the syntax and semantics are pretty baffling. There's a lot of cargo-cult copy and pasting in the powershell community.
- hobarrera 10y ago> Literally every windows admin uses it. And how much people with those be? Probably a lot less that software developers in general, and non-windows admins.