#188484 - 2008-06-3005:35 PMRe: Convert AD create user to Standalone create user
[Re: Gargoyle]
Glenn BarnasGlenn Barnas KiX Supporter
Registered: 2003-01-28
Posts: 4401
Loc: New Jersey
Here's what I used to push out groups - uses would be similar. You need a copy of PSExec.exe for this, or modifiy it to use some WMI-based remote exec process.
Here's the sample GrpMgmt.ini file
[COMMON]
# LocalGroups = comma-separated list of groups to update
LocalGroups=Administrators
# for each group defined in LocalGroups, a corresponding section is needed
[Administrators]
# MakeLocal=Y/N - should the local group be created?
MakeLocal=N
# AddAccounts= comma-separated list of accounts to add to the defined local group
AddAccounts=DOMAIN\Security_Group
# DelAccounts= comma-separated list of accounts to remove from the defined local group
DelAccounts=
# [NewGroup] Name of local group
# MakeLocal=Y Create it? (Y/N)
# AddAccounts=Accounts,to,add
# DelAccounts=Accounts,to,delete
The "servers.txt" file is just a plain list of computers to process, one host per line.
As you can see, this is pretty old code, but it works.
Glenn
_________________________ Actually I am a Rocket Scientist!