These commands haven't been verified and might need to be run from the domain controller as it didnt work on my workstation
netdom renamecomputer currentcompname /newname:newcompname /userd:domain\admin /passwordd:* /usero:domain\admin /passwordo:* /reboot:10 /forcenetdom renamecomputer member /newname:member1.contoso.com /userd:administratorforce update group policy
gpupdate /forcegpresult /u rsanchez /h file\path.htmlrsop.msc - in run windownetstat -aon | find /i "listening" | moreactivate local admin
net user administrator /active:yesnet user dvader lightsaber123deny .git folder to user noGitForYou
icacls .git /deny "hostname\noGitForYou":(CI)(OI)(F,M,RX,R,W)View all shares provided by computer:
net shareView permissions of a share:
net share <sharename>net group <groupname> /domaintype file.txt
net use \\computerNameOrIP /user:domain\usernameshutdown /r /m \\computerNameOrIP /f /t 60
/r = reboot (/s for shutdown)/m = remote computer/f = forced (doesn't ask users for permission or confirmation to log them out)/t = number of seconds to delay before running operationthis document last modified: January 30 2020 18:16