Windows Security

From ConShell
Jump to: navigation, search

dsquery - command line tool to query AD LDAP attributes.

dsquery user -name "*Mark*"

Running a command as another user

runas /user:username command

Query the netbios stats

nbtstat -c

Search network neighborhood from command prompt

net view /domain
net view /domain:name

Flush and reset the contents of the DNS client resolver cache

ipconfig /flushdns


To disable autorun see kb953252. Another way is to hold down shift key while inserting the usb drive