Find windows install date
systeminfo | find "Original Install Date"
Find computer name
hostname
Find domain
echo %userdomain%
Restart service
net stop "Print Spooler" && net start "Print Spooler"
Manage firewall
–ON
NetSh Advfirewall set allrprofiles state on
–OFF
NetSh Advfirewall set allrprofiles state off
–Check status
Netsh Advfirewall show allprofiles
Check if Remote Desktop is enabled
nestat -an | find "3389"
Find logged in username
echo %username%
List users
net users
Details about a user
net users administrator
List network connections and ports
netsat -an
Find logged in username/domain
whoami
Show admin shares
net share