Script PowerShell

%3CLINGO-SUB%20id%3D%22lingo-sub-2757660%22%20slang%3D%22pt-BR%22%3EScript%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2757660%22%20slang%3D%22pt-BR%22%3E%3CP%3EHi%20good%20afternoon%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EImport-module%20ActiveDirectory%3C%2FP%3E%3CP%3E%24Path%20%3D%20'C%3A%5Cusers.csv'%3C%2FP%3E%3CP%3EGet-ADUser%20-Filter%20*-Properties%20*%20%7C%20Select-Object%20Name%2C%20UserPrincipalName%20%7C%20Export-Csv%20-Path%20%24Path%20-notypeinformation%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20created%20this%20script%20now%20I%20need%20to%20import%20the%20information%20from%20%22users.csv%22%20through%20UserPrincipalName%20to%20a%20security%20group%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20gentleness%20help%20me%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2757660%22%20slang%3D%22pt-BR%22%3E%3CLINGO-LABEL%3EWindows%20PowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New 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