4 ms·
It'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 t
by WayneBro 10y ago
It'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.