blog
Blog
Technical articles, tutorials, and insights on PowerShell, .NET, Active Directory, and enterprise IT automation.
Type to search across all blog posts.

Merging, splitting and creating PDF files with PowerShell
We’re in the last days of 2019, and this will be my last blog post this year. What better way to end a good year than with the release of the new PowerShell module. If t…

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 the beginning of 2019. This rel…

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 weird because it worked perfect…

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 the same concept for Azure Serv…

Microsoft Graph – InvalidAuthenticationToken – Access token validation failure. Invalid audience
Today I had a need to connect to Microsoft Graph and do some tasks on Office 365. Since I have already done similar stuff for my PSwinDocumentation.O365HealthService Pow…

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, after trying three times I usual…

Removing user from local administrator group based on data stored in Active Directory
We need to deal with a group names through SID’s rather than names because each group name is different in different languages. The second problem is to distinguish whet…

Emailimo merged into PSWriteHTML, IE support and no dependencies
If you don’t know this yet, I use PSWriteHTML a lot. That means I get to test it under a lot of different conditions. I use it in reports, emails for small, medium, and…

Create a local user or administrator account in Windows using PowerShell
Recently I got a simple task to implement LAPS for the newly created local user instead of using the built-in local administrator account. It seemed easy at first. Go to…

Nested Tabs, Diagram Updates, Diagram Events, Calendar Object and more in PSWriteHTML
One of the new features I’ve worked on was connecting Diagrams with Tables. Someone suggested, and I thought it would be cool to be able to click on the Diagram node and…