Skip to content

Instantly share code, notes, and snippets.

View joncutrer's full-sized avatar

JC joncutrer

View GitHub Profile

Keybase proof

I hereby claim:

  • I am joncutrer on github.
  • I am joncutrer (https://keybase.io/joncutrer) on keybase.
  • I have a public key ASAyq0fWDygxijbWKGFbwRQi13dsDrO4aBQnFcLLLEVJGgo

To claim this, I am signing this object:

@joncutrer
joncutrer / gist:330de3648ed7e5db1d295a80600b246a
Created February 8, 2024 20:47
Windows Batch Script to reboot UniFi APs via SSH (using plink.exe)
REM ssh-reboot.bat
REM This script requires a copy of plink.exe from Putty placed in the same folder as the script or somewhere in the path.
set aplist=192.168.1.12,192.168.1.13,192.168.1.14
set user=<yoursshusername>
set pw=<yoursshpassword>
set cmd=reboot
set targetip=%1
echo %targetip%