Перейти из форума на сайт.

НовостиФайловые архивы
ПоискАктивные темыТоп лист
ПравилаКто в on-line?
Вход Забыли пароль? Первый раз на этом сайте? Регистрация
Компьютерный форум Ru.Board » Компьютеры » В помощь системному администратору » Автоматизация администрирования. Часть 2

Модерирует : lynx, Crash_Master, dg, emx, ShriEkeR

ShriEkeR (23-05-2011 23:06): Автоматизация администрирования. Часть 3  Версия для печати • ПодписатьсяДобавить в закладки
На первую страницук этому сообщениюк последнему сообщению

   

YNY

Full Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
 
Win32ShutdownTracker Method of the Win32_OperatingSystem Class
The Win32ShutdownTracker method provides the same set of shutdown options supported by the Win32Shutdown method in Win32_OperatingSystem, but it also allows you to specify comments, a reason for shutdown, or a timeout. The calling process must have the SE_SHUTDOWN_NAME privilege.
 
uint32 Win32ShutdownTracker(
  [in, optional]       uint32 Timeout,
  [in]                 string Comment,
  [in]                 uint32 ReasonCode,
  [in]                 sint32 Flags
);
 
Parameters
Timeout  
Time, in seconds, before shutdown takes place. The default value is 0 (zero).
 
Comment  
Message to display in the shutdown dialog box that is also stored as a comment in the event log entry.  
 
ReasonCode  
Reason for initiating the shutdown.
 
Flags  
Bitmapped set of flags to shut the computer down. To force a command, add the Force flag (4) to the command value. Using Force in conjunction with Shutdown or Reboot on a remote computer immediately shuts down everything (including WMI, COM, and so on), or reboots the remote computer. This results in an indeterminate return value.  
 
Value Meaning  
0
0x0
 Log Off
 
4
0x4
 Forced Log Off (0 + 4)
 
1
0x1
 Shutdown
 
5
0x5
 Forced Shutdown (1 + 4)
 
2
0x2
 Reboot
 
6
0x6
 Forced Reboot (2 + 4)
 
8
0x8
 Power Off
 
12
0xC
 Forced Power Off (8 + 4)
 
 
 

Всего записей: 476 | Зарегистр. 18-05-2006 | Отправлено: 12:05 07-12-2010 | Исправлено: YNY, 12:13 07-12-2010
   

На первую страницук этому сообщениюк последнему сообщению

Компьютерный форум Ru.Board » Компьютеры » В помощь системному администратору » Автоматизация администрирования. Часть 2
ShriEkeR (23-05-2011 23:06): Автоматизация администрирования. Часть 3


Реклама на форуме Ru.Board.

Powered by Ikonboard "v2.1.7b" © 2000 Ikonboard.com
Modified by Ru.B0ard
© Ru.B0ard 2000-2024

BitCoin: 1NGG1chHtUvrtEqjeerQCKDMUi6S6CG4iC

Рейтинг.ru