B
B
blackbeard2016-07-12 13:18:14
Active Directory
blackbeard, 2016-07-12 13:18:14

Automatic shutdown of workstations. Implementation methods?

Добрый день.
Поставили задачу - рабочие станции пользователей должны автоматически/принудительно выключатся в конце рабочего дня. Какие способы реализации предложите? Развернут AD, рабочие станции преимущественно на 10-ке.
В идеале - предупреждение пользователя заранее, возможность продления на пару часов(опционально).
Политикой.сторонним софтом - не важно)
Заранее благодарю.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Tsvetkov, 2016-07-12
@Black_beard_ast

Has been working for several years now:
NightShutdown.cmd is triggered by the job at the right time (mine is 10pm and 11pm)

@echo off
chcp 1251 > nul
set LF=NightShutdown.%date:~6,4%.%date:~3,2%.%date:~0,2%.log
echo ----------- >> %LF%
echo %time% >> %LF%
echo ----------- >> %LF%
psshutdown.exe -k -f -t 00 -v 00 @NightShutdown.list >> %LF%

NightShutdown.list - List of computers.
And at 21:00, to install updates NightShutdownReboot.cmd
@echo off
chcp 1251 > nul
set LF=NightShutdown.%date:~6,4%.%date:~3,2%.%date:~0,2%.log
echo ----------- >> %LF%
echo %time% >> %LF%
echo ----------- >> %LF%
psshutdown.exe -r -f -t 00 -v 00 @NightShutdown.list >> %LF%

PsShutdown v2.52 .

A
Armenian Radio, 2016-07-12
@gbg

shutdown -i run. Further - intuitively.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question