Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo off
- set variable="%TEMP%\wmicresults_%COMPUTERNAME%.txt"
- echo #### USER ACCOUNTS #### > %variable%
- wmic useraccount get username sid >> %variable%
- wmic rdaccount list brief >> %variable%
- echo #### LOCAL GROUPS #### >> %variable%
- wmic group get name, sid >> %variable%
- echo #### RUNNING PROCESSES #### >> %variable%
- wmic process get name, processid >> %variable%
- echo #### SERVICES #### >> %variable%
- wmic service get name, processid, startmode, state >> %variable%
- echo #### NETWORK #### >> %variable%
- wmic nicconfig list brief >> %variable%
- wmic nic get macaddress
- echo #### OTHER HOSTS #### >> %variable%
- wmic ntdomain list brief >> %variable%
- echo #### SYSTEM CONFIG #### >> %variable%
- wmic bios list brief >> %variable%
- wmic computersystem list brief >> %variable%
- wmic startup list brief >> %variable%
- echo #### DIRECTORY AND FILE #### >> %variable%
- wmic share list brief >> %variable%
- wmic datafile where hidden="True" get name >> %variable%
- echo off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement