-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCallforwarding.Ps1
20 lines (14 loc) · 1.32 KB
/
Callforwarding.Ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#This well set callforwarding to an external phone number (PSTN)
Set-CsUserCallingSettings -Identity [email protected] -IsForwardingEnabled $true -ForwardingType Immediate -ForwardingTarget +4512345678 -ForwardingTargetType SingleTarget
#This will get the current call forwarding settings
Get-CsUserCallingSettings -Identity [email protected]
#This will add user as delegate for another user and be able to make and recivecalls
New-CsUserCallingDelegate -Identity [email protected] -Delegate [email protected] -MakeCalls $true -ManageSettings $true -ReceiveCalls $true
#This will change a delegatede persons delegations settings
Set-CsUserCallingDelegate -Identity [email protected] -Delegate [email protected] -MakeCalls $true
#This will remove a person as a delegatede person for a user
Remove-CsUserCallingDelegate -Identity [email protected] -Delegate [email protected]
#This will change a users call forwarding settings to voice mail after 20 sec.
Set-CsUserCallingSettings -Identity [email protected] -IsUnansweredEnabled $true -UnansweredTargetType Voicemail -UnansweredDelay 00:00:20
#This will set calling forwarding to send all call to the users voice mail
Set-CsUserCallingSettings -Identity [email protected] -IsForwardingEnabled $true -ForwardingType Immediate -ForwardingTargetType Voicemail