Skip to content

Instantly share code, notes, and snippets.

@raulunzue
Created November 7, 2020 17:40
Show Gist options
  • Save raulunzue/c14be14771edac264af9644aba3f28ec to your computer and use it in GitHub Desktop.
Save raulunzue/c14be14771edac264af9644aba3f28ec to your computer and use it in GitHub Desktop.
Powershell para importar usuarios a grupos de directorio activo mediante CSV
##########################################
## 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