Site icon TOSS

Invoke-AdfsFarmBehaviorLevelRaise

powershell

Invoke-AdfsFarmBehaviorLevelRaise is accessible with the help of adfs module. To install adfs on your system please refer to this adfs.

Synopsis

Raises the behavior level of a farm.

Description

The Invoke-AdfsFarmBehaviorLevelRaise cmdlet raises the behavior level of an Active Directory Federation Services (AD FS) farm to enable the new features that are available in later versions of the Windows operating system.

To raise the behavior level of a farm that uses SQL Server as the policy database, specify the Credential parameter.

Parameters

-Credential
Specifies credentials necessary to run this cmdlet for an AD FS farm that uses SQL Server as the policy database. The credentials provided must be an administrator on each AD FS server. To obtain a PSCredential object, use the Get-Credential cmdlet.

    Required?                    false
    Position?                    named
    Default value                none
    Accept pipeline input?       false
    Accept wildcard characters?  false

-Force <SwitchParameter>
    Forces the command to run without asking for user confirmation.

    Required?                    false
    Position?                    named
    Default value                none
    Accept pipeline input?       false
    Accept wildcard characters?  false

-GroupServiceAccountIdentifier <String>
    Specifies the ID of a group Managed Service Account.

    Required?                    false
    Position?                    named
    Default value                none
    Accept pipeline input?       false
    Accept wildcard characters?  false

-Member <String[]>
    Specifies an array of members.

    Required?                    false
    Position?                    named
    Default value                none
    Accept pipeline input?       false
    Accept wildcard characters?  false

-ServiceAccountCredential <PSCredential>
    Specifies credentials for a service account.

    Required?                    false
    Position?                    named
    Default value                none
    Accept pipeline input?       false
    Accept wildcard characters?  false

-Confirm <SwitchParameter>
    Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet.

    Required?                    false
    Position?                    named
    Default value                false
    Accept pipeline input?       false
    Accept wildcard characters?  false

-WhatIf <SwitchParameter>
    Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run.

    Required?                    false
    Position?                    named
    Default value                false
    Accept pipeline input?       false
    Accept wildcard characters?  false

Syntax

Invoke-AdfsFarmBehaviorLevelRaise [-Member <String[]>] [-Credential <PSCredential>] [-ServiceAccountCredential <PSCredential>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]

Invoke-AdfsFarmBehaviorLevelRaise [-Member <String[]>] [-Credential <PSCredential>] [-GroupServiceAccountIdentifier <String>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]

—————-Example 1—————-
Raise the farm behavior level
PS C:>Invoke-AdfsFarmBehaviorLevelRaise
This command raises the farm behavior level from Windows Server 2012 R2 to the Windows Server 2016 level. The command applies to the latest version available on your forest. You not have to specify the level.

—————-Example 2—————-
Raise the farm behavior level for a farm that uses SQL Server
PS C:>$Credentials = Get-Credential
PS C:> Invoke-AdfsFarmBehaviorLevelRaise -Credential $Credentials
The first command prompts you for user name and password by using the Get-Credential cmdlet. The command stores the credentials in the $Credentials variable.
The second command raises the farm behavior level from Windows Server 2012 R2 to the Windows Server 2016 level. The cmdlet specifies the necessary credentials stored in $Credentials.

You can check the Version, CommandType and Source of this cmdlet by giving below command.

Get-Command Invoke-AdfsFarmBehaviorLevelRaise

You can also read about

To know more PowerShell cmdlets(Commands) on Active Directory Federation Services(ADFS) click here

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Exit mobile version