Sign in with
Sign up | Sign in
Your question

local administrator user

Last response: in Windows 2000/NT
Share
Anonymous
May 13, 2004 3:28:58 AM

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
Anonymous
May 13, 2004 2:17:54 PM

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
!