Retrieving objects in your scripts is something that you do regularly. It takes a long time to download and process in larger environments, wasting CPU and time. This blog post will explain how to speed up scripts by filtering server-side before downloading all results and filtering afterward.
PowerShell
Recreate Desktop and Start Menu shortcuts #ASRmageddon
It's just a beautiful Friday 13th due to a Windows Defender update that removed shortcuts from many machines with Attack Surface Reduction enabled for Macros. (Work-around "Setdefender ASR rule 92e97fa1-2edf-4476-bdd6-9dd0b4dddc7b to audit only unit issue is resolved.") This blog post describes how you can recreate the missing shortcuts and deploy this using Intune or run it manually on the affected system(s).
PowerShell and variables
Every script I write has variables in it, but there are different types of variables. This short blog post will show a few types you can use in your scripts.
Update your software using WinGet and PowerShell
Not all software comes with built-in update support or notifications. And even if it does, it takes time, and it's always a good idea to automate things, of course 🙂 In this blog post, I will show you a short PowerShell function that will update your software if it's WinGet compatible. (More and more software is added to its database every week)
Happy New Year!
Best wishes to you all, and have a great 2023!
Overview of 2022 posts
It's almost the end of the year, and always a time to reflect on the year. In this blog post, I will list the blog posts that were read the most 🙂
50.000 views!
Today the powershellisfun website reached 50.000 views! Did not expect it to grow that fast, on September 19th of this year it reached 25.000 views and so it doubled in almost three months! Thanks for all the comments and likes here and in the Tech Community forum, I like sharing things and helping out people with IT-related things 🙂 At the end of this year, two weeks from now, I will put a list together of the most popular topics and posts of this year. Some things are way more popular than other things and that makes me think that I should write about those a bit more but I'm open to suggestions 😉 Have a nice weekend!
PowerShell output on screen
It's always nice to have some screen output while running scripts interactively, in this blog post I will show you a few ways to do that.
Adding printer drivers and printers using Microsoft Intune and PowerShell
This year I wrote two separate blog posts about adding printer drivers and printers to Intune clients. Recently I repackaged these two into one package with some improvements. In this blog post, I will show how it looks now 🙂
Active Directory Infra check using PowerShell
Some of our customers have an Active Directory environment that needs upgrading. To get a good overview of their environment, I always check many things before writing a report and a recommendation about which steps we need to take. In this blog post, I will show you a script that gathers information about the Active Directory Domain, which saves a lot of command-line checking and starting up Management Consoles 😉