Re: Registry Key
From: Torgeir Bakken (MVP) (Torgeir.Bakken-spam_at_hydro.com)
Date: 02/28/04
- Next message: PCT: "RE: rras administration"
- Previous message: Kaylene aka Taurarian: "Re: restricting users"
- In reply to: Bob: "Registry Key"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 28 Feb 2004 03:28:30 +0100
Bob wrote:
> Where is the registry key for the administrators group. I
> would like to add a new group to the administrators group
> on each PC and would like to make a reg punch to do this.
Hi
Sorry, you can't do that with a registry edit.
net.exe can be used for this, something like this:
net.exe localgroup "local group name" "domain\domain group name" /add
(in a command prompt, run "net.exe help localgroup" for more information)
Alternatives for local as well as remote execution:
The free command line utility Lg.exe on the free win32 c++ tools page of
http://www.joeware.nen
VBScript using the WinNT provider is also an option:
http://groups.google.com/groups?q=ADsPath+winnt+GetObject+add+administrators+group:*.scripting
-- torgeir Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/scriptcenter
- Next message: PCT: "RE: rras administration"
- Previous message: Kaylene aka Taurarian: "Re: restricting users"
- In reply to: Bob: "Registry Key"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|