Powershell to add multiple users in multiple groups

preview_player
Показать описание

Username,groupname
User1,group1
User2,group2
User3,group3

#=========================================================================

#=========================================================================
Рекомендации по теме
Комментарии
Автор

Thats what I was looking for and a lot simpler than I thought it would be! Thanks!!

damongrambow
Автор

Great video this made my job a lot easier for adding nearly 200 users to several groups.

kdspland
Автор

Thanks bro :) Before this video, I almost had to add 350 people to a mulitple groups manually in A.d, you literally saved me hours of work.

neilokelly
Автор

This has saved me so much work, I had 1300 different user/group combinations and it ran in like 5 seconds. Thanks so much for your video guide :)

Vicky.andtheMogs
Автор

Simply and right to the point. Thank you

msstrawberries
Автор

Thank you, this is Great, saved me lots of hours of tedious work

gracenaghibi
Автор

Thanks for the helpful video. What if you want to sync the AD groups to the CSV (which would mean adding and removing users)?

robshin
Автор

Thanks a lot Sir. you saved 30 precious minutes of my life

DivitUjjwal
Автор

What would be the best way to create a log for the changes made and the failures?

anb
Автор

This script saved me! The script I have is to add indiscualds to a group. Im writing a script to that will pull ownership of groups from users in a text file. A suggest for you if your looking to make another video

onslaught
Автор

Is there a way to make it not fail if the users are already made?

dasoe
Автор

Thanks for the video. I am a beginner in Powersehll and am currently trying to assign students to their classes at our school. Which modules need to be installed and/or imported to execute this script? And which service do I need to connect to? I would be very happy about an answer!

axelrumkorf
Автор

thanks very helpful.. you got a tutorial to add bulk users to AD?

borugahagayo
Автор

Hi how to perform the addition of same users on same groups on different number of servers

vikneshvaransaravanan
Автор

Great Video, is there a way to add more than one user to a group using a modified script/csv? I've been trying without success..

TheMannersmanley
Автор

Hi, I'm trying to massively create a few hundreds Office 365 groups for ancemy organization, each with (possibly) multiple owners and members. could help me? how can I do? thank you in advance

martiscuola
Автор

Let's say groups are in different different OU, You have not defined the location. How come it adding to the correct location ?

npanthri
Автор

hello sir... if you don't mind i need a command or a script to list of members of have access for shared folders.

vdfkhkk
Автор

Hi, I am currently trying to import multiple users to multiple different groups via powershell.

The formatting of the CSV is:

Group Name Members

grp1   user 1, user 2, user 3

grp 2   user 5, user 1, user 4

grp 3    user 6, user 5, user 3

Some of the users that exist within the CSV do not currently exist so i have tried several different methods to import this but keep on getting errors

import-csv | ForEach-Object {add-ADGroupMember -Identity $_.groupname -Members $_.username} is what im currently using, although i have tried other ways of trying to achieve this.

I believe the issue that i am currently having is i need to do a -split(;) as the users are within the same cell, per row. I am therefore if i need to edit this or start over.

I was wondering if anyone could help me with this as. I am unsure if i need to edit my csv to a different format or if powershell is capable of doing this within this format. ( i could not see anyone else trying this format on forums)

Thanks!

Chris-zeic
Автор

Great video! I have two questions though, wouldn't this command add all users to groups 1, 2 and 3? It seemed they only went into one group each.

Secondly, what if I want to import data from two different locations, can you pipline two sets of data? e.g. '$a | $b | foreach-object {add-adgroupmember -identity $a -members $b}'

I know this code is incorrect, I'm just wondering if it is possible to pipline in variables from multiple sources?

sevencostanza