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 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 MoreI 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 MoreLast 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 MoreI recently had to throw together a quick script to modify the registry of each current user on a set of given laptops, as well as any future users. While a GPO is normally the way to go for something like this, it wasn't an option for me here. This builds a little more on my May 2017 post where I just needed to get the …
Read MoreI put together the following script to help a small group configure Microsoft Access during login in a kiosk environment. You're welcome to steal and modify as you see fit. For all the options you can possibly set, see this MSDN page (ignore the comment that it's for Visual Basic...) 1<# …
Read MoreThe following snippet of PowerShell will collect the list of profiles active on a system from the registry and populate an array. I remove any profile folder that does not exist, as well as any that are within the Windows folder (e.g. NetworkService, LocalSystem), but you can modify as you see fit if that doesn't meet …
Read More