Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

need help with powershell command

$
0
0

hello .

i want to add to a multiple ad groups a multiple ad users with powershell command.

how can i do this in the esaly way?

i try this but itsn't works

$groups=Import-Csv C:\groups.csv
$users= Get-Content C:\Users.txt


foreach ($grp in $groups)
{

(Get-ADGroup -Identity $grp -members $users) 
}

10x for the help!



Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>