blog

Blog

Technical articles, tutorials, and insights on PowerShell, .NET, Active Directory, and enterprise IT automation.

Tag
Category

Type to search across all blog posts.

Restoring (Recovering) PowerShell Scripts from Event Logs

blog

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 this occasion, and I was hand…

event logget-eventspowershellpowershellmanagerpseventviewer
Mailozaurr – New mail toolkit (SMTP, IMAP, POP3) with support for oAuth 2.0 and GraphApi for PowerShell

blog

Mailozaurr – New mail toolkit (SMTP, IMAP, POP3) with support for oAuth 2.0 and GraphApi for PowerShell

Today, I’m introducing a new PowerShell module called Mailozaurr. It’s a module that aims to deliver functionality around Email for multiple use cases. I’ve started it s…

imapmailozaurro365office 365pop3powershell
Active Directory DHCP Report to HTML or EMAIL with zero HTML knowledge

blog

Active Directory DHCP Report to HTML or EMAIL with zero HTML knowledge

I’m pretty addicted to reading blog posts. I saw this new blog post the other day, where the author created the DHCP HTML report, and he did it by manually building head…

dhcphtmlpowershell
Getting file metadata with PowerShell similar to what Windows Explorer provides

blog

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 PowerShell, and without a lot of cod…

filesmetadatapowershell
Using Win32_UserAccount WMI filter in PowerShell/Group Policies and what to avoid

blog

Using Win32_UserAccount WMI filter in PowerShell/Group Policies and what to avoid

Some months ago, I created PowerShell Script to create local administrative users on workstations – Create a local user or administrator account in Windows using PowerSh…

active directoryadgpopowershellwmi
Converting Pester V4 to Pester V5 basics

blog

Converting Pester V4 to Pester V5 basics

Now that Pester V5 is out, I decided that I need to make sure that my Pester tests for all my modules keep on running correctly. Some substantial changes in Pester add n…

pesterpowershell
Get-ADObject : The server has returned the following error: invalid enumeration context.

blog

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 module a lot of times on my test e…

active directoryget-adobjectpowershell
Getting Verified badge next to your GitHub commits in VS Code

blog

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, but few people asked to post…

gitgithubpowershellvscode
Azure AD – Removing Inactive Azure AD Pass-through Agent

blog

Azure AD – Removing Inactive Azure AD Pass-through Agent

Recently I was switching Office 365 tenant from ADFS to Azure AD Pass-through authentication (PTA). It all went smoothly with one exception. After removing one of the Az…

azure adazure adconnect
PowerShellGallery disables support for TLS 1.0 breaking Install-Module

blog

PowerShellGallery disables support for TLS 1.0 breaking Install-Module

A few days ago, I tried to use Install-Module on the old Windows 2008R2 system that I use for specific tasks.

powershelltlstls 1.0tls 1.2