Christopher Kibble's Technical Ramblings
  • Script to Find Attached USB Mass Storage Devices

    2020-08-20 PowerShell

    I wrote the following script to find and list attached USB Mass Storage Devices and determine the disks and partitions associated with them. 1$usbKeysAttached = Get-PnpDevice -Class USB -Status OK -FriendlyName "USB Mass Storage Device" 2 3$aAttachedDisks = @() 4 5ForEach($key in $usbKeysAttached) { 6 …

    Read More
  • Better PoSH: Using $PSDefaultParameterValues

    2019-07-15 PowerShell

    Today's quick PoSH tip comes from a conversation I had with Kevin Crouch (@PsychoData) and Brett Miller (@BrettMiller_IT), and I got to learn about the $PSDefaultParameterValues variable, which I'd never used before. Essentially, $PSDefaultParameterValue allows you to define ahead of your functions how certain …

    Read More
  • Detecting Skype Activity with PowerShell

    2019-07-11 PowerShell Skype

    I'm working on a project to get a number of drivers updated across an environment. One of the biggest problems is that if we update certain audio, video, or network drivers while the user is in a Skype call, the call will fail. Often in testing I found that reconnecting to the Skype call or presentation was difficult …

    Read More
  • Better PoSH: Avoid Using += for Arrays

    2019-07-08 PowerShell

    I've found myself hanging around some PowerShell chats lately, and I've been picking up on a lot of neat tricks to write better code. This one comes my way via Adam Cook from his blog post on his awesome new function Get-CMUnusedSources (seriously, if you're a ConfigMgr shop, check it out). Since PowerShell is one of …

    Read More
  • Calling sendmail from PowerShell on Linux

    2019-04-03 PowerShell

    I haven't blogged about it a lot, but I am trying to learn what I can about PowerShell on Linux. I feel like more and more services are headed to the cloud, and (even in Azure) will be able to run on Linux devices. Being able to write portable scripts to move between what I manage today, and what I may be asked to …

    Read More
  • PowerShell Script to Query YNAB API

    2019-02-11 PowerShell YNAB

    In a post last week, I talked about how I've begun using YNAB in 2019 to manage my finances. As soon as I learned there was an API, you know I had to dig in and see what it could do. Below I've posted a short PowerShell script to query all credit cards and lines of credit and then dump them out to the console. Nothing …

    Read More
  • Convert Office 365 Version Numbers to Build Numbers for SCCM Reporting

    2018-07-24 SQL MSOffice PowerShell

    I've written the following three PowerShell functions to build a mapping of Office 365 ProPlus version numbers (e.g. 16.0.10205.2009) to more reportable build numbers (e.g. 1806). I've created the following three functions to start: Get-Office365BuildToVersionMap Get-OfficeBuildListToCase …

    Read More
  • Stop Using the Pipeline in PowerShell

    2018-05-22 PowerShell

    Last week I Fred Bainbridge and Ryan Ephgrave's MMSMOA session where they showed us that we shouldn't be using the pipeline anymore. Before beginning the session, I was as confused as you might be about why. The guys did a great job explaining it and I'm going to show you why in the same manner they showed me. Let's …

    Read More
    • ««
    • «
    • 1
    • 2
    • »
    • »»

Chris Kibble

Technologist, PowerShell, Desktop Engineering, SQL.

Recent Posts

  • Setup Google Cloud Certificate Authority - Part 1
  • Standing Up a Microsoft Certificate Authority - Part 7
  • How to Query the SCCM Database With SQL Server Mgmt Studio
  • Using Flash Beyond the End of Life Date

Categories

CONFIGURATION-MANAGER 19 POWERSHELL 9 SYSTEMS-ADMINISTRATION 9 PKI 8 TROUBLESHOOTING 8 CONFERENCES 5 APPLICATION-PACKAGING 4 MSOFFICE 3 DOMAINS-AND-HOSTING 2 MCAFEE-ENDPOINT-ENCRYPTION 2
All Categories
ACTIVE-DIRECTORY1 APPLICATION-PACKAGING4 CONFERENCES5 CONFIGURATION-MANAGER19 DOMAINS-AND-HOSTING2 EXCEL1 GEEKING-OUT1 GOOGLE1 IPHONE1 JAVA1 MCAFEE-ENDPOINT-ENCRYPTION2 MICROSOFT-DOCS1 MSDOCS1 MSOFFICE3 NINITE1 PKI8 POWERSHELL9 SYSTEMS-ADMINISTRATION9 TROUBLESHOOTING8 WINDOWS-101 YNAB2
[A~Z][0~9]

Series

STANDING-UP-A-CERTIFICATE-AUTHORITY 7 VIDEOS 4 STANDING-UP-A-GOOGLE-CERTIFICATE-AUTHORITY 1

Tags

CONFIGMGR 19 POWERSHELL 15 MSOFFICE 10 SQL 9 CA 7 MMS 7 PKI 7 EXCEL 6 GOOGLE 4 AUTOIT 3
All Tags
ACROBAT1 ANKER1 AUTOIT3 BATCH1 CA7 CHROME2 CITRIX1 CONFIGMGR19 DOMAINS2 EDGE1 EXCEL6 FLASH1 GITHUB2 GOOGLE4 IPHONE2 JAVA1 MMS7 MOPHIE1 MSDOCS1 MSIEXEC1 MSOFFICE10 NAS1 NINITE1 NOTEPAD++1 PKI7 POWERSHELL15 SAFEBOOT2 SCCM1 SKYPE1 SONOS1 SQL9 SYNOLOGY1 TRAVEL1 VAMT1 VBA2 VISIO1 VMWARE1 WINDIRSTAT1 WINDOWS-103 YNAB2
[A~Z][0~9]