Now when I issued that command, console prompted the following:
Supply values for the following parameters:
TollNumber:
ParticipantPasscode:
Domain:
Name:
So if those parameters are mandatory when using Set-CsUserAcp, and all of my users have unique passcodes, it seems that there is no way to remove the toll-free numbers from all the users with just one command?
Does anyone know if this can be done easily or am I forced to just go to the Office365 portal and go through all of the users (many hundreds)
Thanks for your reply. The tollFreeNumber is not the problem, the passcode number is as it is unique to all the users.
I think I’d have to do some kind of scripting and as that is not my strongest suit (and I do not the time at this moment to learn) I think I’m forced to remove these one by one from GUI…
Did you event try what Don suggested? It looks like the TollFreeNumbers is an array of objects containing the TollNumber, ParticipantCode, Domain and Name. If you do:
I would expect it would return @{TollNumber=blah;ParticipantCode=blah;Domain=blah;Name=blah} for an object that contains a ParticipantCode. What is returned for a user that has no ParticipantCode? Setting it to @() should set the array of objects to nothing and remove an entries, visually it would look something like this