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 MoreSo, my DS218+ recently died and I picked up a new DS918+. After setting it up with two new 4TB disks, I thought I was going to be able to put my two old 2 TB disks that were setup as a mirror in my old system and just copy the data over, but unfortunately that's not an option. The solution in the community seemed to be …
Read MoreThe following 60-second video is the one I demoed at MMS Jazz 2019 to show how to quickly edit a Microsoft Doc without needing to understand Git command line tools or using VSCode.
Read MoreToday'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 MoreI'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 MoreI'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 MoreIn the six minute video below, I'm going to walk you through the process of forking a Microsoft Docs repository from GitHub, cloning it to your local machine, making changes, pushing those changes back into your repository, and finally creating a pull request with Microsoft to prompt them to bring your changed content …
Read MoreShort and sweet for those at MMS 2019 who were looking to inventory java usage with Configuration Manager. There is a 2018 System Center Dudes post on metering java. The post was based on a CI created by Steve Jesok of TCSMUG back in 2015. The original script doesn't account for problems with newer versions of Java, …
Read More