May 23, 2014 02:47 AM|WimVM|LINK
The problem remains to be the permissions on the remote machine. I created a local account with the same name and password on the workstation as the domain user that I assigned to the application pool of the website from which the code is running. The local
user is member of the local administrators on the workgroup server.
The error I get is "Access Denied" as soon as I do the connect to the ManagementScope:
Dim oMgtScope As New ManagementScope("\\" & sServerName & "\root\cimv2")
I have also tried to add the options on the ManagementScope. Both impersonate or username & password don't work. Temporary disabled the Windows firewalls on both the webserver and the local workgroup server, as well as on the hardware firewall. Name resolution
is working in both directions.
I am blocked. If I don't find a solution based on the WMI/DCOM, the only option left is to use the scenario with the Windows service. I would like to avoid that because it needs a local installation on each of the workgroup servers and I don't like the idea
that the service is not directly initiated from the script on the webserver so there is no direct feedback that the permissions where set correctly.