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%system32configsystem goto nohive
Reg query HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters /v Domain
:nohive
echo Target Root no contiene la ruta necesaria.
pause