Re: Open a group as domain administrator




<gimme_this_gimme_that@xxxxxxxxx> wrote in message
news:7a22ec43-f6c7-4b19-9092-48444cdc79cc@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I have a statement like this one:

Set myGroup = GetObject("LDAP://
CN=MyGroup,OU=SomeotherOu,OU=SomeOu,OU=Rights,OU=Groups,OU=Americas,DC=somplace,DC=msds,DC=rhi,DC=com")

Letter I want to execute

myGroup.SetInfo

as the domain administrator.

What is the syntax?

Set myGroup = GetObject("LDAP://
CN=MyGroup,OU=SomeotherOu,OU=SomeOu,OU=Rights,OU=Groups,OU=Americas,DC=somplace,DC=msds,DC=rhi,DC=com",strUsername,strPassword)

I believe someone has already suggested you download the documentation for
vbscript. If you do, you will find all of the available functions
documented. The parameters that GetObject accepts have nothing to do with
alternate credentials. If you want a script to make use of the elevated
privileges of a domain administrator, the standard method is to either logon
with a domain admin account to run the script, run it as a scheduled task,
or use RUNAS to run it under alternate credentials.

/Al


.