Here run this, it will tell you the status of the KXRPC service on all Domain Controllers.

code:

Break on cls
;-----------------------------------------------------------------------------
;Check the KXRPC service on all DC's
;
; This script will check/display the status of the KXRPC service on all domain
; controllers.
;
; Needed Programs:
; nltest.exe (NT Resource KIX)
; xnet.exe (came with KixTart)
;-----------------------------------------------------------------------------

$tempfile = "%temp%\temp.txt"
shell '%comspec% /c nltest /dclist:@domain | find /i "\\" > "$tempfile"'
$nul = open(1,$tempfile,2)
$DC = substr(readline(1),5,100)

do
select
case instr($dc,"pdc") <> 0
$PDC = substr($dc,1,instr($dc," (pdc)")-1)
? "===$DC=========="
? shell '%comspec% /c xnet list $pdc\KXRPC'
$DC = substr(readline(1),5,100)
case 1
? "---$DC----------"
? shell '%comspec% /c xnet list $dc\KXRPC'
$DC = substr(readline(1),5,100)
endselect
until @error <> 0


Bryce

[This message has been edited by Bryce (edited 08 January 2001).]