Windows Common Security Commands

Netsh (XP)

  • Show status of firewall
netsh firewall show state
  • Create exception called webbackup and open port 23 to
netsh firewall add portopening protocol=TCP port=23 name=WebBackup mode=enable scope=custom addresses=

Net Command

  • Add new user called root with password as password
net user root password /add

*Add user root to localgroup administrators

net localgroup Administrators root /add
  • Stop firewall process
net stop netsvcs

SC Command

  • Show services status
sc query state= all
  • Configure telnet service to "demand"
sc config tlntsvr start= demand
  • Start tlntsvr service
sc start tlntsvr
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License