Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

WMI "access denied" error for remote computer

$
0
0

Hi,

I'm trying to query the Win32_PageFileUsage using c# and also using "WMI code creator" (http://www.microsoft.com/downloads/details.aspx?FamilyID=2cc30a64-ea15-4661-8da4-55bbc145c30e&displaylang=en) from a remote machine.

Each call (using both methods) returns an "access denied" error.

Both machines are running Windows 2003 Server OS.

The machines are not part of a domain, so I've configured a twin account (same user credentials) on both machines, added the user to the administrators group on both machines and gave the needed permissions for WMI namespaces and for DCOM.

When running both the "WMI Code Creator" and my program, I'm logged into the machine with the credentials of the created user.

Firewall is off on both mahines.

I can RDP to the machines with the credentials above.

I've checked the local security policy and "Network access: Sharing and security model for local accounts" is set to "Classic".

What can be the reason for this?

 

Please help,

Alex.

 

Edit: Solved, the local policy prevented the connections.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>