troubleshooting Question

How create a batch file using WMIC

Avatar of ANTONIO G
ANTONIO G asked on
Windows Batch* WMIC
9 Comments1 Solution3816 ViewsLast Modified:

I'd like to make a bach file (.bat) using these wmic commands :

wmic /output:c:\COMPUTERNAME_os.list os get /format:list

wmic /output:c:\COMPUTERNAME_sw_installati.list product get /format:list

wmic /output:c:\COMPUTERNAME_av.list /NAMESPACE:\\root\SecurityCenter2 PATH AntiVirusProduct GET /value /format:list

wmic process list full > c:\COMPUTERNAME_process.list

tasklist /svc > c:\COMPUTERNAME_servizio.list

systeminfo > c:\COMPUTER_sysinfo.list

At the end of the day I should have 6 files (.list)
I would be more than grateful if somebody can help me.

Thank you
Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros