Make a read-able windows DNS debug log file

Normally we turn on the DNS debugging to find out the source client IP addresses and the queried records. And, here is the script that will covert the DNS Debug Log file into a more flexible csv format, though you will have to rename the file to .csv if needed. New lines, whitespace and header information will be ignored during conversion. The script supports DNS Debug log of Server 2012, 2016 and 2019 (not tested on Server 2008 and if you can do it successfully, please comment). This script should not be run on Domain Controllers/DNS Servers as it consumes certain amount of processing power. Continue reading “Make a read-able windows DNS debug log file”

Powershell Script for temporarily Adding Domain User to Privilege Group

Sometimes, you might need to grant certain domain users, such as desktop support staff, the Network Configuration Operators role or even Local Administrator privileges on specific client machines to perform tasks that require elevated permissions. While this can be done by manually adding users to the appropriate local security groups, it’s a tedious, repetitive task—and there’s a risk of forgetting to remove these elevated permissions afterward.
Continue reading “Powershell Script for temporarily Adding Domain User to Privilege Group”

Powershell to Check VMware Network Portgroup Connectivity with VM Migration

Now, it’s a blogging time. Here is the little script that you can use to check the network connectivity of each portgroup in your vmware environment, which can also be used to determine if the portgroups or physical uplink (backing the vswitch) has the desired vlan access for the multiple exsi hosts.

This script will output the the VM’s ICMP Ping status after making vMotion to each host within the current vmware cluster (where the VM resides) or any clusters. Continue reading “Powershell to Check VMware Network Portgroup Connectivity with VM Migration”