I needed to find all the GPOs that were not currently linked. Here is the script I cam up with.
Torx's Mind
Random IT stuff that I have picked up here and there.
Tuesday, January 13, 2026
Thursday, March 20, 2025
Fortigate renew GoDaddy Cert
Have a GoDaddy cert that has expired, and you need to update your Fortinet device, here are the steps I use to update it.
- Renew Cert @ Godddy
- Download certificate with server type = Other
- Extract the zip file
- With a text Editor open the .crt file that does not start with "gd"
- Copy the contents of the file to your clipboard
- Log into Fortigate
- Open Command line / Terminal
- Type: config vpn certificate local
- Type: show (Verify the name of the cert you are updating"
- Type: edit sslvpn (or your cert name)
- See Example at the end of this post, however type this sequence
- Type: set certificate “
- Paste the contents of the .crt file
- Type: "
- Type: enter
- Type: End
- The Cert should now show valid
Thursday, August 29, 2024
Navigating trough may different regulatory compliance is rough. When they start to layer on top of each other when they have their own difference almost makes it impossible.
I really like what the folks over at Secure Controls Framework has done my combining all the controls into a blended model. This is available for download in Excel Here, or via their Github Here
Sunday, December 31, 2023
Windows Firewall rules for Fortinet SSO Collector
Thursday, December 28, 2023
Wednesday, September 15, 2021
Grab a NIC IP information and dynamically create a reset script
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.
Friday, April 16, 2021
Native Windows 10 packet Sniffer PKTMON
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
- Change directory to
where you want the results to be saved (I.E. c:\temp)
- Add Filters for the IP
you want to monitor for
- pktmon filter add -i
8.8.8.8
- pktmon filter add -i 9.9.9.9
- Start pktmon
- pktmon start –etw
(this will send to PktMon.etl file only)
- pktmon start --etw -l
real-time (Will send to PktMon.etl file and the screen)
- Generate the traffic
- Stop pktmon
- pktmon stop
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:
- pktmon pcapng pktmon.etl -o log.pcapng
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!
Friday, April 09, 2021
Get all active directory users properties
Wednesday, August 26, 2020
Rename Files to a random name
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.
