scripts/powershell/listar_propiedades_usuarios_ad_desde_fichero.ps1

3 lines
210 B
PowerShell
Raw Permalink Normal View History

2023-07-12 13:43:15 +02:00
Import-Module ActiveDirectory
Get-Content usuarios.txt | Get-ADUser | select SamAccountName,DistinguishedName,Enabled | export-csv C:\Datos\scripts\salida.csv -Encoding utf8 -NoTypeInformation -Delimiter ","