Where I am a little fuzzy is how to handle the group modification. Currently Sharepoint team gives me a spreadsheet with two columns. One is the group to be modified, and the other is the groups/users that need to be added to that group. Currently they are putting all the users/groups to be added to the group in one cell. I’m not sure of a way to read all the users in the cell into the group.
I know I could format the data like below, and do a for each statement. But that would require me going into the spreadsheet and modifying the columns, I want to do this as automated as possible
Thanks, that it does. For some reason it outputs the csv with just a bunch of “F”'s. Not sure why, but I am going to dig into it and see what I can figure out.
Real problem:
The test spreadsheet I was using had multiple tabs, and the data I was looking to modify wasn’t the first tab. I created a new spreadsheet with only one tab and the data and it was fine.
Just a further update if you change the line $ws = $wb.Sheets.Item(1) to the number or name of the tab you will not have to create a new spread sheet each time (assuming the data is always on the same tab wit the same name the example below had 2 tabs with the second one called thisone