This is a wrapper function for the SEFAUtil.exe tool from the Lync Resource Kit Tools. It’s intended purpose is to make dealing with the cmdline tool easier.

SYNTAX

.\Invoke-SEFAUtil.ps1 [[-Path] <FileInfo>] [-Server] <String> [-InputObject <Object>] [[-Username] <String[]>] [[-LogFile] <FileInfo>] [-AddTeamMember <String>] [-RemoveTeamMember <String>] [-DelayRingTeam <Int32>] [-DisableTeamCall] [-SimulRingTeam] [-WhatIf] [-Confirm] [<CommonParameters>]

.\Invoke-SEFAUtil.ps1 [[-Path] <FileInfo>] [-Server] <String> [-InputObject <Object>] [[-Username] <String[]>] [[-LogFile] <FileInfo>] [-AddDelegate <String>] [-RemoveDelegate <String>] [-DelayRingDelegates <Int32>] [-FwdToDelegates] [-SimulRingDelegates] [-DisableDelegation] [-WhatIf] [-Confirm] [<CommonParameters>]

.\Invoke-SEFAUtil.ps1 [[-Path] <FileInfo>] [-Server] <String> [-InputObject <Object>] [[-Username] <String[]>] [[-LogFile] <FileInfo>] [-EnableSimulRing <String>] [-DisableSimulRing] [-WhatIf] [-Confirm] [<CommonParameters>]

.\Invoke-SEFAUtil.ps1 [[-Path] <FileInfo>] [-Server] <String> [-InputObject <Object>] [[-Username] <String[]>] [[-LogFile] <FileInfo>] [-EnableFwdNoAnswer <String>] [-EnableFwdImmediate <String>] [-CallAnswerwaitTime <Int32>] [-DisableFwdImmediate] [-DisableFwdNoAnswer] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

The default Value for the Path parameter assumes Lync 2013 Resource Kit Tools are installed at C:\Program Files\Microsoft Lync Server 2013\ResKit. This function requires version 3 of PowerShell as well as the Lync Module for user validation. Note: Check the related links for a really cool GUI wrapper by MVP Johan Veldhuis.

EXAMPLE 1

.\Invoke-SEFAUtil.ps1 -Server ly15.tomt.local -Username [email protected] 

This example invokes SEFAUtil without additional parameters, call forwarding settings for the user [email protected] are shown.

EXAMPLE 2

.\Invoke-SEFAUtil.ps1 -Server ly15.tomt.local -Username [email protected] -EnableSimulRing +391231234567

This example enables Simul Ring for the user [email protected] The destination number for Simul Ring is +391231234567.

EXAMPLE 3

.\Invoke-SEFAUtil.ps1 -Server ly15.tomt.local -Username [email protected] -AddTeamMember [email protected]

This example adds [email protected] to [email protected] This will also enable Simul Ring for the user.

EXAMPLE 4

.\Invoke-SEFAUtil.ps1 -Server ly15.tomt.local -Username [email protected] -DelayRingTeam 10 

This example set’s the delay for Team Calls to 10 seconds for the user [email protected]

EXAMPLE 5

.\Invoke-SEFAUtil.ps1 -Server ly15.tomt.local -Username [email protected] –DisableTeamCall

This example disables Team Call for [email protected]

EXAMPLE 6

Get-CsUser -OU "OU=users,OU=tomt,DC=tomt,DC=local" | .\Invoke-SEFAUtil.ps1 -Server ly15.tomt.local -Verbose -AddDelegate [email protected]

This example uses Get-CsUser to get all Lync Users from within the specified Organizational Unit and adds [email protected] as delegate.

Download & Source for Invoke-SEFAUtil

I’ve published the Script to the PowerShell Gallery, you can install it using the following command:

Install-Script -Name Invoke-SEFAUtil -Path <Path>

And you can find the source in the following GitHub Repository: tomtorggler/PowerShell