Getting things done from command prompt

Print Friendly

Find windows install date

systeminfo | find "Original Install Date"

Find computer name


Find domain

echo %userdomain%

Restart service

net stop "Print Spooler" && net start "Print Spooler"

Manage firewall

NetSh Advfirewall set allrprofiles state on


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


Show admin shares

net share
This entry was posted in Windows. Bookmark the permalink.

Leave a Reply

Your email address will not be published.