categories
PowerShell
182 entries
20 entries

Renaming NETBIOS name of Active Directory Error
Recently I was testing renaming the NETBIOS name of an Active Directory domain. While this process is fairly easy, there are a few gotcha’s…

Report Active Directory Accounts that are Synchronized with Azure AD
I was scrolling X (aka Twitter) today and saw this blog post, “PowerShell: Report On-Premises Active Directory Accounts that are Synchroniz…

Reporting group membership for critical Active Directory groups
I work a lot with Active Directory-related tasks. One of the tasks is to know the group membership of critical Active Directory Groups such…

Restoring (Recovering) PowerShell Scripts from Event Logs
A few days ago, I was asked to take a look at PowerShell Malware. While I don’t know much about malware, my curiosity didn’t let me skip on…

Seamless HTML Report Creation: Harness the Power of Markdown with PSWriteHTML PowerShell Module
In today’s digital age, the ability to create compelling and informative HTML reports and documents is a crucial skill for professionals in…

Sending email as an alias (proxy address) with Office 365
Sending emails in Microsoft Exchange world using an alias for an account has always been a pain. It required working with workarounds such…

Sending HTML emails with PowerShell and zero HTML knowledge required
I saw this article by Altaro tweeted Building PowerShell Tools for MSPs: HTML Tables for Reporting, and it describes how you can create HTM…

Sending information to Event Log with extended fields using PowerShell
Reading Event Logs is something that every admin does or at least should do quite often. When writing PowerShell scripts, you often need to…

Sending Messages to Microsoft Teams from PowerShell just got easier and better
Christmas time is upon us, and I’ve decided that my PSTeams module needs some love. I wrote it in late 2018 and updated it a few times at t…

Set service recovery options in PowerShell
Recently one of our Administrators reported that he had to manually startup some Pulseway services after windows updates. It sometimes happ…

Set-PSRepository Installation Policy Trusted – Invalid Class Error
I have to admit – executing the same command three times and expecting different results is dumb, but I still do it anyway. Fortunately, af…

Solving typo problems with Fuzzy Search in PSWriteHTML
One of the everyday use cases with PSWriteHTML is to create a simple view of PowerShell data in a table. While PowerShell comes with a buil…

Strengthening Password Security in Active Directory: A PowerShell-Powered Approach
PasswordSolution uses the DSInternals PowerShell module to gather Active Directory hashes and then combines that data into a prettified rep…

Submitting blogs to web.archive.org using PowerShell
Since my website went down in fire with OVH SBG2, I used this occasion to publish my restored website via Cloudflare. It allows me to have…

Synchronizing Active Directory with External Time Source
One of the crucial parts in modern IT world is proper time and date. While it may seem that 30…

Syncing Global Address List (GAL) to personal contacts and between Office 365 tenants with PowerShell
Hey there! Today, I wanted to introduce you to one of the small but excellent module I’ve created called the O365Synchronizer. This module…

Test-MailFlow status failure on Exchange 2013 with GFI Mail Essentials installed
Our Client has Exchange 2013 with GFI Mail Essentials. Recently Test-Mailflow started failing with no real reason to do so. Servers…

Testing LDAP and LDAPS connectivity with PowerShell
One of the common ways to connect to Active Directory is thru LDAP protocol. There are a lot of applications that talk to AD via LDAP. By d…

The curious case of $null should be on the left side of equality comparisons PSScriptAnalyzer
If you’re using VSCode with Powershell extension, you probably got used to PSScriptAnalyzer giving you all kind of tips on optimizing thing…

The only command you will ever need to understand and fix your Group Policies (GPO)
I’ve been working on cleaning up Group Policies for a couple of months. While it may seem trivial, things get complicated when you’re taske…