How to adding a user to a local group

From: ±¿µ° (raymond_at_gxchina.com.DISCUSS)
Date: 03/09/04


Date: Tue, 9 Mar 2004 21:51:25 +0800

Does anyone know how to adding a user to a local group without AD.

i tried this script from Microsoft,but get error code 8007056B. I using
WinXP with all hotfix, installed Windows script host 5.6 For Simplify
Chinese platform. Any help are appreciated.

strComputer = "."
Set objGroup = GetObject("WinNT://" & strComputer & "/Administrators,group")
Set objUser = GetObject("WinNT://" & strComputer & "/Guest,user")
objGroup.Add(objUser.ADsPath)

  Raymond



Relevant Pages

  • Re: How to adding a user to a local group
    ... > Does anyone know how to adding a user to a local group without AD. ... > i tried this script from Microsoft,but get error code 8007056B. ... installed Windows script host 5.6 For Simplify ... ' Bind to the computer. ...
    (microsoft.public.windowsxp.wmi)
  • How to adding a user to a local group
    ... Does anyone know how to adding a user to a local group without AD. ... i tried this script from Microsoft,but get error code 8007056B. ... WinXP with all hotfix, installed Windows script host 5.6 For Simplify ...
    (microsoft.public.win32.programmer.wmi)
  • How to adding a user to a local group
    ... Does anyone know how to adding a user to a local group without AD. ... i tried this script from Microsoft,but get error code 8007056B. ... WinXP with all hotfix, installed Windows script host 5.6 For Simplify ...
    (microsoft.public.windowsxp.wmi)
  • Re: rename a local group in windows 2003
    ... If the script always runs on the computer where the local group is to be ... strComputer = objNetwork.ComputernName ... WinNT provider only rename domain groups, ...
    (microsoft.public.windows.server.scripting)
  • Re: Add Domain Users group to local Power Users group
    ... for scripts that add domain users / groups to local groups but haven't ... variable inside the script so that the script works on all computers. ... You pass the AdsPath of the new member to the method. ... ' Bind to the local group with the WinNT provider. ...
    (microsoft.public.scripting.vbscript)