Hi,
I am trying to ensure that the Remote Registry Service is always set to Automatic (triggered) with a dependency on the “Remote Procedure Call (RPC)” Service. No matter what I do I am getting a error when trying to generate the MOF that it is not in the correct format or the “Remote Procedure Call (RPC)” Service does not exist.
Here is what I tried:
#Ensure Remote Registry is set to Automatic Service RemoteRegistry { Name = "RemoteRegistry" DependsOn = "[Service]RpcSs" StartupType = "Automatic" } #Ensure Remote Registry is set to Automatic Service RemoteRegistry { Name = "RemoteRegistry" DependsOn = "[Service]Remote Procedure Call(RPC)" StartupType = "Automatic" }
When I run a Get-Service for RPCSS I get this info:
Name: RPCSS
DisplayName: Remote Procedure Call (RPC)
ServiceName: RPCSS
I know this service exists and I have tried both the name and display name to no avail. Can someone tell me what I am doing wrong here?
Thanks, Ed