Freigeben über


Utilização do modulo de Powershell para Active Directory - Add-ADGroupMember

Como adicionar utilizadores a grupos da Active Directory a partir de um ficheiro CSV, utilizando o Powershell.

> Import-Module ActiveDirectory
> $tabela = Import-Csv .\Users.csv
> $tabela | foreach {Add-ADGroupMember -Identity $_.group -Members $_.user -v}

Picture Preview - https://blogs.technet.com/cfs-filesystemfile.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-94-04/4834.Add_2D00_ADGroupMember.png

 

NunoAlex_Powershell1_Add-ADGroupMember.mp4