Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :: Collecting System Information on Windows 10 and Windows 11
- @Echo Off
- (Net session >nul 2>&1)||(PowerShell start """%~0""" -verb RunAs & Exit /B)
- Cls & Mode CON LINES=11 COLS=65 & Color 0E
- Echo.
- Echo.
- Echo.
- Echo.
- Echo Collecting System Information
- Echo.
- Echo Please Wait...
- Echo.
- If not exist "%userprofile%\Desktop\SysInfo" Md "%userprofile%\Desktop\SysInfo"
- Systeminfo > "%USERPROFILE%\Desktop\SysInfo\Systeminfo.txt"
- GPRESULT /r /z > "%userprofile%\Desktop\SysInfo\GroupPolicy.txt"
- GPRESULT /f /h "%userprofile%\Desktop\SysInfo\GroupPolicy.html" 2>&1>nul
- If Exist %SystemRoot%\MiniDump\*.dmp Copy %SystemRoot%\MiniDump\*.dmp "%userprofile%\Desktop\SysInfo" 2>&1>nul
- Copy %SystemRoot%\System32\drivers\etc\hosts "%userprofile%\Desktop\SysInfo\Hosts.txt" 2>&1>nul
- Msinfo32 /nfo "%userprofile%\Desktop\SysInfo\Msinfo32.nfo" 2>&1>nul
- If Exist wevtutil.exe Wevtutil qe System /f:text > "%userprofile%\Desktop\SysInfo\SystemEventlog.txt" 2>&1>nul
- If Exist wevtutil.exe Wevtutil qe Application /f:text > "%userprofile%\Desktop\SysInfo\ApplicationEventlog.txt" 2>&1>nul
- If Exist bcdedit.exe Bcdedit /enum all > "%userprofile%\Desktop\SysInfo\Bcdedit.txt" 2>&1>nul
- Dxdiag /t "%userprofile%\Desktop\SysInfo\dxdiag.txt"
- powercfg.exe /energy /duration 10 /output "%userprofile%\Desktop\SysInfo\Energy_Report.html" 2>&1>nul
- PowerShell Get-CimInstance -ClassName Win32_Process ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\Process.txt"
- PowerShell Get-Service ^| where status -eq "Running" ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\RunningServices.txt"
- PowerShell Get-Service ^| where status -eq "stopped" ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\StoppedServices.txt"
- PowerShell Get-WindowsOptionalFeature -Online ^| ? state -eq "disabled" ^| select featurename ^| sort -Descending ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\DisabledFeatures.txt"
- PowerShell Get-psdrive -psprovider filesystem ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\PartitionList.txt"
- PowerShell Get-CimInstance win32_desktop ^| where name -eq (whoami) ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\CurrentlyLogonUser.txt"
- PowerShell Get-CimInstance -ClassName Win32_BIOS ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\BIOS.txt"
- PowerShell Get-CimInstance -ClassName Win32_Processor ^| Select-Object -ExcludeProperty "CIM*" ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\CPU.txt"
- PowerShell Get-CimInstance -ClassName Win32_ComputerSystem ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\PCModelInformation.txt"
- PowerShell Get-CimInstance -ClassName Win32_QuickFixEngineering ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\Hotfixes.txt"
- PowerShell Get-CimInstance -ClassName Win32_OperatingSystem ^| Select-Object -Property BuildNumber,BuildType,OSType,ServicePackMajorVersion,ServicePackMinorVersion ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\OperatingSystemVersionInformation.txt"
- PowerShell Get-CimInstance -ClassName Win32_OperatingSystem ^| Select-Object -Property *user* ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\RegisteredUser.txt"
- PowerShell Get-CimInstance -ClassName Win32_LocalTime ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\LocalTime.txt"
- PowerShell Get-WmiObject win32_baseboard ^| Format-List Product,Manufacturer,SerialNumber,Version,Model,Name ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\MotherBoardInfo.txt"
- 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"
- PowerShell Get-WindowsDriver -Online -All ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\Drivers.txt"
- PowerShell Get-WindowsEdition -Online ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\WindowsEdition.txt"
- PowerShell Get-NetAdapter -Name * -Physical ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\NetworkAdapters.txt"
- PowerShell Get-NetIPConfiguration -All ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\IPConfiguration.txt"
- PowerShell Get-WmiObject win32_physicalmemory ^| Format-Table Manufacturer,Banklabel,Configuredclockspeed,Devicelocator,Capacity,Serialnumber -autosize ^| Out-File -FilePath $env:"userprofile\Desktop\SysInfo\Memory.txt"
- Explorer.exe "%userprofile%\Desktop\SysInfo"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement