Author: Mike
-
Activate Azure roles and resources with PowerShell
My new PowerShell script, Request-AzureADRolesV4.ps1, simplifies managing roles and permissions in Azure Active Directory (Azure AD). It streamlines the process of requesting and assigning Azure AD roles, offering efficiency and reliability for IT professionals. Streamlined Azure Role Management Azure AD administrators often face the challenge of balancing security with ease of use. Assigning roles typically…
-
Powershell and Log Analytics – Tips and Tricks #1
Working with Gzip compressed base64 data The following two PowerShell functions will compress or depress text using Gzip, and the result will be base64 encoded. When working with Sentinel incidents, some of the included incident data can be Gzip compressed and base64 encoded. As such, you may need to turn the base64 encoded Gzip data…
-
Defender for Endpoint – Plan 2 Review
Microsoft Defender for Endpoint Plan 2 stands out for its affordability, offering robust endpoint protection at a price point comparable to standard consumer antivirus suites. This makes it an excellent choice for organizations looking to maximize their security investment without breaking the bank. Despite its competitive pricing, Defender for Endpoint Plan 2 doesn’t skimp on…
-
Powershell Rate Limiting
When working with different API’s via PowerShell, you may encounter the need to have a rate limit and as such I’ve built two functions to do this. Code Usage
-
Storing secrets securly in Windows
One of the challenges with scripting / programming is securely storing passwords or API secrets across many different languages. Most of what i develop runs in Windows and as such it made sense to tap into the ProtectedData API and the Windows Registry. PowerShell Code Powershell Usage C# Code C# Usage Python Code Python Usage
-
PowerShell Anti-Idle Script
I developed a PowerShell script to prevent the system from idling, locking, or turning off the monitors. It will also ensure that the team’s idle will not trigger. AntiIdle.ps1 AntiIdleGUI.ps1
-
WSUS MMC crash due to XML invalid character!
So today as I was checking on the update status of all the windows computers the WSUS MMC Console would throw the following error (System.Xml.XmlException — ‘’, hexadecimal value 0x16, is an invalid character). Upon googling this issue I came across a technet article which contained a solution and some improvements on the first provided…
-
Open Maintenance – Docker & CentOS 7
Docker and containers are becoming the default standard for simple, rapid, and consistent deployment. I was asked to deploy open maintenance recently at work and decided to look into the most straightforward deployment options. I reviewed the open maintenance website and didn’t see any ready-made Ova images or a simple, up-to-date guide on quickly getting…
-
Powershell script to create user home directory and DFS namespace target
Creating a new users home directory and corresponding DFS namespace target. The script can also force all domain controllers to fully sync up in case you have multiple sites. Sync is enabled by default, however it can be disabled. This powershell script does require WinRM to be enabled for sync to work. You need to…