Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: 16 Jun 2005 01:21:18 -0700,    group: microsoft.public.platformsdk.active.directory        back       


help with logon script   
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
-------------------------------------------------
date: 16 Jun 2005 01:21:18 -0700   author:   Nikhil

Re: help with logon script   
Hi (Joe ;)) 

Can you please help me here..

Regards..
date: 17 Jun 2005 10:00:07 -0700   author:   Nikhil

Re: help with logon script   
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..
>
date: Sat, 18 Jun 2005 12:21:14 -0500   author:   Joe Kaplan \(MVP - ADSI\)

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us