Windows Command Line Tricks
From MRL Wiki
While Windows XP/2003 provide convenient GUI facilities for machine administration, it is often useful to be aware of equivalent command line alternatives.
Contents |
[edit] User Management
[edit] Add User
Add new username with login 'alice' and password 'secret':
net user alice secret /add
[edit] Add User to a Group
Add username 'alice' to administrator group on a local machine:
net localgroup Administrators %username% /add
[edit] Windows Firewall
[edit] Open Port
Open TCP port 23 and label it 'telnet':
netsh firewall add portopening TCP 23 telnet
[edit] Server
[edit] Telnet Server
Enable and start Windows Telnet Server:
sc config TlntSvr start= auto sc start TlntSvr