Get the domain in a Windows offline
I needed to get the domain of a computer offline from Winpe.
Our Script:
set target_root=%1
if not exist %target_root%\system32\config\system goto nohive
Reg query HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters /v Domain
:nohive
echo Target Root no contiene la ruta necesaria.
pause