@lexey
В
Resource Pro Kit есть скрипт
device.vbs, который показывает устройства и их статус, а также может запускать/останавливать устройства:
Код:
'********************************************************************
'*
'* File: Device.vbs
'* Created: March 1999
'* Version: 1.0
'*
'* Main Function: Controls Devices on a machine.
'*
'* 1. Device.vbs /L"
'* [/S <server>][/U <username>][/W <password>]"
'* [/O <outputfile>]"
'*
'* 2. Device.vbs /G | /X | /R | /M <StartMode>"
'* /D <device>"
'* [/S <server>][/U <username>][/W <password>]"
'* [/O <outputfile>]"
'*
'* 3. Device.vbs /I /D <device> [/N <DisplayName>]"
'* [/S <server>][/U <username>][/W <password>]"
'* [/O <outputfile>]"
'*
'* Copyright (C) 1999 Microsoft Corporation
'*
'********************************************************************