Help Connecting WMI issue

N

Nadir

Hi

I am conencting to remote machine using following code:


Set oRegistry = GetObject("winmgmts:{impersonationLevel=impersonate}//" & _
sComputer & "/root/default:StdRegProv")

The problem is that i want to connect to WMI using named user and password,
Can anybody help me how to achieve this?

Regards

Tariq
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top