categories
PowerShell
191 articles
20 articles

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
Set up GPG commit signing in VS Code so GitHub shows the Verified badge next to your commits instead of unsigned changes.

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…

Image Manipulation, Image Resize, Image Combine and more with PowerShell
ImagePlayground is a PowerShell module that works in PowerShell 5.1 and PowerShell 7+. It works partially on Linux and should work on macOS…

ImagePlayground: image automation that stays in PowerShell
Use PowerShell to resize images, create QR codes, review metadata, and build charts or composed graphics with ImagePlayground.

Import-Module: This script contains malicious content and has been blocked by your antivirus software.
I’ve been working today on a little project when suddenly my modules stopped working. It was weird because I have not touched anything that…

Inspect and convert mixed Office archives with PSWriteOffice
Inspect a mixed document archive before converting iWork, OneNote, and scanned PDF files, and keep a useful record of what changed.

Install-Module : A parameter cannot be found that matches parameter name AllowPrerelease.
If Install-Module does not recognize -AllowPrerelease, the usual cause is an older PowerShellGet version rather than your PowerShell sessio…

Install-module : The ‘install-module’ command was found in the module ‘PowerShellGet’, but the module could not be loaded.
I’ve been working last few hours trying to set up my laptop for PowerShell Conference, and one of the tasks is to get my modules up and run…

Install-Module: The term Install-Module is not recognized as the name of cmdlet, function, script file or operable program
If Install-Module is not recognized at all, the usual cause is that the machine is missing the PowerShellGet tooling that newer Windows Pow…

Instant Replication between Active Directory sites with PowerShell
In Active Directory when you change something, it’s replicated to other Domain Controllers regularly. It’s a standard procedure that happen…

Introducing PSTeams 2.0 – Support for Adaptive Cards, Hero Cards, List Cards and Thumbnail Cards
PSTeams PowerShell module has been on the market for a while now. It supports sending notifications to Microsoft Teams channels via Incomin…

Invoke-RestMethod : The underlying connection was closed: An unexpected error occurred on a send while connecting Graph API
In the last few days, I’ve got two reports that my PowerShell module for Office 365 Health suddenly started giving errors. This was a bit w…

Just different approach to Active Directory Password Notifications
A long time ago I’ve maintained a C# version of Password Expiry reminders. It was working based on HTML templates…

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 multipl…