During migration projects, I regularly change the DNS server settings of statically configured adapters on servers. (For clients, you can change the DHCP settings, and they will receive the new settings when the lease expires) For servers, it can be a lot of work doing it manually. In this blog post, I will show you how to automate that 🙂
Networking
Reconfigure Hyper-V External switch to the correct Network Adapter
If you use Hyper-V on your laptop, you will probably recognize this... You work at home, go to the Office and use Wi-Fi instead of the wired connection at home. You boot your VM, and... No network?! *sigh* You must change the External Switch again in your Hyper-V configuration. In this blog post, I will show you how to change it automatically using PowerShell.
Test if Microsoft services TCP ports are accessible
In a previous blog post, I showed how to retrieve all the Microsoft Services FQDNs, ports, and IP addresses. It's nice to know those in secure environments where not everything can go onto the internet, but how can you test if they are accessible? This blog post will show how to test most of these services using PowerShell.
Create a report on local DNS lookups using PowerShell
When troubleshooting a system, you sometimes need to know what DNS lookups are being done. This will give you a good insight into traffic from the systems to the local network or internet. You can do this with DNS auditing on your Windows server or in your local Pihole server, but that's not always available 😉 This blog post will show you an easy way to create a report without extra tools.
Create a TCP/UDP port listener using PowerShell
One of our customers is securing his network, and firewall changes were made that needed to be tested. In this case, the new servers were not yet deployed in that specific network. But... We did want to test the connections before deploying the servers 🙂 In this blog post, I will show you how to create listening ports on a machine to test the connection from another network using netcat on Linux or portqry on Windows.
Get WHOIS information using PowerShell
For the last few days, I have been working on an issue involving getting an overview of the networks and public IP addresses. Because I was unsure if the public IP addresses in some logs were from that company, I had to look up a lot of IPs manually using Ripe/Whois sites. This blog post shows you how to get details for your Public IP or the address or domain name you specify.
Exporting passwords for WLAN profiles using PowerShell and Netsh
Over time, your Windows device has a lot of saved WLAN profiles, and well... Sometimes you don't know the password you (Or someone else) entered. You use that connection, and then a colleague asks you if you know the password for the customer's SSID... You can export it from your Windows laptop (Or desktop) using the script in this blogpost 🙂