When running scripts that connect to remote systems using Invoke-Command, you can use your local variables in the remote session which makes things a lot easier. In this blog post, I will show you how 🙂
Category: PowerShell
Report on Non-Compliant Intune devices
I received a question on the Microsoft Tech Community forum regarding creating a report about non-compliant Intune devices. The report should give insight into what device has what issue with which setting; the person asking the question was already working on a Microsoft Graph script but couldn't find a suitable way. In this blog post, I will show how to create this report. There are other scripts out there, but I always like a challenge (And Microsoft Graph can be quite a challenge sometimes 😉 )
Report from which PowerShell module the cmdlets are from
We all encountered this: you get a script or function that uses a certain cmdlet... And it fails because the cmdlet is not recognized 🙁 But which module should you install to get the script working? Or does your script install or import all the required modules? In this blog post, I will show you how to check from which module(s) the cmdlet(s) originate and if they are present on your system or if you should install them.
PowerShell data/reference types for variables
When you store data in a variable, PowerShell can store it how you want it to be if you use the correct data type. This blog post will show you how that works and which data types I mostly use for my scripts.
Installing Windows Updates on all your Hyper-V lab VMs using PowerShell and PSWindowsUpdate
I'm a Consultant who does a lot of Intune testing, and I use Hyper-V on my laptop with many VMs in customer environments. Some VMs are used more than others, but when you turn them on after a few weeks... They need updates and restarts, and I wanted to automate that process so that it can run in the background while working without me having to log in, click buttons, and track progress... In this blog post, I will show you how to automate that 🙂
Disabling Idle Power Save using Intune and PowerShell
One of our customers sought a solution to disable Idle Power Save on their Realtek USB GbE network adapters using Intune. Because of that setting, their users were disconnected from their Remote Desktop sessions multiple times during the day. This blog post will show you how to disable that setting using Intune, a Windows app (Win32), or a Remediation script.
250.000 visitors!
This site just reached a new milestone: 250.000 visitors! It started on April 21st, 2021, and it's been almost two years already now 🙂 In this blog post, I will link to other milestones and tell you how things are going for me now... (Spoileralert: Great 🙂 )
PowerShell 5 and 7 command-line parameters
You can start PowerShell 5 (powershell.exe) and PowerShell 7 (pwsh.exe) and specify parameters. This blog post will show you the parameters I use most for version 5 or 7.
And then… I became a Microsoft MVP in the PowerShell area
This busy week ended with something that I will never forget: I received an email with the subject "Welcome to the Most Valuable Professional (MVP) Program"!
PowerShell Games
I use PowerShell for many things, but did you know you can also play games in PowerShell? In this blog post, I will show you a few that are nice to play while waiting for your installation to complete or your code to compile 🙂