Install Ubuntu on Windows Subsystem on Linux (https://community.cisco.com/t5/collaboration-blogs/how-to-automate-the-reboot-of-cucm-or-uccx/ba-p/4739343)
Use the following script:
![timuryuldashev_0-1671166357972.png timuryuldashev_0-1671166357972.png](https://community.cisco.com/t5/image/serverpage/image-id/171179i2F29392F7FDCCDDC/image-dimensions/963x313?v=v2)
Then enable SSH access on all phones.
![timuryuldashev_2-1671171158768.png timuryuldashev_2-1671171158768.png](https://community.cisco.com/t5/image/serverpage/image-id/171190i47C7854FBBD43C43/image-dimensions/723x386?v=v2)
Enter login and password (for example 'cisco' - 'cisco')
![timuryuldashev_1-1671171027967.png timuryuldashev_1-1671171027967.png](https://community.cisco.com/t5/image/serverpage/image-id/171189i8B9DEF5F74AB78DE/image-dimensions/725x408?v=v2)
![timuryuldashev_0-1671171001526.png timuryuldashev_0-1671171001526.png](https://community.cisco.com/t5/image/serverpage/image-id/171188iC2009B830F46A2D7/image-dimensions/725x289?v=v2)
Press Save - Apply Config - Reset.