I had a request to figure out how to record a NIC's IP information and make it easy to put the config back if required. the result us a run-able $outfile PowerShell script to reset the settings.
Random IT stuff that I have picked up here and there.
I had a request to figure out how to record a NIC's IP information and make it easy to put the config back if required. the result us a run-able $outfile PowerShell script to reset the settings.
I had to troubleshoot connectivity issues from a Window 10 machine, and really did not want to install Wireshark. Then I remember reading this document for the built in sniffer: pktmon | Microsoft Docs
The native file PktMon.etl can only be read by Microsoft’s
NetMon. If you have WireShark installed you can run this command to
convert it:
Also for reference, the on screen verbose (-l real-time) of
opening nslookup and connecting to 8.8.8.8 would look like this:
There are other options in the linked doc but to get a quick
view of traffic, not bad…. Enjoy!
I had a bunch of photos that I wanted to randomize on a photo frame. The frame processes photos alphabetically by file name. Since the original filename had the date / time the picture was taken, meant there was no randomness to what was displayed.
I wrote this to change the filenames to a random number.