使用wmic识别安装到系统中的补丁情况1
C:\> wmic qfe get description,installedOn
识别正在运行的服务1
2C:\>sc query type= service
C:\>net start
识别开机启动的程序,包括路径1
C:\>wmic startup list full
ping探测存活主机1
D:\>for /L %I in (100,1,254) DO @ping -w 1 -n 1 10.18.180.%I | findstr "TTL=" >> pinglive.txt
查看系统中网卡的IP地址和MAC地址1
D:\>wmic nicconfig get ipaddress,macaddress
查看当前系统是否有屏保保护,延迟是多少1
D:\>wmic desktop get screensaversecure,screensavertimeout
查看系统中开放的共享1
2D:\>wmic share get name,path
D:\>net share
查看系统中开启的日志1
C:\>wmic nteventlog get path,filename,writeable
清除相关的日志(这里是全部清除)1
2
3wevtutil cl "windows powershell"
wevtutil cl "security"
wevtutil cl "system"
查看系统中安装的软件以及版本1
C:\>wmic product get name,version
查看某个进程的详细信息 (路径,命令行参数等)1
C:\>wmic process where name="chrome.exe" list full
终止一个进程1
2D:\>wmic process where name="xshell.exe" call terminate
D:\>ntsd -c q -p 进程的PID
显示系统中的曾经连接过的无线密码1
2D:\>netsh wlan show profiles
D:\>netsh wlan show profiles name="profiles的名字" key=clear
查看当前系统是否是VMWARE1
C:\>wmic bios list full | find /i "vmware"