tags
powershell
167 entries
20 entries

Finding duplicate SPN with PowerShell
Duplicate SPNs aren’t very common but can happen in any Active Directory as there’s no built-in way that tracks and prevent duplicate SPN’s…

Finding GPOs missing permissions that may prevent GPOs from working correctly
I’ve been in IT for a longer time now. I’ve made my fair share of mistakes and misconfigurations. One of those misconfigurations was removi…

Fixing Active Directory PasswordNotRequired with PowerShell
There was I, deploying PSPasswordExpiryNotifications for one of my Clients when I started getting complaints that some users are not gettin…

Formatting and minifying resources (HTML, CSS, JavaScript) with PowerShell
When you work with HTML, CSS, and JavaScript, you often meet three versions on how those are stored in files – minified, formatted, somewhe…

Four commands to help you track down insecure LDAP Bindings before March 2020
In March 2020, Microsoft will release its monthly updates. With those updates, Microsoft will disable insecure LDAP Bindings, which is goin…

Function cannot be created because function capacity 4096 has been exceeded for this scope
I had a long day today when my long-running script (10 hours) gave me weird errors with Microsoft Graph for Teams. Finally, I solved my mis…

Get-ADObject : The server has returned the following error: invalid enumeration context.
In the last weeks, I’m working on a PowerShell module that the main goal is to work on gathering and fixing GPOs. I’ve been testing my modu…

Get-AdPermission – The operation couldn’t be performed because object couldn’t be found
During our recent creation of Relay Receive Connector on Exchange 2013 we’ve encountered an error: The operation couldn’t be performed beca…

Get-EventsLibrary.ps1 – Monitoring Events PowerShell
This event library (Get-EventsLibrary.ps1) is PowerShell script that parses Security (mostly) logs on Domain Controllers. It has few report…

Getting Active Directory Last Backup Time using PowerShell
I shouldn’t be telling you that, but Active Directory Backup is an essential part of your Active Directory setup. When a backup of Active D…

Getting Azure Health by parsing HTML using PSParseHTML
Some time ago I’ve wrote PowerShell way to get all information about Office 365 Service Health, and if you were thinking that I would try t…

Getting Bitlocker and LAPS summary report with PowerShell
Having Bitlocker and LAPS in modern Active Directory is a must. But just because you enable GPO and have a process that should say Bitlocke…

Getting file metadata with PowerShell similar to what Windows Explorer provides
I’m working on a new feature for one of my modules that requires me to know what kind of files I am working with. It’s quite easy in PowerS…

Getting Verified badge next to your GitHub commits in VS Code
A bit over two years ago, I started posting my PowerShell code as modules on GitHub. Initially, I planned to have them hosted on my website…

Getting Windows 10 build version from Active Directory
Today I saw an article on how to get Windows Version Report from Active Directory and thought that this is a cool idea. Something handy for…

How I didn’t know how powerful and fast hashtables are
I’ve been using PowerShell for a long while now using Hashtables, OrderedDictionary, and other types of data types in PowerShell, but I nev…

How to change your own expired password when you can’t login to RDP
I must admit that it was a bit embarrassing to see my Administrator password expired when I tried to log in as Domain Admin to Domain Contr…

How to Efficiently Remove Comments from Your PowerShell Script
As part of my daily development, I create lots of code that I subsequently comment on and leave to ensure I understand what I tried, what w…

How to find different server types in Active Directory with PowerShell
Working as a freelancer is a great thing if you can handle it. Each day, each week something new happens and a new problem shows up on my d…

Hyper-V – Can’t start Virtual Machine because it’s backing up
Working as a small business often brings you little tasks here and there. Today I’ve decided to shut down the Hyper-V machine to expand its…