D
D
danilr2019-07-26 11:12:08
cmd/bat
danilr, 2019-07-26 11:12:08

How to make a bat file so that windows does not go to sleep?

There is a hard setting of the computer by the administrator - windows falls asleep without activity after 2 hours.
You can’t download or install anything third-party, the idea is to create a bat file with your own hands that will do something cyclic (at least click the cursor or open and close a folder) preventing windows from falling asleep. Any ideas? What to write in the bat file for these actions?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladislav Lyskov, 2019-07-26
@Vlatqa

write in consoleping 127.0.0.1 -t

Y
Yan, 2019-07-26
@Slayer_nn

Idea 1: configure any command with log output to a file, send the file over the network to any machine using the same batch file. Windows will
not fall asleep as long as there is an active Internet connection
Idea 2: set the lasso process, select any hanging service and disable PC sleep when it is works
Idea 3: autohotkey, make a script, set up cycling
Idea 4 remind the admin about his duties, let him set up the PC as it should

R
res2001, 2019-07-26
@res2001

If you need it for work, then officially agree with the management so that you can temporarily cancel the general mode. There are exceptions to any rules.
If not, put up with it, if your attempts to bypass are discovered, it's worse for you.
I believe that it is not just that you have such strictness there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question