Created
November 7, 2020 17:40
-
-
Save raulunzue/c14be14771edac264af9644aba3f28ec to your computer and use it in GitHub Desktop.
Powershell para importar usuarios a grupos de directorio activo mediante CSV
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################################## | |
## RAUL UNZUE - ELBLOGDENEGU | |
## CARGAR USUARIOS A GRUPOS DE IMPRESION | |
########################################## | |
Import-Csv "C:\Users\elblogdenegu\Desktop\usuariosad.csv" -Delimiter ';' | | |
ForEach-Object { | |
Add-ADGroupMember ` | |
-Identity $_.GrupoAD ` | |
-Members $_.Usuario | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment