Recover/retrieve/find your Windows 10 Product Key

2 different ways to retrieve or recovery Windows Product Key: Windows Product key is fundamental on the off chance that you need to install and activate Microsoft Operating System, in spite of the fact that you get the item key when you purchase the OS from Microsoft yet losing the key throughout the time is…



How to view/inspect the generated SQL by Entity Framework Core using .NET Core’s build-in logging

Referring: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-5.0 This blog post is about how to view the SQL generated by Entity Framework Core. This method uses Microsoft’s built-in logging for .NET Core. This method is an alternative to profiling the SQL with something like SQL Server Management Studio. This will work with an ASP.NET Core application, which should cover the vast…



Publishing an ASP.NET Core Web Application to IIS using Visual Studio 2019

I’m a developer at heart, so I’m constantly keeping up with the latest technologies. currently I’m developing ‘Time and Bill’, an ASP.NET Core Web Application. The application is based on Microsoft .NET Core 5.0 (5.03 to be exact). Well, developing the application is one thing, the other thing is to publish the application on an…



How to access an Exchange Online mailbox without a license

An Office 365 or Microsoft 365 Admin will hopefully have a separate admin account to perform higher level (privileged) tasks, compared the their standard user account. As a result, admin accounts should not need any license, because they are not used as a normal user. A person should not need to have two sets of…




Microsoft Teams – Quickly add a Webhook to a Teams channel and send a message using PowerShell

I just discovered the possibility to add Webhooks to a Teams Channel. Since webhooks are nothing new to me, i wanted to know if my PowerShell Scripts i created when i was playing last time with Webhooks if they’re working with the Teams API as well – surprise, i created a Webhook and sent a…




Resolving MAC Address Conflicts in VMware ESXi

Evey once in a while it happens again. You run virtual machines on an ESX server and something seems to be wrong with the network communication. you search and search and find that mac addresses are assigned multiple times. Resolving MAC Address Conflicts in VMware ESXi When cloning virtual machines the VMX file stores information…




Get your WAN/public IP address using PowerShell and ipify.org

I just discovered the ipify.org service to quickly get your public / WAN IP address. https://www.ipify.org/ – API Usage for IPv4 So to get the WAN / public IP address using PowerShell (New-Object System.Net.WebClient).DownloadString(‘https://api.ipify.org’) Or get it as JSON and ConvertFrom-Json-it (New-Object System.Net.WebClient).DownloadString(‘https://api.ipify.org?format=json’) | ConvertFrom-Json Yeah, i know, my WAN IP is visible in the…




File in use / Use PowerShell to find out witch process is locking a file

When we tried to upgrade to the latest Nextcloud Client (Version2.6.5), we were confronted with the following error message. The file C:\Program Files\Nextcloud\shellext\OCOverlays.dll is in-use and can’t be overwritten -> (if you think about it, it’s already clear that the Explorer Proess ‘locked’ this file, as this library is most likely used to overlay the…




PowerShell Active Directory Module – Cheat Sheet

Retrieve all Windows Server Computer Get-ADComputer -Filter ‘operatingsystem -like "*server*" -and enabled -eq "true"’ ` -Properties Name,Operatingsystem,OperatingSystemVersion,IPv4Address | Sort-Object -Property Operatingsystem | Select-Object -Property Name,Operatingsystem,OperatingSystemVersion,IPv4Address Retrieve all Windows Client Computer Get-ADComputer -Filter ‘operatingsystem -notlike "*server*" -and enabled -eq "true"’ ` -Properties Name,Operatingsystem,OperatingSystemVersion,IPv4Address | Sort-Object -Property Operatingsystem | Select-Object -Property Name,Operatingsystem,OperatingSystemVersion,IPv4Address Retrieve all Domain-Controllers (w/o Member…




Sign your PowerShell scripts with a code signing certificate

Prerequisite is -> you need an issued and world or domain-trusted code signing certificate. Read more about how to issue a code signing certificate (CSR) and how to issue one using your in house Certification Authority Let’s start a PowerShell Console as admin – then use this command to list available code signing certificates: Get-ChildItem…