Showing results for 2018 - Page 4 of 9 - Scripting Blog [archived]

Jun 19, 2018
0
0

PowerShell For Programmers: Here Strings, There Strings, Everywhere Some String Strings

Kory Thacher
Kory Thacher

There won't be much code in today's post, but this can be a useful feature to know about. In addition to the expandable and literal strings we talked about, we can also use something called a Here String. Here strings allow us to have quote characters inside of our string that match the quote characters we use to create that string. For examp...

PowerShellkorytKory Thacher
Jun 12, 2018
0
0

PowerShell PowerTip: Grabbing the location your script lives in

Kory Thacher
Kory Thacher

One super common thing in PowerShell is to design a script to consume particular files for data. Often times you are building the script right in the folder for your files. However, it can be annoying to give long, literal file paths to a file. Also, if you give that script to someone else, they need to edit that path to point at the right location...

PowerTipPowerShellkoryt
Jun 5, 2018
1
7

Working with JSON data in PowerShell

Kory Thacher
Kory Thacher

Welcome back everyone! This week we will take another look at some common data types we might encounter in the real world: JSON data. JSON data is used pretty frequently on the web if you're hitting APIs. This not only includes external data (twitter, weather, marvel database), but often includes internal data to your company. It's nice to be ab...

PowerShellkorytKory Thacher