Windows General
Jump to navigation
Jump to search
Unjoin domain without admin psswd
Boot off a USB or CD to something that gets you a command prompt. (Google how to make a boot disk if you need to)
copy c:\windows\system32\sethc.exe c:\ copy c:\windows\system32\cmd.exe c:\windows\system32\sethc.exe
Reboot the PC.
Hit the shift-key 5 times to activate "StickyKeys" and type:
net user adminaccount newpassword
Don't forget to copy the original StickyKeys file back.
Type the following commands at this point to unjoin the domain:
start /B /W wmic.exe /interactive:off ComputerSystem Where "Name='%computername%'" Call UnJoinDomainOrWorkgroup FUnjoinOptions=0 start /B /W wmic.exe /interactive:off ComputerSystem Where "Name='%computername%'" Call JoinDomainOrWorkgroup name="WORKGROUP"
Infinite ping with time
ping.exe -t 8.8.8.8|Foreach{"{0} - {1}" -f (Get-Date),$_}