Advertisement
FreeBooter

PC_info

Aug 19th, 2022
729
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 4.51 KB | Fixit | 0 0
  1. :: Collecting System Information on Windows 10 and Windows 11
  2.  
  3. @Echo Off    
  4.    
  5.  
  6. (Net session >nul 2>&1)||(PowerShell start """%~0""" -verb RunAs & Exit /B)
  7.  
  8. Cls & Mode CON  LINES=11 COLS=65 & Color 0E
  9.  
  10.    
  11.  
  12. Echo.
  13. Echo.
  14. Echo.
  15. Echo.      
  16. Echo              Collecting System Information  
  17. Echo.      
  18. Echo                       Please Wait...
  19. Echo.
  20.  
  21. If not exist "%userprofile%\Desktop\SysInfo" Md "%userprofile%\Desktop\SysInfo"
  22.  
  23. Systeminfo > "%USERPROFILE%\Desktop\SysInfo\Systeminfo.txt"
  24.  
  25. GPRESULT /r /z  > "%userprofile%\Desktop\SysInfo\GroupPolicy.txt"
  26.  
  27. GPRESULT /f /h "%userprofile%\Desktop\SysInfo\GroupPolicy.html" 2>&1>nul
  28.  
  29. If Exist %SystemRoot%\MiniDump\*.dmp Copy %SystemRoot%\MiniDump\*.dmp "%userprofile%\Desktop\SysInfo" 2>&1>nul
  30.  
  31. Copy %SystemRoot%\System32\drivers\etc\hosts  "%userprofile%\Desktop\SysInfo\Hosts.txt" 2>&1>nul
  32.  
  33. Msinfo32 /nfo "%userprofile%\Desktop\SysInfo\Msinfo32.nfo" 2>&1>nul
  34.  
  35. If Exist wevtutil.exe Wevtutil qe System /f:text > "%userprofile%\Desktop\SysInfo\SystemEventlog.txt" 2>&1>nul
  36.  
  37. If Exist wevtutil.exe Wevtutil qe Application /f:text > "%userprofile%\Desktop\SysInfo\ApplicationEventlog.txt" 2>&1>nul
  38.  
  39. If Exist bcdedit.exe Bcdedit /enum all  > "%userprofile%\Desktop\SysInfo\Bcdedit.txt" 2>&1>nul
  40.  
  41. Dxdiag /t "%userprofile%\Desktop\SysInfo\dxdiag.txt"
  42.  
  43. powercfg.exe /energy /duration 10 /output  "%userprofile%\Desktop\SysInfo\Energy_Report.html" 2>&1>nul
  44.  
  45. PowerShell Get-CimInstance -ClassName Win32_Process ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\Process.txt"
  46.  
  47. PowerShell Get-Service ^| where status -eq "Running" ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\RunningServices.txt"
  48.  
  49. PowerShell Get-Service ^| where status -eq "stopped" ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\StoppedServices.txt"
  50.  
  51. PowerShell Get-WindowsOptionalFeature -Online ^| ? state -eq "disabled" ^| select featurename ^| sort -Descending ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\DisabledFeatures.txt"
  52.  
  53. PowerShell Get-psdrive -psprovider filesystem ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\PartitionList.txt"
  54.  
  55. PowerShell Get-CimInstance win32_desktop ^| where name -eq (whoami) ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\CurrentlyLogonUser.txt"
  56.  
  57. PowerShell Get-CimInstance -ClassName Win32_BIOS ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\BIOS.txt"
  58.  
  59. PowerShell Get-CimInstance -ClassName Win32_Processor ^| Select-Object -ExcludeProperty "CIM*" ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\CPU.txt"
  60.  
  61. PowerShell Get-CimInstance -ClassName Win32_ComputerSystem ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\PCModelInformation.txt"
  62.  
  63. PowerShell Get-CimInstance -ClassName Win32_QuickFixEngineering ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\Hotfixes.txt"
  64.  
  65. PowerShell Get-CimInstance -ClassName Win32_OperatingSystem ^| Select-Object -Property BuildNumber,BuildType,OSType,ServicePackMajorVersion,ServicePackMinorVersion ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\OperatingSystemVersionInformation.txt"
  66.  
  67. PowerShell Get-CimInstance -ClassName Win32_OperatingSystem ^| Select-Object -Property *user* ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\RegisteredUser.txt"
  68.  
  69. PowerShell Get-CimInstance -ClassName Win32_LocalTime ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\LocalTime.txt"
  70.  
  71. PowerShell Get-WmiObject win32_baseboard ^| Format-List Product,Manufacturer,SerialNumber,Version,Model,Name ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\MotherBoardInfo.txt"
  72.  
  73. PowerShell Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* ^| Select-Object DisplayName, DisplayVersion, Publisher, InstallDate ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\InstalledPrograms.txt"
  74.  
  75. PowerShell Get-WindowsDriver -Online -All ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\Drivers.txt"
  76.  
  77. PowerShell Get-WindowsEdition -Online ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\WindowsEdition.txt"
  78.  
  79. PowerShell Get-NetAdapter -Name * -Physical ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\NetworkAdapters.txt"
  80.  
  81. PowerShell Get-NetIPConfiguration -All ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\IPConfiguration.txt"
  82.  
  83. PowerShell Get-WmiObject win32_physicalmemory ^| Format-Table Manufacturer,Banklabel,Configuredclockspeed,Devicelocator,Capacity,Serialnumber -autosize ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\Memory.txt"
  84.  
  85.  
  86.  
  87. Explorer.exe "%userprofile%\Desktop\SysInfo"
  88.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement