I have made a small script that checks jobs in all the print ques on the primary domain controller (PDC).

The problem is that it can't be used from any other server (I have a dedicated server for controlling the network).

I can run the script from any other server/machine to check on any of the other servers/machines. But it can not check the PDC(it can check the BDC) unless run from the PDC.

Also, the script when run from the PDC can NOT check any other server/machine.

What am I doing wrong?