So I control startup and shutdown of a few windows machines in my home. But, one unique machine has dual ethernets, one on local net and one connected to a hardware vpn. I control the hardware vpn via SNMP to shut it down by shutting down POE on the port. This causes some DNS oddness and slow loading pages after shutdown. The simple fix, if I am home, is to shut down the ethernet interface in windows. My vpn power control will react depending on me being home or not during working hours, but the ethernet port on the pc will not.
I have found that with this netsh command I can enable or disable the port:
netsh interface set interface “xxxx” DISABLED
But, it has to be run with admin permissions and I have not figured a way to send the command from HA.
I would like to roll this into the automation that turns my vpn on or off.
Anyone out there got any ideas? I am really kind of stuck here.