T
tbader01
Hello Everyone!
I use the following NT shell code to determine a remote
machines domain/workgroup name:
REM Add '<' as a delimiter.A long domain name can come up
to the <00> entry.
SET PARAMS="tokens=1 delims=< "
FOR /F %PARAMS% %%a IN ('NBTSTAT -a %SERVERNAME%
^|FIND /I "<00> GROUP"') DO SET DOM="%%a"
I would like to further determine a workgroup from a
domain, but am not quite sure how to accomplish this.
If at all possible, using commands such as NBTSTAT that
are native to any box would be preferred, but anything
will help!
Thanks!
I use the following NT shell code to determine a remote
machines domain/workgroup name:
REM Add '<' as a delimiter.A long domain name can come up
to the <00> entry.
SET PARAMS="tokens=1 delims=< "
FOR /F %PARAMS% %%a IN ('NBTSTAT -a %SERVERNAME%
^|FIND /I "<00> GROUP"') DO SET DOM="%%a"
I would like to further determine a workgroup from a
domain, but am not quite sure how to accomplish this.
If at all possible, using commands such as NBTSTAT that
are native to any box would be preferred, but anything
will help!
Thanks!