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.

Merging, splitting and creating PDF files with PowerShell

blog

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…

merge-pdfpdfpowershellpswritepdfsplit-pdf
Sending Messages to Microsoft Teams from PowerShell just got easier and better

blog

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…

microsoft teamsoffice 365powershell
Invoke-RestMethod : The underlying connection was closed: An unexpected error occurred on a send while connecting Graph API

blog

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…

invoke-restmethodoffice 365powershelltls 1.0tls 1.1tls 1.2
Getting Azure Health by parsing HTML using PSParseHTML

blog

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…

azureazure healthpowershellpsparsehtml
Microsoft Graph – InvalidAuthenticationToken – Access token validation failure. Invalid audience

blog

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…

microsoft graphoffice 365powershell
Set-PSRepository Installation Policy Trusted – Invalid Class Error

blog

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…

errorsimport-moduleinstall-modulepowershellpowershellget
Removing user from local administrator group based on data stored in Active Directory

blog

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…

active directoryadsipowershellpowershell 2.0windows 7
Emailimo merged into PSWriteHTML, IE support and no dependencies

blog

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…

emailimoieinternet explorerpowershellpswritehtml
Create a local user or administrator account in Windows using PowerShell

blog

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…

administratorgpopowershell
Nested Tabs, Diagram Updates, Diagram Events, Calendar Object and more in PSWriteHTML

blog

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…

dashimohtmlpowershellpswritehtml