How can I configure a logon script which has to run with admin privileges on a comp. What my basic need is to set the description of the computer to something like "<UserDisplayName in AD> @ <telephone Number available in AD>" for which I wrote something like this..and saved it as logon.vbs and set it as the logon script of AD user (using the AD Users and computers console). but at the last line, getting error saying that "Active Directory General Access Denied",so here I am assuming that it is running as the part of user credentials (eveb for which on the computer he does not have the local admin), so my question is how do I set the script to run on part of (possibly Domain) Admin privileges so that it can set the description field of the computer object. thanks, Nikhil ------------------------------------------------------ set objSysInfo = CreateObject("ADSystemInfo") set objuser = GetObject("LDAP://" & objSysInfo.UserName) objUser.GetInfo strTelephone = objUser.telephoneNumber strName = objUser.DisplayName WScript.Echo strName & " @ " & strTelephone strDesc = strName & " @ " & strTelephone set objComputer = GetObject("LDAP://" & objSysInfo.ComputerName) objComputer.Description = strDesc objComputer.SetInfo -------------------------------------------------
Hi (Joe ;)) Can you please help me here.. Regards..
Are you asking me or Joe Richards? I don't really write scripts (.NET programmer) and have no experience whatsoever with login scripts. Joe K. "Nikhil" wrote in message news:1119027607.587462.301080@g14g2000cwa.googlegroups.com... > Hi (Joe ;)) > > Can you please help me here.. > > Regards.. >