windows admin commands
windows admin commands
________________________________________________
net user | View all user accounts
________________________________________________|
________________________________________________
net user username /add | Add a new user
________________________________________________|
________________________________________________
net localgroup administrators username /add | Make a user an admin
________________________________________________|
________________________________________________
sfc /scannow | Scan and fix corrupted system
files
________________________________________________|
________________________________________________
chkdsk /f | Check and repair disk issues
________________________________________________|
________________________________________________
shutdown /r /t 0 | Restart the computer immediately
________________________________________________|
________________________________________________
gpupdate /force | Force Group Policy update
________________________________________________|
________________________________________________
taskkill /f /im processname.exe | Force kill a process
________________________________________________|
________________________________________________
takeown /f filepath | Take ownership of a file
________________________________________________|
________________________________________________
icacls filepath /grant username:F | Give full access to a user
________________________________________________|
________________________________________________