Solved

winaudit batch excercise

Posted on 2014-10-10
2
377 Views
Last Modified: 2014-10-28
We need to run a tool called "winaudit" over 75 window servers for a compliance audit and configuration management purposes. It is just a small exe app which produces an end report in HTML / PDF giving various information on the servers hardware/OS/apps etc. The only way we can see to run the tool is to remote onto each server manually and run it- then save the output to a network share. I wondered if there was a more automated way of running the same exe on many servers remotely (i.e. from 1 dedicated machine), and some how collate the necessary evidence in bulk. Is there anyway to do this? The remoting onto each server manually is quite time consuming (each scan takes around 2-5 mins).
0
Comment
Question by:pma111
2 Comments
 
LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 250 total points
ID: 40372815
You could probably write a batch script that executes PSExec, which would in turn execute your winaudit utility.
0
 
LVL 25

Accepted Solution

by:
Lionel MM earned 250 total points
ID: 40374703
PSExec is a good idea and/or you could use scheduled tasks (schtasks /?) from a batch file to read through a list of al your servers and run the task, for instance
for /F "tokens=1,2,3 delims=," %%i in (C:\Utils\ServerList.csv) do (
SCHTASKS /Create /S ServerName /U user /P password /RU runasuser /RP runaspassword /SC ONCE /TN TaskName /TR winaudit.exe
)
this will read the list of servers and schedule a task to run one time (/SC ONCE) on each server
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question