Getting things done from command prompt

Print Friendly

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
This entry was posted in Windows. Bookmark the permalink.

Leave a Reply

Your email address will not be published.