Currently, my blog site is blocked by SmartScreen... Again 🙁 Because it's a SmartScreen issue, the site still works in Chrome, Firefox, and other browsers. I created a support ticket for it again, asking for an explanation and awaiting a response. If you could also report it as safe, that might speed up things! Hopefully, they can tell me what and why. I post blogs with script examples with no malicious code in them...
Month: April 2023
Using the #Requires statement in PowerShell
Sometimes you have scripts that require specific versions of modules, or if the script is started with Administrator privileges, you can add checks for that in the script itself or... You can use the built-in #Requires statement for that. In this blog post, I will show you how.
Custom Compliance PowerShell script for detecting additional local Administrators
One of our customers wanted to be sure that there were no additional accounts in the local Administrators group on their Intune devices, and... That's where Custom Compliance policies come in 🙂 In this blog post, I will show you how to automatically check the Administrators group and mark the device as non-compliant if needed.
Using Run-in-Sandbox for testing scripts and Intune packages
Testing things is always essential, and Windows has a nice built-in Feature for that which is called Windows Sandbox. You can look at this as a throwaway Windows VM, you start and use it, and afterward, there's no trace of it anymore, making it ideal for testing! In this blog post, I will show you how to test PowerShell scripts and Intune packages in Windows Sandbox.