Script PowerShell

Copper Contributor

Oi boa tarde

 

Import-module ActiveDirectory

$Path = 'C:\users.csv'

Get-ADUser -Filter * -Properties * | Select-Object Name, UserPrincipalName | Export-Csv -Path $Path –notypeinformation

 

Criei este script agora preciso importar as informações do "users.csv" através do UserPrincipalName para um grupo de segurança

 

Por gentilteza me ajudem 

 

 

#####################################################################

 

 

I read this script now I need to import the information from "users.csv" through UserPrincipalName to a security group

 Please help me

 

 

 

1 Reply
I read this script now I need to import the information from "users.csv" through UserPrincipalName to a security group



Please help me