I have the following script that updates the computer description in active directory with the logged user but it only works if the logged user has admin rights. Can anyone tell me how can I modify the following code to make it work for users that have not any admin rights...lets say to impersonate another domain account to run this script.
strComputer = "."
Set adsinfo = CreateObject("adsysteminfo")
Set ThisComp = GetObject("LDAP://" & adsinfo.ComputerName)
Set oUser = CreateObject("WScript.NetWork")
Thiscomp.put "description", " User: " & oUser.UserName
This is very urgent for me as I have to do it this weekend for 5000 computer accounts.
thanks a lot in advance