Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- net localgroup Administrators | find /I /C "cncadmin" > cncAccount.tmp
- set /p cncAccount= < cncAccount.tmp
- del cncAccount.tmp
- echo Checking your system information, Please wait...
- systeminfo > sysinfo.tmp
- echo ----------------------------------------------
- echo SysInfo:
- type sysinfo.tmp | findstr /c:"Host Name"
- type sysinfo.tmp | findstr /c:"Domain"
- type sysinfo.tmp | findstr /c:"OS Name"
- type sysinfo.tmp | findstr /c:"Original Install Date"
- type sysinfo.tmp | findstr /c:"OS Version"
- type sysinfo.tmp | findstr /c:"System Manufacturer"
- type sysinfo.tmp | findstr /c:"System Model"
- type sysinfo.tmp | findstr /c:"System Type"
- echo ----------------------------------------------
- if "%cncAccount%" == "1" (echo ^
- CNC ADMIN account FOUND!) else (echo ^
- There is NOT a CNC ADMIN account -- PLEASE CREATE)
- echo ----------------------------------------------
- echo Local Users:
- wmic useraccount get name
- echo ----------------------------------------------
- echo FIREWALL STATE (Domain, Private, Public):
- netsh advfirewall show allprofiles | find "State"
- echo ----------------------------------------------
- echo Mapped Network Drives / Folders:
- REM REG QUERY "HKEY_CURRENT_USER\Network" /S | find "RemotePath"
- REM wmic /node:"PLO-PC" netuse get localname, name, username
- REM wmic netuse get Caption, DisplayType, LocalName, Name, ProviderName, Status
- echo ----------------------------------------------
- echo Shared Folders:
- net share
- echo ----------------------------------------------
- echo Service Tag:
- wmic bios get serialnumber
- echo ----------------------------------------------
- echo Motherboard:
- wmic baseboard get Manufacturer, Model, Name, PartNumber, slotlayout, serialnumber
- echo ----------------------------------------------
- echo CPU:
- wmic cpu get name
- wmic cpu get MaxClockSpeed, DeviceID, status
- echo ----------------------------------------------
- echo Disk Drives:
- wmic Volume get Name, Capacity, FreeSpace
- wmic diskdrive get Model, MediaType
- echo ----------------------------------------------
- echo Memory:
- type sysinfo.tmp | findstr /c:"Total Physical Memory"
- wmic memorychip get Description, Devicelocator, Speed
- echo ----------------------------------------------
- echo Network:
- ipconfig | findstr IPv4
- ipconfig | findstr "Subnet Mask"
- ipconfig | findstr Gateway
- ipconfig /all | find "DHCP Server"
- ipconfig /all | find "DNS Servers"
- route PRINT -4
- echo ----------------------------------------------
- echo Printers:
- wmic printer get Name, PortName
- echo ----------------------------------------------
- echo Startup items:
- wmic startup get Command
- del sysinfo.tmp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement