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...
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.
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.
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.