Use set-csmeetingroom for assigning lineuri error

Occasional Contributor

Trying to script the creation or migration of meeting rooms to Teams.  This would include assigning Lineuri for each room.

I can assign them in the GUI just fine.

(below is example with real data removed)

Set-CsMeetingRoom -Identity confrm1@contoso.com -lineuri tel:+12225551234 -locationID XXXXXXXX
Unable to set "LineURI". This parameter is restricted within Remote Tenant PowerShell.
+ CategoryInfo : InvalidArgument: (:) [Set-CsMeetingRoom], ManagementException
+ FullyQualifiedErrorId : LineURI,Microsoft.Rtc.Management.AD.Cmdlets.SetOcsMeetingRoomCmdlet
+ PSComputerName : api.interfaces.records.teams.microsoft.com

 

running the set-csuser with the room identity gives the same error.

0 Replies