Monday, April 19, 2010

Access denied while connecting to remote system using WMI

I’ve had the same problem connecting to default admin share [c$] from
one WinXP Pro box to a second WinXP Pro box – both machines in
different domain. This has been going on for quite
some time and not much info about it on the newsgroups.

Anyway, I fixed my problem like this:

Under Administrative Tools:
LOCAL SECURITY SETTINGS
LOCAL POLICIES
SECURITY OPTIONS
Network Access: Sharing and security model for local
accounts.

Value was “Guest Only … ” That seemed screwy to me, so I changed the
value to “Classic – local users authenticate as themselves”

Now you can connect to remote system using WMI,

Set objwmiservice = objLocator.ConnectServer(strComputer, “\root\cimv2″, “username”, “password”)

BINGO !!!

No comments:

Post a Comment