@DC
— Returns the number of
controllers or the name of one controller for a domain.
Syntax:
%@DC[
index,
domain]
index | 0 returns the number of controllers; 1 — n returns the name of a controller |
domain | if the computer is a member of a domain, this parameter is optional |
set n=%@dc[0]
iff %n gt 0 then
do i = 1 to %n
echo %i %@dc[%i]
enddo
endiff