Select Page
Using PowerShell to View and Remove Wireless Profiles in Windows 10 – Part 2

Using PowerShell to View and Remove Wireless Profiles in Windows 10 – Part 2

Summary: Using Measure-Command to determine the fastest approach to a solution. Last week we were having some fun using PowerShell as a wrapper around the NetSh.exe command’s output. We were left at a decision point. Which way to go? A ... continue reading
A picture containing scissors  Description automatically generated

PowerTip: Converting a Here-String to an Array in One Line with PowerShell

Summary: Using the split method in a more powerful fashion to split an array based upon two line terminating types Hey, Doctor Scripto. I was wondering if there was a more efficient way of converting a Here-String to an Array ... continue reading
Using PowerShell to View and Remove Wireless Profiles in Windows 10 – Part 1

Using PowerShell to View and Remove Wireless Profiles in Windows 10 – Part 1

Summary: Using PowerShell and Regular Expressions as a wrapper on NetSh.exe output to identify the profiles. Hey, Doctor Scripto! I have a whole pile of old Wireless profiles that have been collecting dust. I know I can use NETSH to ... continue reading
gif

PowerShell 7 Preview 4

We continue to make progress towards our PowerShell 7 release which currently is targeting December 2019 for a Release Candidate and January 2020 for General Availability and will be our first LTS (Long Term Servicing) release! Please see the previous ... continue reading
A picture containing scissors  Description automatically generated

PowerTip: Identify which Platform PowerShell is running on

Summary: Using $PSVersionTable to identify if you are on Windows or Unix Hey, Doctor Scripto! I’m working on my PowerShell scripts and I need to be able to identify if I’m working on Windows or Linux. How can I do ... continue reading

Creating a Platform Independent Function in PowerShell

Summary: Creating a Function in PowerShell and the power of the $PSVersionTable to make code more portable Q: Hey, Doctor Scripto! I saw that post last week on converting Here-String into an array. I wanted to write my code to ... continue reading

Updating Help for older versions of PowerShell

PowerShell’s Updatable Help system was introduced in PowerShell 3.0. It was designed to assure that you always have the newest help topics on your local computer so that you can read them at the command line. Help was updated with ... continue reading
A picture containing scissors  Description automatically generated

PowerTip: Identify if you are running on PowerShell Core

Summary: Pulling up the properties of $PSVersionTable to identify your PowerShell edition Hey, Doctor Scripto! I want to write my modules and scripts to be more portable. How can I tell if I am executing on PowerShell Core? Just use ... continue reading
Maximizing the Power of Here-String in PowerShell for Configuration Data

Maximizing the Power of Here-String in PowerShell for Configuration Data

Summary: Discovering some of the awesome and neat ways to leverage a Here-String in a Script or function Q: Hey, Doctor Scripto! I used to write scripts with supporting configuration files that never really changed. I was wondering if there ... continue reading
A picture containing scissors  Description automatically generated

PowerTip: Read a JSON configuration file as a PowerShell object

Summary: Using the ConvertFrom-Json Cmdlet in PowerShell to read a JSON formatted file Hey, Doctor Scripto! I’ve seen a lot of JSON files in use in Azure. I’m not very good with editing JSON properly. Is there an easy way ... continue reading