Thank you for this.
I have implemented the code these articles suggest, but I'm finding that the processes are not getting elevated privelages. However this might be because I'm not working in a domain environment.
My setup has all pcs with the same administrator password. So on my main pc with the vb code I created a user called test which does not exist on the other boxes. When attempting to access the other boxes through wmi or remote registry, I only have the privileges of the user test, even though I have switched user, and the windows api getusername function does indeed return "administrator" instead of "test" (on every thread).
When I push the administrator credentials though wmi's own connection settings I can connect via wmi. (and when I log in as administrator on the test machine it all works on any machine). So it seems that impersonating a user doesnt actually elevate your privileges to that user
Any ideas
thank you
|