To demonstrate this process, I will show you how I export all the PowerShell help and convert it to PDF files that I use instead of looking at the help files in the PowerShell Console. I realize you can view the PowerShell help files in the console and online....
Automate Creating Lab Virtual Machines in Azure with PowerShell
As you may or may not know, I recently decommissioned my old Dell PowerEdge 1950 server that I used for a few Lab virtual machines. While experimenting with PowerShell on these Virtual Machines, I have found myself in the situation where it would be easier to delete the Virtual...
Hey PowerShell… Text me if my Domain Admins Group changes
This is why I Love PowerShell… It’s simple, yet functional. From an Administrative perspective, I think we can all agree that any changes in your Domain Admins group without your knowledge would be of interest to you. If you’re in a large organization with access to enterprise management tools...
Visual Studio Code and Visual Studio Team Services Integration
For whatever reason, I seem to be migrating most of my coding activity to Visual Studio Code from the PowerShell ISE. I’m not really sure why other than the look and feel seems to be more pleasing than the ISE… to me anyway. Anywho, I have wanted to hack out...
Enable PowerShell Remoting to an Azure Virtual Machine, without Domain Membership
I recently started an Azure subscription in order to move all the servers I use to test PowerShell code to the cloud. Right now I have only a couple Virtual Machines, one running Windows Server 2016, that’s my Domain Controller. I also have a Windows Server 2012 R2 Virtual...
Basic and Advanced Filtering of PowerShell Objects using Where-Object
This is a very minimal introduction into filtering pipeline objects using Where-Object and comparison operators. This video will give you the syntax and a simple example. To unleash the full capabilities of comparison operators take a look at the help file. # Basic Syntax example Get-Service | Where-Object Status...
Azure VM Connect Button is Greyed out, lets fix it.
Something a little different with this video, no PowerShell goodness. I’m an Azure rookie, and I’ve had a few challenges getting a VMs up and running. I’ll have a few more videos documenting what I’ve learned so hopefully, it will allow you to get spun up quicker than I.
PowerShell Quicktip #2: Filter-Left
A practical example of why you should filter as far left in your scripts as possible. It might matter. #1 Get-Service | Where-object { $_.Status -eq 'Running' -and $_.name -like 's*'} #2 Get-Service -name s*| Where-object { $_.Status -eq 'Running'} #1 Measure-Command -Expression {Get-Service | Where-object { $_.Status -eq...
PowerShell Basics: Sorting and Selecting Objects with Sort-Object and Select-Object
# Selecting #Default Get-Process # All Properties Get-Process | Select-Object -Property * | Out-GridView # Sorting # Changes the default sorting order for Get-Process Get-Process | Sort-Object CPU # Minimize the data and sort Get-Process | Select-Object ProcessName, CPU | Sort-Object CPU -Descending ## Caution # Mission: Get...
PowerShell Hash Tables and Calculated Properties Basics
This video is a basic overview of how to use hash tables and calculated properties to make PowerShell data more usable. <# .SYNOPSIS How to use Hash Table and Calculated Properties .DESCRIPTION A basic walk through of how to use Hash Tables and Calculated properties .PARAMETER <Parameter_Name> None .INPUTS...