I have multiple Hyper-V Vms on my laptop for testing purposes. Sometimes, you need to update those or check things, and you can do this using PowerShell Direct. In this blog post, I will show you how to use PowerShell Direct with a few examples.
Author: Harm Veenstra
Intune Proactive Remediation for “Microsoft Windows Unquoted Service Path” / CVE-2013-1609, CVE-2014-0759, CVE-2014-5455
Microsoft Defender has security recommendations for the "Fix unquoted service path for Windows services.” (CVE-2013-1609, CVE-2014-0759, CVE-2014-5455) These might be reported for things like Dell services, and you can fix them manually by editing the Registry on the affected device. But... There is an easier way 🙂 This blog post will show you how to create a Proactive Remediation in Intune for it.
Configuring NTFS permissions using PowerShell
Configuring NTFS permissions is something that you can do using your Windows Explorer, Server Manager, or by using command-line tools like subinacl.exe or icacls.exe. In this blog post, I will show you how to set NTFS permissions in two different ways using PowerShell 🙂
Microsoft Defender SmartScreen issues (Fixed)
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...
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.
Using the preview version of the WinGet PowerShell Module
I've been using the WinGet command-line version for quite some time now, and I am pleased with the apt-get-like installation method for installing/updating/removing software on my Windows machines. (WinGet is also the new Windows Store installation option for Microsoft Intune) But there's also a PowerShell module for WinGet, still in preview (Alpha) but very functional already. I will show you how to use that module in this blog post.
Using PowerShell on your Stream Deck
An excellent way to run your scripts is by using a Stream Deck 🙂 I purchased one last month (Elgato Stream Deck Mk 2 Studio Controller with 15 buttons), mainly because of the Microsoft Teams support, but you can use it for PowerShell too! In this blog post, I will show you a few examples.
Using PSCustomObject in PowerShell
This is one of the most used tools in PowerShell that I use, an excellent way of storing and using data for reporting purposes. In this blog post, I will show you how to use it to your benefit.