Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Need help with WMI code that will send output to db

$
0
0
'm new to WMI code writing, so I need some help with writing code that we can store on our server. I want this code to run when a user logs into their computer and talks to our server. I also want the code to:

* check the users computer and find all installed patches

* the date the patches were installed

* the serial number of the users computer

* the computer name, os version, last boot up time, and mac address

and then have all this output to a database file. At the command prompt I've tried:

wmic qfe get description, hotfixid

This does return the patch information I'm looking for, but how do I combine that line of code with:

wmic os get version, csname, serialnumber, lastbootuptime

and

wmic nicconfig get macaddress
and then get all this to output to a database file?

Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>