1 2 3 4 5
|
Get-Content computer.txt | ForEach-Object { Get-WmiObject win32_NetworkAdapterConfiguration -computername $_ | format-list DNSHostname, Description, DNSDomain, IPAddress, MacAddress;
Get-WmiObject win32_computersystem -computername $_ | format-list Name, Version, Description,Domain, Manufacturer, Model, Roles, SystemStartupOptions, SystemType, TotalPhysicalMemory, UserName,IdentifyingNumber;
Get-WmiObject win32_computersystemproduct -computername $_ | format-list __SERVER, Version, Description,Domain, Manufacturer, Model, Roles, SystemType, TotalPhysicalMemory/1KB, UserName,IdentifyingNumber ;
Get-WmiObject win32_Diskdrive -computername $_ | format-list systemname, Interfacetype, Caption } | Out-File test111.txt |
Partager