# Get Systeminfo
systeminfo
systeminfo | findstr /B /C:"Os Version"
systeminfo | findtr Domain
# Get hotfix
wmic qfe # quick fix engineering
# Get list of drives and filter
wmic logicaldisk get caption,discription,pridername
User Enumeration
# print current user
whoami
#list privilege of current user
whoami /priv
# List user of the current group
whoami /groups
# print users on the computer and get details
net user
net user <username>
# list local groups
net localgroup
net localgroup administrator
Network Enumeration
# List ip addresses, interface etc
ipconfig
ipconfig /all # verbose
# get ARP table
arp -a
# socket enumration
netstat -abno
Password Hunting
# search for "password" in *.txt files
findstr /si Password *.txt
AV Enumeration
# Check if windows defender is running
sc query windefend
#list services
sc queryex service
# Firewall Enumeration
netsh advfirewall firewall dump
netsh firewall show state
Get-WmiObject -Class Win32_ShadowCopy
# Shadown copy class can be used to call the Create method to create shadow copy
# Create a shadow copy and creating a link to that shadow copy.
(Get-WmiObject -Class Win32_ShadowCopy -List).Create("C:\", "ClientAccessible")
$link = (Get-WmiObject -Class Win32_ShadowCopy).DeviceObject + "\"
cmd /c mklink /d C:\shadowcopy "$link"