external help file | Module Name | online version | schema |
---|---|---|---|
TeamsFunctions-help.xml |
TeamsFunctions |
2.0.0 |
Applies a Phone Number to a User Object or Resource Account
Set-TeamsPhoneNumber [-UserPrincipalName] <String[]> [-PhoneNumber] <String> [-Force] [-WhatIf] [-Confirm]
[<CommonParameters>]
Set-TeamsPhoneNumber [-Object] <Object[]> [-PhoneNumber] <String> [-Force] [-WhatIf] [-Confirm]
[<CommonParameters>]
Applies a Microsoft Calling Plans Number OR a Direct Routing Number to a User or Resource Account
Set-TeamsPhoneNumber -UserPrincipalName John@domain.com -PhoneNumber +15551234567
Applies the Phone Number +1 (555) 1234-567 to the Account John@domain.com
Required for Parameterset Object. CsOnlineUser Object passed to the function to reduce query time. This can be a UPN of a User Account (CsOnlineUser Object) or a Resource Account (CsOnlineApplicationInstance Object)
Type: Object[]
Parameter Sets: Object
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Required for Parameterset UserPrincipalName. UserPrincipalName of the Object to be assigned the PhoneNumber. This can be a UPN of a User Account (CsOnlineUser Object) or a Resource Account (CsOnlineApplicationInstance Object)
Type: String[]
Parameter Sets: UserPrincipalName
Aliases: ObjectId, Identity
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
A Microsoft Calling Plans Number or a Direct Routing Number Requires the Account to be licensed. Able to enable PhoneSystem and the Account for Enterprise Voice Required format is E.164 or LineUri, starting with a '+' and 10-15 digits long.
Type: String
Parameter Sets: (All)
Aliases: Tel, Number, TelephoneNumber
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Suppresses confirmation prompt unless -Confirm is used explicitly Scavenges Phone Number from all accounts the PhoneNumber is currently assigned to including the current User
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Simple helper function to assign a Phone Number to any User or Resource Account Returns boolean result and less communication if called by another function Can be used providing either the UserPrincipalName or the already queried CsOnlineUser Object
https://github.com/DEberhardt/TeamsFunctions/tree/main/docs/Set-TeamsPhoneNumber.md
https://github.com/DEberhardt/TeamsFunctions/tree/main/docs/about_VoiceConfiguration.md
https://github.com/DEberhardt/TeamsFunctions/tree/main/docs/about_UserManagement.md
https://github.com/DEberhardt/TeamsFunctions/tree/main/docs/about_Supporting_Functions.md
https://github.com/DEberhardt/TeamsFunctions/tree/main/docs/