Friday, January 27, 2012

Windows CLI commands collection

1) Find drive letter from the command line: #wmic logicaldisk get caption,description,filesystem

2) Launch a command prompt window using SYSTEM credentials : #psexec /sid cmd.exe

3) Check WSUS client configurations: #Reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /s

4) Force WSUS client to download updates from WSUS server: #wuauclt /detectnow

5) Use filter in NETSTAT to see listening connections: #netstat -aon |find /i "listening"

No comments: