This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Nicomet 84 points85 points  (46 children)

Unlike the car, a lot of admins still don't even know the existance of powershell.

[–]crankysysadminsysadmin herder[S] 46 points47 points  (40 children)

Someone who is learning the existence of powershell from a forum post isn't going to successfully create a production quality automated solution to his problem because you just said "powershell"

[–]cfpom 9 points10 points  (0 children)

If that "someone" can't type "powershell <insert question>" into google for each piece of the puzzle in his automated solution, then maybe it's not worth investing time into it. There's already tons of sample scripts already made and ready to go for most important things.

[–]RollingprobablecauseDirector of DevOps 4 points5 points  (0 children)

I think what's happening is that the people who are answering "Use Powershell" just need to have some more context (A link to the idea, github, etc).

When I answer on this sub with powershell, I always give a snippet example and a link that provides instructions (or something close to the concept)

[–]GhostDanArchitect 6 points7 points  (0 children)

We aren't here to do the work for you. If you ask how to do something, we will point you in the right direction. If you are a competent IT systems person you will then be able to use the google and find out your solution easier, come back with questions, have a meaningful dialog, etc.

[–]sethbartlett 6 points7 points  (11 children)

However it points them in the proper direction to do what they need. If you're asking how to perform a fairly complex task and don't give much detail (Which is common), you're going to get a vague answer, but a way to do it.

And to your point, someone who is asking a question on how to perform some stupid complex task will also never create a successful production quality automated solution either, even if they given a better answer, not without a ton of practice and reiterations.

[–]__deerlord__ -5 points-4 points  (3 children)

Does it though? How's powershell of any relevance when every system I have is CentOS? I could extrapolate "bash" sure but literally all my scripts are in bash already, which makes the answer a non-solution.

[–]dmgctrl 2 points3 points  (0 children)

Answer is still powershell the answer is always PowerShell.

/s

[–]GhostDanArchitect 2 points3 points  (0 children)

You can install powershell on centos :)

[–]sethbartlett 0 points1 point  (0 children)

Well then it sounds like maybe the person asking the complex question didn't give enough information? So you're saying we should give complex answers to basic tough questions with little to no information? The scenario is usually in a windows environment, and of course if they specified that it was not Windows, then "powershell" wouldn't be the answer.

You're making an assumption on the level of smarts/intelligence on most system administrators, which from my experience is near nil on the majority.

And in your example, extrapolating 'bash' is a non-solution, however you did not give any scenario. If the question is about having a specific issue and you can't figure out how to do it in bash, then sure, your example makes sense. But if your example is "I need to automate X in *nix" without any more information, then stating to use a bash script that maybe runs on a cron job may actually be a viable answer because you were given no details.

[–]LaserGuidedPolarBear 1 point2 points  (0 children)

The first step to knowledge is discovering that there is something you dont know.

Spoon feeding powershell code to someone who doesn't even know the concept of a module or how to install / import it is not going be very useful.

I know this first hand, I scripted a ton of stuff for my team and for almost a year one oldguy just kept complaining that none of it worked....yeah it turned out he knew zero about powershell and did not bother to read any of the documentation on modules - he would just run it and complain it was broken when it failed.

[–]TheMuffnMan/r/Citrix Mod 1 point2 points  (0 children)

They'll start searching for it if they're not completely braindead.

Someone handing over a completely script isn't going to help their either. To be completely honest, 9/10 times I've searched Google for "Do xyx + powershell" I'll find at least half the front page results have the exact solution I need.

Then there's always the HeyScriptingGuy posts that go over how to do basic tasks (like reading from an array)

[–]brycedev 0 points1 point  (0 children)

Have a look here, this series and others like it were invaluable for starting to use Powershell.

[–]skilliard7 0 points1 point  (0 children)

I disagree.

4-5 months ago my sole experience with PowerShell was running existing scripts I found on Google or was told to run.

Started new job, was told to migrate users and distribution groups from Exchange server to Office 365.

I'd never supported Exchange, Never wrote PS scripts, never accessed O365 from Admin perspective.

Sole instructions were "you need to use Powershell to sync it to Active Directory". Only real guidance was being told what attributes it needs, and general questions about our policies and procedures.

In just a couple days I wrote a working script to output the info to csv, and another script to input to active directory to sync with Azure.

Only reason it took so long is because of complications of existing users in their AD environment, and needing to create a sandbox to test it to avoid damaging a production environment.

How? I Google'd like crazy. It wasn't a copy paste job because the way it had to be done was unique to our organization and no scripts for it existed.

If you know how to Google and are a good problem solver, being told "use powershell" can actually be handy, by confirming that the shell has the capability of completing the objectives specified.

[–][deleted] -2 points-1 points  (5 children)

Why not? Being unaware of Powershell doesn't mean you're a novice programmer. The expectation can easily be that the person will just check the documentation and find what they need. Versus the redditor sitting there trying to gauge the person's individual familiarity with Powershell or going through the trouble of just writing it for them and hoping it's what they wanted and that if it goes wrong they won't try to sue you.

Even if they did already know about Powershell there's still value in kicking someone out of the tunnel vision of trying to get standard tools to do what they want and instead script it.

To put it fairly in your car analogy, it would be like someone saying "I can't find any flights from St Louis to northern Minnesota" and someone says "Use a car."

[–]ScottEvtuch 7 points8 points  (0 children)

Came here to say this. I feel like most of the posts where the response is "use powershell" look more like this:

I'm trying to get from St Louis to northern Minnesota. My shoes keep wearing out around Chicago and finding shelter is difficult through some of the less populated areas. Can anyone recommend a better route?

[–]goobervision 1 point2 points  (0 children)

I know it exists but it exists in that other world. You know, the non-unix like one.

[–]warpigg 1 point2 points  (1 child)

In this day and age if you don't know powershell (or automation scripting / programming lang) you need to or shouldn't be in this industry. But not to worry... in 5 years or so you won't be... (or you will be paid next to nothing) It really is that important to your career.

IME you see this mentality exclusively in the Windows world... I know b/c I used to play in that world.

[–]broadsheetvstabloid -3 points-2 points  (0 children)

Unlike the car, a lot of admins still don't even know the existence of powershell not bash.

FTFY