![]() :: a function to write to the log file and stdout :: kissgoodnight & force execution to quit SET log=C:\cobbling\teamviewer\logs\%me%_%DateTime%_log.txtĬ:\cobbling\wget.exe -quiet -O %home%\justdoit.txt SET /p tv_status= Trigger file is set to ONE =]"ĬALL :tee ""ĬALL :cleanup "" Below you'll find a slightly edited version of the Windows batch script I've left my box of interests running every two minutes (scheduled using the common Windows Task Scheduler (more on that later)): OFFįOR /f %%a IN ('WMIC OS GET LocalDateTime ^| FIND "."') DO SET DTS=%%a ![]() We've hosted a trigger file on an internet reachable destination. We've kept TeamViewer from running automatically. We've set a 2nd password which we will always know. We've installed TeamViewer on some remote hosts of interest in case of poor SysOps poo storms. On there, we will host a simple text file on which we will be able to shift values in order to either Start/Stop our TeamViewer services. A web server in our control will do just fine. Once we have that, the next item we'll need is a trigger repository of some kind.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |