Модификация / Сброс времени последней перезагрузки

219
user3711455

Я пытаюсь воссоздать проблему, с которой столкнулся, чтобы попытаться подтвердить ее основные причины. Одна из возможных теорий заключается в том, что проблема вызвана тем, что сервер долго не перезагружался. Поскольку я уже перезапустил компьютер, существует ли способ сброса / изменения «времени последней перезагрузки», чтобы компьютер считал, что он не перезагружался в течение длительного времени? я использую

systeminfo | find "System Boot Time"

Компьютер работает под управлением Windows XP Embedded, если это помогает.

0

1 ответ на вопрос

0
kasperd

I'd say the answer is no, you cannot do that.

Problems whose root-cause is related to the time passed since the last reboot are not unusual. But there is not just one reason why such problems happen, and consequently there is not one single setting you can change to reproduce the problem.

An operating system has a number of counters that will increase while the system is running. Some are directly proportional to the time gone by, others are driver by other events.

Even if you managed to change one value to make it look as if the system had been running for a long time, the problem may be related to another value, which you did not change.

Such counters may reset due to certain conditions. Many will start from zero after a reboot, but they may also start over from zero for other reasons. Another reason for a counter to start over from zero would be if it reaches a maximum value. There can be bugs which will cause problems when such a counter overflows.

But to debug the problem you need to know a bit more about what is triggering it than just "because the server hadn't restarted for a long time"

Похожие вопросы