Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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