PowerShell and DevOps

TH08 The (Nearly) Perfect Portable PowerShell Profile

July 20th, 2023

11:00am - 12:15pm

Level: Intermediate

Greg Altman

IT Infrastructure Manager, Author, Speaker

How many of us work on multiple computers? Most do, and if you are anything like me, you have struggled with keeping a consistent profile and toolset on each machine. The portable profile helps solve that problem.

This session walks the audience through 2 very short modules. One is for setup, download it from GitHub, and it installs the modules you use regularly and imports the profile. Its functions are Import-Profile, Update-Profile, and Remove-Profile. The second is the CurrentUserAllHosts profile itself.

A quickly executing profile, updated from GitHub, checks network connectivity, access to on-prem Active Directory and Exchange, and loads some appropriate 'helper functions.' Helper functions like a custom prompt, Get-PublicIP, and Connect-AdminAccounts connect you to Azure, Exchange Online, MS Graph, etc.

You will learn:

  • Enhanced Powershell profile
  • Github syncronization
  • Powershell optimization