Guest User

SysInfo

a guest
Jun 17th, 2017
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. msinfo32 /nfo syssum.nfo /categories +systemsummary
  2.  
  3. // wmic /node:"ComputerNameORIpAddress" /user:"domain\username" /password:"password" ComputerSystem Get Model, Manufacturer
  4. http://net-informations.com/q/mis/wmic.html
  5. https://4sysops.com/archives/msinfo32-wmic-remotely-read-system-information-with-wmi/
  6. wmic /output:test1.txt computersystem get /all /format:csv
  7.  
  8.  
  9. Get-CimInstance Win32_OperatingSystem | Export-Csv test2.txt
  10.  
  11. https://msdn.microsoft.com/en-us/powershell/scripting/getting-started/cookbooks/collecting-information-about-computers
  12. https://technet.microsoft.com/en-us/library/ee176825.aspx
  13. https://gallery.technet.microsoft.com/scriptcenter/PowerShell-System-571521d1
  14. function Get-SystemInfo
  15. {
  16. param($ComputerName = $env:ComputerName)
  17.  
  18. $header = 'Hostname','OSName','OSVersion','OSManufacturer','OSConfig','Buildtype', 'RegisteredOwner','RegisteredOrganization','ProductID','InstallDate', 'StartTime','Manufacturer','Model','Type','Processor','BIOSVersion', 'WindowsFolder' ,'SystemFolder','StartDevice','Culture', 'UICulture', 'TimeZone','PhysicalMemory', 'AvailablePhysicalMemory' , 'MaxVirtualMemory', 'AvailableVirtualMemory','UsedVirtualMemory','PagingFile','Domain' ,'LogonServer','Hotfix','NetworkAdapter'
  19. systeminfo.exe /FO CSV /S $ComputerName |
  20. Select-Object -Skip 1 |
  21. ConvertFrom-CSV -Header $header
  22. }
  23. Get-SystemInfo | Export-Csv test3.txt
  24. Get-Process | Export-Csv test4.txt
Add Comment
Please, Sign In to add comment