Windows
Administration
Users
net user <username> <password> /add
psexec.exe -accepteula -i -s %SystemRoot%\system32\cmd.exe #escalate to SYSTEMGroups
net localgroups
whoami /allAdd group
net localgroup "<groupname>" <username> /add
net localgroup "Administrators" <username> /add
net localgroup "Remote Desktop Users" <username> /addShares
List shares
net shareCreate an unrestricted share
Connect to a share
Transfer files
Firewall
Manage ports
Enable RDP
Directories
List subdirs
List files
Powershell
Permissions
Permission types
Permissions for each file:
N: no access.
F: full access.
M: modify access.
RX: read and execute access.
R: read-only access.
W: write-only access.
D: delete access.
Inheritance types, shown only on folders:
(OI): object inherit.
(CI): container inherit.
(IO): inherit only.
(NP): don't propagate inherit.
(I): permission inherited from parent container.
Check permissions
Alter permissions
Networking
Default TTL
Typical ports
Last updated