Forum Discussion
therealkristaps
Jun 17, 2021Copper Contributor
Multiple values to -ObjectId ?
Hello world, I am little bit concerned about whether I can add multiple values to -ObjectId as in the example below? I need to test this in production, but I am a bit unsure. Here's a part of the...
Schnittlauch
Jun 17, 2021Steel Contributor
Hi therealkristaps ,
Welcome to the MTC!
I would try it with foreach. Just put the values in a csv.
I have never try it. Anything like this:
Foreach ($testobject in $ImportOfObjectIDs) {Get-AzADGroupMember -ObjectId "$testobject")
Try it yourself, if you don't reach more, write a small comment.
Schnittlauch
Welcome to the MTC!
I would try it with foreach. Just put the values in a csv.
I have never try it. Anything like this:
Foreach ($testobject in $ImportOfObjectIDs) {Get-AzADGroupMember -ObjectId "$testobject")
Try it yourself, if you don't reach more, write a small comment.
Schnittlauch
- therealkristapsJun 17, 2021Copper ContributorSchnittlauch Thanks a lot 🙂 Will try this out.