In Windows 2012R2 and Windows 8.1 there is a command “Test-NetConnect” which tests a TCP port. That is a life saver. To be able to do that in Windows 2012 I created a small function.
I did create a DHCP scopes a couple of days ago. Something happened after the creation and a some scopes had a range of leases that got higher than 240, which was my top lease. The DHCP service had 70 scopes on two servers. This meant that I needed to check 140 scopes. First thing I rerun the script in previous post and set the top lease to 240, again, and Second I created a script to look for leases over 240 for me. It is not pretty, but it does its job.
I just want to point out a time saver.
The issue is a bit old now but I will write about it anyway. It all begins with a hyper-v 2012 and a Equalogic San. And live storagemigration. With ODX enabled (default setting) the VHD:s was corrupted when moved. Which caused a lot of lost data.
The problem should with ODX and Hyper-V 2012. ODX is mentioned in following 2796995 which is replaced by 2870270.
Ever wanted to keep track of if the latest file in a folder is younger than a specific time? I wanted to know if a service created a backup-file each week. This script is triggered a couple of times a day and will create a file that a surveillance system pick up.
I got a task to create 142+ dhcp scopes. Reason? Migrating from a local dhcp on every site to a central dhcp server. I had to use the same scopes that was on each site.