Hi,
please check first if EnablePriviliges Property in is set to true and ImpersonationLevel is set to Impersonate.
Like this:
ManagementScope scope = new ManagementScope("\\\\192.168.178.55\\root\\cimv2", options);
scope.Options.EnablePriviliges = true;
scope.Options.Impersonation = System.Management.ImpersonationLevel.Impersonate;
If you still get the exception we hat do do more research because of right privileges, try this:
General Information about your exception (copied from MS Technet):
This error occurs when the connected user is not recognized or is restricted in some fashion by the remote server (for example, the user might be locked out). This happens most often when accounts are in different domains. Recent changes to WMI security can also cause this error to occur:
Blank passwords, formerly permitted, are not allowed in Windows XP and Windows Server 2003.
WMI does not allow asynchronous callbacks to a Windows 98 client. A call like SWbemServices.ExecNotificationQueryAsync from a Windows 98 computer to a Windows XP computer will result in an Access Denied error returned to the Windows 98 machine.
The DCOM configuration access setting might have been changed.
If the target computer is running Windows XP, the Forceguest value under the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa might be set to force the Guest account off (value is zero).
Solutions:
http://msdn.microsoft.com/en-us/library/aa393266%28v=vs.85%29.aspx[
^]
http://www.computerperformance.co.uk/Logon/code/code_80070005.htm[
^]
Should work.
Regards