If possible to add domain user to a workstation's local administrators group by scrpting?



I am wondering if possible to add domain user to a workstation's local
administrators group by scrpting.

You konw, in most scenario we use {objLocalGroup}.add function to achieve
this target, but what if a workgroup?
When I try this on workgroup, script prompts fails with "unknow user name or
bad password".

Any ideas?


.



Relevant Pages

  • Re: If possible to add domain user to a workstations local administrators group by scrpting?
    ... But Richard,in my script I have already get a domain user account SID ... workgroup rather than a domain member server. ... workgroup computer, perhaps you can use alternate credentials to bind to ...
    (microsoft.public.scripting.vbscript)
  • Re: programs not running when join to domain
    ... This programs run OK when the machine is log as a workgroup ... What happens when a domain user tries to launch the app? ... power user rights....which they don't by default, ... You can try adding the domain user account to the local ...
    (microsoft.public.win2000.setup)
  • workgroup problem..plz help
    ... my problem is if i have one 2000 domain server ... I have no tend to make the workgroup join to the ... me to key in the domain user name and password? ... for the win98, it will prompt me only the password, ...
    (microsoft.public.win2000.security)
  • NetUserGetLocalGroups() fails
    ... The method NetUserGetLocalGroups() fails in my scenario. ... I have a machine which has a domain user and this user is part of the ...
    (microsoft.public.win32.programmer.networks)
  • NetUserGetLocalGroups() fails
    ... The method NetUserGetLocalGroups() fails in my scenario. ... I have a machine which has a domain user and this user is part of the ...
    (microsoft.public.win32.programmer.networks)