Adding user to to administrators group

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Mark Hammonds Mark Hammonds 1 year, 8 months ago.

  • Author
  • #31719
    Profile photo of Jay Niraula
    Jay Niraula

    I need help with pshell script to add and remove users from Administrators group.


    We temporarily grant access to users to built-in administrators group to perform some administrative tasks and remove their access as soon as they are done.

    currently, if I have to grant users access to domain B, what I do is , RDP to the domain_B with my domain_A account as Domain_A account is administrative account, open administrators group and add the user to the group.

  • #31720
    Profile photo of Mark Hammonds
    Mark Hammonds

    Add-ADGroupMember -Identity "some group" -Members "Some User"

    you can do explicit remoting to access AD module for another domain

You must be logged in to reply to this topic.