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

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Mar 17, 9:38 am, "jogging" <v-xi...@xxxxxxxxxxxxx> wrote:
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?

Workgroups don't recognize domains so you won't be able to do this
unless you join it to the domain of the user you want to add.
If the machine is not part of the domain, there's no way for it to
know who that domain user is, so therefore it can't be added to the
Administrators group.
.



Relevant Pages

  • Re: If possible to add domain user to a workstations local administrators group by scrpting?
    ... administrators group by scrpting. ... When I try this on workgroup, script prompts fails with "unknow user name ... machine with their domain account. ... They would need to first authenticate ...
    (microsoft.public.scripting.vbscript)
  • Re: permissions tab
    ... | I cant remember why I usually avoid workgroups...... ... | the administrators group) tried to chang the permissions ... I always thought that workgroup ...
    (microsoft.public.windowsxp.basics)
  • Re: If possible to add domain user to a workstations local administrators group by scrpting?
    ... administrators group by scrpting. ... When I try this on workgroup, script prompts fails with "unknow user name ... bind to the workgroup computer. ... workgroup computer, perhaps you can use alternate credentials to bind to the ...
    (microsoft.public.scripting.vbscript)
  • add local group to administrators
    ... I have created a group on the worksatation called TEST. ... I open the Administrators group and attempt to add this ... Running in a workgroup with no windows domain. ...
    (microsoft.public.windowsxp.security_admin)
  • RE: Level security
    ... security leve,I deleted the new workgroup which I ... >First create a shortcut to the database. ... You will see a target line. ... confers no rights. ...
    (microsoft.public.access.gettingstarted)