local administrator user

G

Guest

Guest
Archived from groups: microsoft.public.win2000.group_policy (More info?)

sir
i want a group policy script to create a adinistrator
local user but this should be applied in domian group
plicy so that i create local user on 200 computer at the
same time with same password.
thx
 
G

Guest

Guest
Archived from groups: microsoft.public.win2000.group_policy (More info?)

Running a script at startup with code similar to below, should give you the
neccesary permissions to create this account.

**SCRIP START
Dim oPC
Dim oGroup
Dim oWshNetwork
Dim oUser

Set oWshNetwork=CreateObject("wscript.network")
Set oPC=getObject("WinNT://" & oWshNetwork.ComputerName)
Set oGroup=GetObject("WinNT://" & oWshNetwork.ComputerName &
"/Administrators",Group)

Set oUser=oPC.create("User","myAdminUserName")
oUser.setpassword "MyPassword"
oUser.setinfo
oGroup.add(oUser.adspath)
oGroup.setinfo
**SCRIPT END

Hope this helps

Regards

Niclas Lindblom

"ali paracha" <anonymous@discussions.microsoft.com> wrote in message
news:c58501c438b3$92737c80$a101280a@phx.gbl...
> sir
> i want a group policy script to create a adinistrator
> local user but this should be applied in domian group
> plicy so that i create local user on 200 computer at the
> same time with same password.
> thx