
OK thanks. I am just a bit confused about why it is different for servers
and clients and how to turn it on and off. I understand DCOM
permissions, but I think RPC is something different and I do not know how
to change RPC settings...
The problem with using WMIC (or simply connecting to WMI) is that many
people have reported a long delay before receiving "The RPC server is
unavailable". When working with thousands of machines, we do not want
this delay. I do have a system that uses ICMP ping, but with the latest
Microsoft firewall settings, it is no longer useful.
I want to understand the security settings required by rpcping for WMI
operations, so I can create small "rpcping" application, something like
this:
RPC_STATUS status;
unsigned short *StringBinding;
RPC_BINDING_HANDLE BindingHandle;
status = RpcStringBindingCompose(NULL, // Object UUID
L"ncacn_ip_tcp", // Protocol sequence to use
L"MyServer.MyCompany.com", // Server DNS or Netbios Name
NULL,
NULL,
&StringBinding);
// Error checking ommitted. If no error, we proceed below
status = RpcBindingFromStringBinding(StringBinding, &BindingHandle);
// free string regardless of errors from RpcBindingFromStringBinding
RpcStringFree(&StringBinding);
the idea is to use lightweight code to test the communication channel
before starting calls to WMI...
--
Gerry Hickman (London UK)