![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | Re: Open a group as domain administrator Hello Monitor. Congratulations on your first post to m.p.s.vb. |
My System Specs![]() |
| | #3 (permalink) |
| | 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) 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 Specs![]() |
| | #4 (permalink) |
| | 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 Specs![]() |
| | #5 (permalink) |
| | 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 Specs![]() |
| | #6 (permalink) |
| | 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. http://www.microsoft.com/downloads/d...6-1c4099d7bbb9 |
My System Specs![]() |
| | #7 (permalink) |
| | 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 Specs![]() |
| | #8 (permalink) |
| | 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. 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 Specs![]() |
| | #9 (permalink) |
| | 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 Specs![]() |
| | #10 (permalink) |
| | 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. 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 Specs![]() |
![]() |
| 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 | |||