Get AD site name on Locked Down XP System

Everyone on the web seemed to point to

nltest /dsgetsite

Found myself on a locked down XP system needing to get this programmatically and came up with the below

Not fast but it works reliably to date

set cmd="gpresult | findstr /B /C:"Site Name:""
for /f "tokens=3" %%G IN (' %cmd% ') DO set location=%%G
echo %location%