Generate a report of installed drivers Создать доклад установлено водителей
I came across this built-in command that works under XP, 2003, and Vista. Я пришел в этот встроенный в команду, которая работает под XP, 2003 и Vista.
From the command line you can type: , В командной строке вы можете:
driverquery driverquery
And it will immediately come back with a complete list of drivers И оно немедленно вернуться с полным перечнем водителей

Better yet, the program is loaded with options. Более того, программа загружается с вариантами. If we look at the help screen for it: Если мы посмотрим на помощь экране для нее:
Parameter List: Список параметров:
/S system Specifies the remote system to connect to. / S системы Указывает на удаленной системе установить соединение с.
/U [domain\]user Specifies the user context / U [домен \] пользователь Определяет пользователей связи
under which the command should execute. , в которых команда должна исполнять.
/P [password] Specify the Password for the given / p [пароль] Задайте пароль для данного
user context. пользователь контексте. Prompts for input if omitted. Экране для ввода, если пропущен.
/FO format Specifies the type of output to display. / ДЛЯ формат Задает тип продукции для отображения.
Valid values to be passed with the Допустимые значения, которые передаются с
switch are "TABLE", "LIST", "CSV". перейти являются "ТАБЛИЦА", "СПИСОК", "CSV".
/NH Specifies that the "Column Header" / NH Указывает, что "Колонка Header"
should not be displayed in the не должны отображаться в
screen output. экран производства. Valid for "TABLE" Действительно для "СТОЛ"
and "CSV" format only. и "CSV" только формат.
/V Displays detailed information. / V Показывает подробную информацию. Not valid Не в силе
for signed drivers. для подписанных драйверов.
/SI Provides information about signed drivers. / SI предоставляет информацию о подписанных драйверов.
/? /? Displays this Help/Usage. Размещение этой Справка / использование.
We can see that it is possible to query a computer remotely. Мы можем видеть, что можно запрос компьютер удаленно. I was going to build a simple program to do this for me...but is already built in! Я как раз собирался создать простую программу сделать это для меня ... но это уже встроен в!
My purpose was that I wanted to create a report of drivers on computers across my network. Моя цель заключалась в том, что я хотел создать отчет водителей на компьютерах по всей своей сети. To accomplish this, it required two batch files. Для достижения этого, необходимо две командные файлы.
I first created a batch file that looks like this: Я впервые создан пакетный файл, который выглядит примерно так:
@echo =========================================== @ повторить ===========================================
@echo Driver Report for Computer: %1 @ повторить Driver Отчет за компьютер:% 1
@echo =========================================== @ повторить ===========================================
@driverquery /s %1 /u intelliadmin\administrator /p [Password Removed] @ driverquery / ы% 1 / у intelliadmin \ администратор / р [Пароль удалена]
@echo @ повторить
Lets save that as DriverReport.bat Позволяет сохранять, что DriverReport.bat
The script will run a driver query against a remote computer with the specified username and password...and will output to the command line a nicely formatted report. Этот скрипт запустить драйвер запрос на удаленном компьютере с указанным именем пользователя и пароля ... и выведет в командную строку один красиво формат доклада. The computer name will be provided as the first command line parameter (That is what %1 is for) На имя компьютера будет представлена как первый параметр командной строки (Именно это% 1 для)
Also - if you notice - you will need to put your password as cleartext in this batch file...so make sure you delete it when done. Кроме того, если Вы заметили, - вам придется поставить пароль как cleartext в этом пакетный файл ... поэтому убедитесь, что вы удалите его, когда закончите.
Now, we need to create another batch file that will actually generate the report. Теперь нам нужно создать еще один пакетный файл, который будет фактически генерировать доклада. Here is my first crack at it: Вот моя первая трещина на него:
@del Report.txt @ дель Report.txt
@DriverReport.bat Computer1 >> Report.txt @ DriverReport.bat Computer1>> Report.txt
@DriverReport.bat Computer2 >> Report.txt @ DriverReport.bat Computer2>> Report.txt
@DriverReport.bat Computer3 >> Report.txt @ DriverReport.bat Computer3>> Report.txt
@DriverReport.bat Computer4 >> Report.txt @ DriverReport.bat Computer4>> Report.txt
@DriverReport.bat Computer5 >> Report.txt @ DriverReport.bat Computer5>> Report.txt
@DriverReport.bat Computer6 >> Report.txt @ DriverReport.bat Computer6>> Report.txt
It deletes any report we created before, and then generates a report for each system...then takes the output and appends it to Report.txt Удаляется любой доклад, мы создали ранее, и затем генерирует отчет для каждой системы ... Далее в выходные и добавляет его к Report.txt
Simply fill out the batch file with your computer names. Просто заполните пакетный файл с вашего компьютера имена. You could probably throw together a vb script that would populate it for you. Вы могли бы, вероятно, пролить вместе vb скрипт, который будет подставлен его для Вас.
Lets save that last script as GenerateReport.bat Позволяет сохранять, что последний сценарий как GenerateReport.bat
Now when you call it (GenerateReport.bat), Report.txt will contain a complete driver list for the computers you include. Теперь, когда вы вызываете его (GenerateReport.bat), Report.txt будет содержать полный перечень драйвер для компьютеров включать.
Just make sure you put both batch files in the same folder - and be careful with your admin password. Просто убедитесь в том, как поставить командные файлы в той же папке - и будьте осторожны с вашим пароль администратора. Don't leave it laying around on your network in that first batch file. Не оставляйте его создания вокруг вашей сети, что в первой партии файл.
Written by Steve Wiseman. Письменные путем Стив Уайзман. Read more great feeds at is source Подробнее большие каналы на исходный WEBSITE ВЕБ-САЙТ
3 comments 3 комментарии . .
Read more articles on Подробнее статей о software программное обеспечение . .
- [+] Digg [+] Digg : Feature this article : Функция этой статье
- [+] Del.icio.us [+] Del.icio.us : Bookmark this article : Закладка этой статье
- [+] Furl [+] Фурл : Bookmark this article : Закладка этой статье















#1 # 1 . November 4th, 2007, at 4:28 PM. 4 ноября 2007 года, в 4:28 вечера.
Windows XP returns an error message that “driverquery” is not recognized. Windows XP возвращает сообщение об ошибке, что "driverquery" не признается. Any suggestions? Любые предложения?