weekly command line job

shodge37

Member
Aug 9, 2007
153
0
0
i am admittedly NOT a command line expert. :(

i need to schedule a monthly job that will do 3 things:

1. get system info from our 6 servers (all windows 2000 server)
2. get a list of running services on each server
3. direct the output to a text file which is sent to me

so my questions are - can this be done? and if so, how?

TIA - i know for you cmd experts this is a no-brainer :p

on 2nd thought - is this the right place to post this? sorry if so
 

KB

Diamond Member
Nov 8, 1999
5,406
389
126
This sort of inventory is best handled by a management tool like SMS or Landesk, which will put all inventory data in a database.

There are free inventory tools out there too like http://www.spiceworks.com

If you really want to go the command line route you could set up a \\server\share to have the files sent to and run these two command lines in a batch file as a scheduled task.

WMIC /OUTPUT:\\server\share\%COMPUTERNAME%processlist.txt PROCESS get Caption,Commandline,Processid
systeminfo >> \\server\share\%COMPUTERNAME%info.txt