Skip to content System Commands
- hostname: Displays the hostname.
- systeminfo: System details (OS, memory, patches).
- ipconfig /all: Network configuration.
- set: Lists environment variables.
- echo %USERDOMAIN%: Domain to which the host belongs.
- echo %logonserver%: Domain controller it interacts with.
PowerShell
- Get-Module: Lists available modules.
- Get-ExecutionPolicy -List: Script execution policies.
- Get-ChildItem Env:: Environment information.
- Get-Content: Reads command history (may reveal credentials).
Network Commands
- arp -a: ARP table.
- route print: Routing table.
WMI
- wmic process list: Running processes.
- wmic ntdomain list: Domains and controllers.
- wmic useraccount list: Local and domain accounts.
Net Commands
- net group /domain: Domain groups.
- net user /domain: Domain users.
- net group "Domain Admins" /domain: Domain admins.
- net accounts /domain: Password and lockout policies.
Dsquery
- dsquery user: Lists users.
- dsquery computer: Lists computers.
- dsquery * "CN=Users,DC=domain,DC=local": Searches with filters.