I have always connected to remote servers via the VBscript code below .. is there a similar way to connect in VB.NET?
I have found all the ways to connect remotely as long as the calling machine has the correct privilages, I need to be able to connect assigning user/pass.
VB Code:
Set objLocator = CreateObject( "WbemScripting.SWbemLocator") Set objWMIService = objLocator.ConnectServer(strServer,"root/cimv2",strUser,strPassword) objWMIService.Security_.impersonationlevel = 3




Reply With Quote