Ivan Abramov
2009-09-29 15:24:02 UTC
Hello.
I have the VB6 code:
Dim objSWbemLocator As Object, objSWbemServices As Object,
colNetworkAdapters As Object
Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator")
Set objWMIService = objSWbemLocator.ConnectServer(sComputer, , sUser,
sPassword)
While execution I get the 'Access denied' error in the last line.
Everything is working well only in local computer.
As soon as I try to connect to remote computer, the error appears.
Computer name, user name and his password is correct.
Computers are not in a domain but in LAN.
What is incoorect?
I need to read computers config info.
Many thanks in advance.
I have the VB6 code:
Dim objSWbemLocator As Object, objSWbemServices As Object,
colNetworkAdapters As Object
Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator")
Set objWMIService = objSWbemLocator.ConnectServer(sComputer, , sUser,
sPassword)
While execution I get the 'Access denied' error in the last line.
Everything is working well only in local computer.
As soon as I try to connect to remote computer, the error appears.
Computer name, user name and his password is correct.
Computers are not in a domain but in LAN.
What is incoorect?
I need to read computers config info.
Many thanks in advance.