I need to perform a small inventory in our network. So I wrote a VBScript which I wanted to deploy with our deployment system. My problem now is: The script is executed in the context of the AD system user.
So this lines:
Set objNetwork = CreateObject("Wscript.Network") strOutput = strOutput & ";" & objNetwork.UserName
Wont return the logged on user but the AD system user running the script.
Does anybody know a solution for this?