WMI ManagementScope connect failure with RPC_C_AUTHN_LEVEL_PKT_INTEGRITY error on remote machine

Viewed 287

I am getting the following error in the event viewer on the remote machine

The server-side authentication level policy does not allow the user Machinename\user SID (X-X-X-XX-XXXXXX-XXXXX-XXXXXX-XXXX) from address XX.X.XX.XXX to activate DCOM server. Please raise the activation authentication level at least to RPC_C_AUTHN_LEVEL_PKT_INTEGRITY in client application.

when trying to run the following code

var Connection = new ConnectionOptions();
Connection.Username = "MyUsername";
Connection.Password = "MyPassword";
var Scope = new ManagementScope(string.Format(@"\\{0}\root\cimv2", Address), Connection);
Scope.Connect();

It works fine when running the exact same code from another machine, so I suspect it is some configuration on the client machine that is not correct but I cannot find what it might be. The above call throws "Access Denied" exception.

0 Answers
Related