CollectlogsfromtheWindowsservers
1. Get system info
目前创新互联公司已为近1000家的企业提供了网站建设、域名、网页空间、绵阳服务器托管、企业网站设计、和静网站维护等服务,公司将坚持客户导向、应用为本的策略,正道将秉承"和谐、参与、激情"的文化,与客户和合作伙伴齐心协力一起成长,共同发展。
systeminfo > "${env:COMPUTERNAME}_systeminfo.txt"
2. Get serial number
Get-WmiObject -Class Win32_BIOS | Select * >"${env:COMPUTERNAME}_bios.txt"
3. Get installed driver version
Get-WmiObject -Class Win32_PnPSignedDriver| select Devicename,Friendlyname, Driverprovidername, Driverversion, Driverdate, Location |export-csv "${env:COMPUTERNAME}_installed_driver.csv"
4. Get installed software version
Get-WmiObject -Class Win32_Product | select Name, Version, Vendor,Caption | export-csv "${env:COMPUTERNAME}_installed_software.csv"
名称栏目:CollectlogsfromtheWindowsservers
本文网址:http://ybzwz.com/article/iediss.html