Showing results for PowerShell - Scripting Blog [archived]

Mar 1, 2018
Post comments count0
Post likes count0

PowerShell For Programmers: Strings, Quotes and Quirks

Kory Thacher
Kory Thacher

Welcome back everyone! This will be a short, but important entry for the guide. The difference between quote characters is something I’m asked about all the time. It is important to understand in PowerShell, but most of the time it probably won’t make a difference. TLDR: If you're just typing a value like "alg" then it doesn't matter, but i...

korytKory Thacher
Feb 15, 2018
Post comments count0
Post likes count3

PowerShell for Programmers: How to write a function the right way

Kory Thacher
Kory Thacher

Just like I mentioned in my first post, PowerShell supports a lot of stuff that makes it pretty easy to dive in and get stuff running. The following two examples are supported in PowerShell, but not something you should really be doing for any reusable tool set. Putting your parameters (arguments) next to the function name in parenthesis is pr...

korytKory Thacher
Feb 1, 2018
Post comments count0
Post likes count2

PowerShell for Programmers: What happened to my operators?

Kory Thacher
Kory Thacher

Operators are one of the most frustrating things about learning PowerShell if you’re coming from just about any other language in existence. Operators like ==, <=, !=. etc. are almost ubiquitous in programming, but none of them are supported in PowerShell. This can lead to some pretty frustrating errors with things like If statements. You mig...

korytKory Thacher
Jan 18, 2018
Post comments count0
Post likes count2

PowerShell for Programmers: Basic Syntax – Variables, Objects, and Data Types

Kory Thacher
Kory Thacher

Variables Variables in PowerShell are going to be a bit different than they are for you in most languages. To start out the conversation, the basic way to create a variable is just by using a “$” and an “=”, but there are cmdlets and other ways to generate them.   Objects Objects a...

korytKory Thacher
Jan 4, 2018
Post comments count0
Post likes count2

PowerShell for Programmers: A Quick Start Guide

Kory Thacher
Kory Thacher

Now that my content has been migrated to the scripting blog, this will be the landing page for the series and I'll be trying to update all the links.  Learning PowerShell can be very useful for people with programming experience. Whether you’re currently a developer, dev-ops, or an admin you can get some serious use out of being familiar with Po...

korytKory Thacher