You can use psservice to request the status of an RFC or print spooler. A spooler is usually one of the last services to start. You can use the syntax, for example:
psservice \\someothermachine query spooler
This will return something like this once the service is started.
SERVICE_NAME: Spooler
DISPLAY_NAME: Print Spooler
Manages all local and network print queues and controls all printing jobs. If this service is stop
ped, printing on the local machine will be unavailable. If this service is disabled, any services
that explicitly depend on it will fail to start.
GROUP: SpoolerGroup
TYPE: 110 WIN32_OWN_PROCESS INTERACTIVE_PROCESS
STATE: 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE: 0 (0x0)
SERVICE_EXIT_CODE: 0 (0x0)
CHECKPOINT: 0x0
WAIT_HINT: 0x0 If the other machine is not ready, you will get something like
Unable to connect to \\ someothermachine:
The RPC server is unavailable.
Chris miller
source share