I'm Not A Developer
Are you intimidated by scripting? Does PowerShell seem too much like programming to you? You aren’t a developer, why should you learn this mumbo jumbo?
It turns out, PowerShell is quite easy to get started with. Can you run ipconfig? Do you know how to give someone instructions? You could probably pick up the PowerShell basics in a month of lunches or so.
Don’t believe me? I spent a few minutes to compare a simple task in four languages. PowerShell is a single, easy to understand command. Python is two lines and starts to include some syntax like .().
We won’t even look at the C example here, but check out this C# code that simply reads and prints out the content of a file:
// Modified with suggestions from Anton. // Better ways to do this, but, I'm not a developer ; ) using System; using System.IO; class ReadFromFile { static void Main() { foreach(string s in File.ReadAllLines(@"C:\file.txt")) { Console.WriteLine(s); } } } You can get a feel for what’s going on, and there are many ways to skin a cat, but let’s compare this to PowerShell:
Get-Content C:\file.txt This was one example among many. Read or write a CSV, execute a SQL query, create a VM, kick off an AzureRM template, modify an AD user, the list goes on. All of these are individual PowerShell commands, that handle a whole bunch of code behind the scenes, giving you simple, task-based commands.
This lets you worry about the actual problem you are trying to solve, not the nitty gritty programming details. Have you ever had to write your own sorting code, rather than just using
Sort-Object ?
Come join the fun, you’ll save yourself time and effort, and help out your team and organization in the process. Learn PowerShell.
Cheers!
Related Articles
PowerShell Escape Room
PowerShell Escape Room by Michiel Hamers by Michiel Hamers https://about.me/michielhamers/ Why on earth you want to create an Escape Room with PowerShell as backend? I’ve always been a fan of escape rooms, so I decided to create my own for my kids. I wanted to make it something that would be challenging and fun for them, but also educational. I decided to use PowerShell as the backend for the escape room, as I’m a PowerShell developer and I thought it would be a great way to learn more about the language.
Microsoft Graph PowerShell Module: Getting Started Guide
Microsoft Graph PowerShell Module: Getting Started Guide by Jeff Brown Microsoft is retiring the Azure AD Graph API sometime after June 30, 2023 (announcement). This retirement includes the Azure AD PowerShell module. In its place, Microsoft has released the Microsoft Graph PowerShell module. The Microsoft Graph PowerShell module is the next-generation way of managing Microsoft cloud services using PowerShell. If you have used MSOnline or Azure AD PowerShell in the past, you’ll need to read on to learn about this new module.
ICYMI: PowerShell Week of 08-October-2021
Topics include VMWare, Windows 11, Web Reports and more… Special thanks to Robin Dadswell, Prasoon Karunan V, Kiran Patnayakuni and Kevin Laux How to gather your vCenter inventory data with this VMware PowerShell script by Scott Matteson on 7th October Inventory reports are a common request when administering a VMware vCenter environment. Learn how this VMware PowerShell script can make such requests quick and easy Building a Web Report in PowerShell, use the -Force Luke by Chris Noring on 8th October