logo

The ConnectWise Control forum has moved to ConnectWise University! This forum has been locked and is in read-only mode. Click here for instructions on how to access the new forum.

Welcome Guest! You can not login or register.

Notification

Icon
Error

Options
Go to last post Go to first unread
BTNI  
#1 Posted : Monday, December 22, 2014 5:14:13 PM(UTC)
BTNI


Rank: Newbie

Joined: 12/22/2014(UTC)
Posts: 1
United Kingdom
Location: Lisburn

I am in the process of leaving LogMeIn and moving to ScreenConnect, and one thing we enjoyed with LogMeIn was the scheduled reboot option.
I have created 3 very simple scripts which I have in our ScreenConnect shared toolbox to ask how many minutes or hours you want to reboot in. Two different scripts, one for minutes and one for hours, and a third script to cancel a scheduled reboot.
Ideally I would love something that pops up a calendar and time picker but I am no programmer, so this is the best I can come up with at the minute.

Just thought I would share it if it helps someone else.

Script1 - "Delayed Reboot in Hours.bat"
@echo off
set /p timehours=How many hours would you like to reboot in:
set /a timeminutes=%timehours%*60
set /a timeseconds=%timeminutes%*60
shutdown /r /t %timeseconds% /c "Reboot planned in %timehours% hours"




Script2 - "Delayed Reboot in Minutes.bat"
@echo off
set /p timeminutes=How many minutes would you like to reboot in:
set /a timeseconds=%timeminutes%*60
shutdown /r /t %timeseconds% /c "Reboot planned in %timeminutes% minutes"




Script3 - "Cancel Delayed Reboot.bat"
@echo off
shutdown /a




Regards
David

Edited by user Tuesday, December 23, 2014 12:38:37 AM(UTC)  | Reason: Not specified

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.