githubEdit

powershell

AD & Windows native tools

Basic enumeration commands

Get PC name

hostname

Get OS version information

[System.Environment]::OSVersion.Version

Print patches and hotfixes

wmic qfe get Caption,Description,HotFixID,InstalledOn

Print network adaptors

ffconfig /all

Display a list of environment variable

cmd /c set

Print domain name

echo %USERDOMAIN%

Print domain controller name

echo %logonserver%

System information

Powershell (quick check)

There are many version of powershell exists on system and powershell event logging introduced with powershell 3.0 and forward. If we can spawn powershell 2.0 or older, our actions will not be logged in event viewer.

Downgrade powershell (event log bypass technique)

Print current version

Downgrade

Network commands

Firewall check

Windows defender check

Check antimalware software is installed on the system

Logged on users check

ARP table

Routing table

Display the status of firewall

Last updated