Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Open a group as domain administrator

Reply
 
Old 03-21-2009   #1 (permalink)
gimme_this_gimme_that


 
 

Open a group as domain administrator


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)

Thanks.


My System SpecsSystem Spec
Old 03-21-2009   #2 (permalink)
gimme_this_gimme_that


 
 

Re: Open a group as domain administrator

Hello Monitor. Congratulations on your first post to m.p.s.vb.
My System SpecsSystem Spec
Old 03-21-2009   #3 (permalink)
Al Dunbar


 
 

Re: Open a group as domain administrator


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

>
> 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


My System SpecsSystem Spec
Old 03-21-2009   #4 (permalink)
gimme_this_gimme_that


 
 

Re: Open a group as domain administrator

Hi Al,

I'd be delighted if I could download the documentation for VBScript.

Before posting I searched live.com and google.com and came up with
blank.

Please don't bother to search for me - but if you have a URL I
promise you I will reference it.

Yes, I'm aware of using the runas to run a script under alternate
credentials and I'm aware of the option of using a service account.

Part of my analysis from Friday's set of postings was a consideration
that the script run with designated credentials because might be
called from a Java web application that runs a local shell command
(and manages membership in a specific OU).

Quote:

> 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
My System SpecsSystem Spec
Old 03-22-2009   #5 (permalink)
Paul Randall


 
 

Re: Open a group as domain administrator

The scripting documentation file script56.chm is available from microsoft,
but not particularly easy to find. Try going to msdn.microsoft.com and use
the search box in the red header area for the two words: download
script56.chm. On computers with recent security updates, after you have
downloaded the file, you may have to right click the file and choose
'unblock' before you can use this help file. Microsoft has a wealth of info
about scripting, much of it downloadable. Search for the three words:
download scripting guys, for a lot of interesting stuff.

-Paul Randall

<gimme_this_gimme_that@xxxxxx> wrote in message
news:7c93f630-3948-4cea-b4d1-4ebe3191b828@xxxxxx
Quote:

> Hi Al,
>
> I'd be delighted if I could download the documentation for VBScript.
>
> Before posting I searched live.com and google.com and came up with
> blank.
>
> Please don't bother to search for me - but if you have a URL I
> promise you I will reference it.
>
> Yes, I'm aware of using the runas to run a script under alternate
> credentials and I'm aware of the option of using a service account.
>
> Part of my analysis from Friday's set of postings was a consideration
> that the script run with designated credentials because might be
> called from a Java web application that runs a local shell command
> (and manages membership in a specific OU).
>
>
Quote:

>> 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
>

My System SpecsSystem Spec
Old 03-22-2009   #6 (permalink)
James Whitlow


 
 

Re: Open a group as domain administrator

<gimme_this_gimme_that@xxxxxx> wrote in message
news:7c93f630-3948-4cea-b4d1-4ebe3191b828@xxxxxx
Quote:

> Hi Al,
>
> I'd be delighted if I could download the documentation for VBScript.
>
> Before posting I searched live.com and google.com and came up with
> blank.
>
> Please don't bother to search for me - but if you have a URL I
> promise you I will reference it.
See link below (watch for wrapping).

http://www.microsoft.com/downloads/d...6-1c4099d7bbb9


My System SpecsSystem Spec
Old 03-23-2009   #7 (permalink)
gimme_this_gimme_that


 
 

Re: Open a group as domain administrator

Hi James,

How do I open this chm file?

When I open it directly from Internet Explorer only the left column
renders.

Thanks.
My System SpecsSystem Spec
Old 03-23-2009   #8 (permalink)
James Whitlow


 
 

Re: Open a group as domain administrator

<gimme_this_gimme_that@xxxxxx> wrote in message
news:aaee2768-9f1a-4503-b0aa-4db685518836@xxxxxx
Quote:

> Hi James,
>
> How do I open this chm file?
>
> When I open it directly from Internet Explorer only the left column
> renders.
After you download it to your local computer, you should just be able to
double-click on it. If not, check to make sure that the 'CHM' extension is
associated with 'Microsoft HTML Help Executable'. You can do this in
"'Tools' > 'Folder Options' > "File Types'" or the registry. In the
registry:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.chm]
@="chm.file"

[HKEY_CLASSES_ROOT\chm.file\shell\open\command]
@="\"C:\\WINDOWS\\hh.exe\" %1"


My System SpecsSystem Spec
Old 03-23-2009   #9 (permalink)
gimme_this_gimme_that


 
 

Re: Open a group as domain administrator

Thanks.

I associated CHM files with "Microsoft HTML Help Executable" - but I
see the same as before. I think the file is corrupted.
My System SpecsSystem Spec
Old 03-25-2009   #10 (permalink)
Paul Randall


 
 

Re: Open a group as domain administrator


<gimme_this_gimme_that@xxxxxx> wrote in message
news:4973522b-a5cd-4c87-8ad3-7cae606e2a5b@xxxxxx
Quote:

> Thanks.
>
> I associated CHM files with "Microsoft HTML Help Executable" - but I
> see the same as before. I think the file is corrupted.
Newer Windows OSs are somewhat paranoid about certain downloaded files.
Try right clicking the file and see if there is a context menu item to
'unblock'.
Doing this should fix the problem.

-Paul Randall


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
"add domain group to local group" stopped working VB Script
add a global group to a domain local group VB Script
Difference between a domain group and a local group VB Script
Added a User to a Group in another domain PowerShell
Add domain group to local group question VB Script


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46