Menu
Free Pack
Download BuildMaster Free Trial

Why Are Admins Afraid of PowerShell?

by Crista Perlton, on Nov 8, 2021 6:59:50 PM

During my daily scroll, I came across a post on Reddit asking the community “Why are admins afraid of PowerShell?”

As always, many people chimed in and gave their perspective on why their admin is the absolute worst and how ignorant admins are paralyzed by fear of the unknown.

However, probably the most illuminating comment was that “PowerShell is f***ing scary and no one is holding your hand.” That got me thinking, admins aren’t afraid of PowerShell, they’re afraid of what an untrained/unrestricted user can do.

Risks Using PowerShell

Another comment in a similar thread summarized it perfectly: “When you’re facing a command prompt, you could type literally anything. There are no hints, no rails, nothing to help you know what to do next. For a lot of people, that can be very intimidating.” Even with testing, things can go south quick and that's scary for a lot of people. 

Of course, blogs, education and Comment-Based Help reduces risk and helps beginners. There’s a long list of tutorial commands like "Get-Command," tab completion, and "Get-Member."

Comment-Based Help is a collection of descriptions and keywords enclosed in a block comment. Unlike normal comments, PowerShell can read COMMENT-BASED HELP and display it upon request using the “Get-Help” command. CBH can be as simple as adding in a single sentence before the .SYNOPSIS or .DESCRIPTION of a script that describes what it does.

Comment-Based Help Example:

 

However, admins aren’t scared of PowerShell - they’re scared of what you can do in PowerShell if you don’t know what to do. And a team member using “Get-Command” probably isn’t the most confident with PowerShell and therefore should simply be using a manual solution.

Admins properly understand the capabilities of PowerShell and often have to make the decision to encourage safe, manual procedures over efficient, risky PowerShell commands. It’s incredibly easy to make mistakes in PowerShell that ripple into disasters.

So Everything Should be Manual?

Not at all, I’m just saying that I understand how the admins feel. It’s easy to get comfortable with a technology or tool and forget what it’s like for people who aren’t proficient with it. Picking up the PowerShell command line and using it for the first time is terrifying – it should be terrifying.

But it doesn’t necessarily have to be.

Using a free tool like Otter, allows team members (regardless of PowerShell skill) to be proficient and safely execute scripts to remote servers.

Otter does this in two ways: GUI’s and server targeting.

GUI

Otter can automatically generate a UI around your scripts. It does this in two ways:

Otter lets you add comments and descriptions, and empowers your team to do the work they need to without oversight through job templates. The next time anyone needs to run a job, even if they don’t have permission to run scripts, they can use the template, which will restrict inputs AND remind you when you’ve forgotten to fill out required fields. (In an untemplated world, you’d have to bug your manager any time you needed to do this and wait around until they were free.)

New call-to-action

 

Server Targeting

When you run a script through Otter against a server, you have three options for how to target your servers:

Direct: Simply specify servers by name, and the script is then run against each server.

Indirect: Specify a combination of roles and/or environments that will be used to specify the servers the script is run against. This requires some planning ahead.

Custom: Perform complex orchestration that can run different commands or scripts on different servers. These servers can be targeted sequentially, in parallel, and with branching and iterating (looping) logic. This is the most complex but most flexible option.

testedtargeting

Using Otter, when you use direct or indirect targeting, you can use variable names. Otter helps ensure that the scripts are running against the servers you want decreasing the chance of accidental catastrophic failures happening.

Admins Aren’t Afraid of PowerShell

Admins are afraid of people. I’ve never met an admin that doesn’t fully understand and respect the power of PowerShell. However, pairing your PowerShell scripts with a tool like Otter means you don’t have to live in fear any longer.

Try Otter’s free forever version and level up your team's PowerShell with generated GUI’s and server targeting.

Download Otter

Topics:OtterPowerShell

Related Posts

About Inedo

Inedo is a software product company bringing you the "tech behind the tech."

Makers of Windows-first, enterprise DevOps tools BuildMaster CI/CD, ProGet private package management, and Otter IaC. Maximize developer time, minimize release risk, and empower stakeholders to bring their vision to life faster, all with the people and technology you have right now.

Follow us on social media

Follow Inedo on YouTube Follow Inedo on Facebook Follow Inedo Twitter New call-to-action

More PowerShell content in our free e-book

PowerShell Level-Up Guide

Free e-books

Free CICD Book Free dotnet book free IaC book Jenkins CICD Guide