# Set-RASMFA.md

## NAME

Set-RASMFA

## SYNOPSIS

Modifies a multi-factor authentication.

## SYNTAX

**Set-RASMFA** \[[Id](#id-string)] *(uint)* -[Deepnet](#deepnet-string) *(SwitchParameter)* \[[ActivateEmail](#activateemail-string) *(bool)*] \[[ActivateSMS](#activatesms-string) *(bool)*] \[[App](#app-string) *(string)*] \[[AppID](#appid-string) *(string)*] \[-[AuthMode](#AuthMode) {MandatoryForAllUsers | CreateTokenForDomainAuthenticatedUsers | UsersWithDeepnetAcc}] \[[DeepnetAgent](#deepnetagent-string) *(string)*] \[[DeepnetPort](#deepnetport-string) *(uint)*] \[[DeepnetServer](#deepnetserver-string) *(string)*] \[[DefaultDomain](#defaultdomain-string) *(string)*] \[[Description](#description-string) *(string)*] \[[Enabled](#enabled-string) *(bool)*] \[[InheritDefaultCriteriaSettings](#inheritdefaultcriteriasettings-string) *(bool)*] \[[NewName](#newname-string) *(string)*] \[[SSL](#ssl-string) *(bool)*] \[-[TokenType](#TokenType) {MobileID | QuickID}] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASMFA** \[[Id](#id-string)] *(uint)* -[EmailOTP](#emailotp-string) *(SwitchParameter)* \[[ADCustomAttribute](#adcustomattribute-string) *(string)*] \[[AllowEnrollExternalEmail](#allowenrollexternalemail-string) *(bool)*] \[[DefaultEmailContent](#defaultemailcontent-string) *(SwitchParameter)*] \[[DefaultEmailSubject](#defaultemailsubject-string) *(SwitchParameter)*] \[[DefaultUserMessagePrompt](#defaultusermessageprompt-string) *(SwitchParameter)*] \[[Description](#description-string) *(string)*] \[[DisplayName](#displayname-string) *(string)*] \[[EmailContent](#emailcontent-string) *(string)*] \[[EmailSubject](#emailsubject-string) *(string)*] \[[Enabled](#enabled-string) *(bool)*] \[-[ExternalEmailStorage](#ExternalEmailStorage) {RASDatabase | ADMail | ADCustom}] \[[InheritDefaultCriteriaSettings](#inheritdefaultcriteriasettings-string) *(bool)*] \[[NewName](#newname-string) *(string)*] \[[OTPLength](#otplength-string) *(uint)*] \[[OTPLifespanSec](#otplifespansec-string) *(uint)*] \[-[ShowInformationForUnenrolledUsers](#ShowInformationForUnenrolledUsers) {Always | IfEnrollmentIsAllowed | Never}] \[[UntilDateTime](#untildatetime-string) *(DateTime)*] \[-[UserEnrollment](#UserEnrollment) {Allow | AllowUntil | DoNotAllow}] \[[UserMessagePrompt](#usermessageprompt-string) *(string)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASMFA** \[[Id](#id-string)] *(uint)* -[Radius](#radius-string) *(SwitchParameter)* \[[BackupServer](#backupserver-string) *(string)*] \[[DefaultUserMessagePrompt](#defaultusermessageprompt-string) *(SwitchParameter)*] \[[Description](#description-string) *(string)*] \[[DisplayName](#displayname-string) *(string)*] \[[Enabled](#enabled-string) *(bool)*] \[[ForwardFirstPwdToAD](#forwardfirstpwdtoad-string) *(bool)*] \[-[HAMode](#HAMode) {Parallel | Serial}] \[-[IgnoreErrors](#IgnoreErrors) *(string\[])*] \[[InheritDefaultCriteriaSettings](#inheritdefaultcriteriasettings-string) *(bool)*] \[[NewName](#newname-string) *(string)*] \[-[PasswordEncoding](#PasswordEncoding) {PAP | CHAP}] \[[RadiusPort](#radiusport-string) *(uint)*] \[[RadiusServer](#radiusserver-string) *(string)*] \[[Retries](#retries-string) *(uint)*] \[[SecretKey](#secretkey-string) *(SecureString)*] \[[Timeout](#timeout-string) *(uint)*] \[[UserMessagePrompt](#usermessageprompt-string) *(string)*] \[[UsernameOnly](#usernameonly-string) *(bool)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASMFA** \[[Id](#id-string)] *(uint)* -[Safenet](#safenet-string) *(SwitchParameter)* \[[Description](#description-string) *(string)*] \[[Enabled](#enabled-string) *(bool)*] \[[InheritDefaultCriteriaSettings](#inheritdefaultcriteriasettings-string) *(bool)*] \[[NewName](#newname-string) *(string)*] \[[OTPServiceURL](#otpserviceurl-string) *(string)*] \[-[SafenetAuthMode](#SafenetAuthMode) {MandatoryForAllUsers | CreateTokenForDomainAuthenticatedUsers | UsersWithSafeNetAcc}] \[[TMSWebApiURL](#tmswebapiurl-string) *(string)*] \[[UserRepository](#userrepository-string) *(string)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASMFA** \[[Id](#id-string)] *(uint)* -[TOTP](#totp-string) *(SwitchParameter)* \[[DefaultUserMessagePrompt](#defaultusermessageprompt-string) *(SwitchParameter)*] \[[Description](#description-string) *(string)*] \[[DisplayName](#displayname-string) *(string)*] \[[Enabled](#enabled-string) *(bool)*] \[[InheritDefaultCriteriaSettings](#inheritdefaultcriteriasettings-string) *(bool)*] \[[NewName](#newname-string) *(string)*] \[-[ShowInformationForUnenrolledUsers](#ShowInformationForUnenrolledUsers) {Always | IfEnrollmentIsAllowed | Never}] \[[Tolerance](#tolerance-string) *(uint)*] \[[UntilDateTime](#untildatetime-string) *(DateTime)*] \[-[UserEnrollment](#UserEnrollment) {Allow | AllowUntil | DoNotAllow}] \[[UserMessagePrompt](#usermessageprompt-string) *(string)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASMFA** \[-[InputObject](#inputobject)] *(*[*MFA*](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/mfa)*)* \[[ActivateEmail](#activateemail-string) *(bool)*] \[[ActivateSMS](#activatesms-string) *(bool)*] \[[App](#app-string) *(string)*] \[[AppID](#appid-string) *(string)*] \[-[AuthMode](#AuthMode) {MandatoryForAllUsers | CreateTokenForDomainAuthenticatedUsers | UsersWithDeepnetAcc}] \[[Deepnet](#deepnet-string) *(SwitchParameter)*] \[[DeepnetAgent](#deepnetagent-string) *(string)*] \[[DeepnetPort](#deepnetport-string) *(uint)*] \[[DeepnetServer](#deepnetserver-string) *(string)*] \[[DefaultDomain](#defaultdomain-string) *(string)*] \[[Description](#description-string) *(string)*] \[[Enabled](#enabled-string) *(bool)*] \[[InheritDefaultCriteriaSettings](#inheritdefaultcriteriasettings-string) *(bool)*] \[[NewName](#newname-string) *(string)*] \[[SSL](#ssl-string) *(bool)*] \[-[TokenType](#TokenType) {MobileID | QuickID}] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASMFA** \[-[InputObject](#inputobject)] *(*[*MFA*](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/mfa)*)* \[[ADCustomAttribute](#adcustomattribute-string) *(string)*] \[[AllowEnrollExternalEmail](#allowenrollexternalemail-string) *(bool)*] \[[DefaultEmailContent](#defaultemailcontent-string) *(SwitchParameter)*] \[[DefaultEmailSubject](#defaultemailsubject-string) *(SwitchParameter)*] \[[DefaultUserMessagePrompt](#defaultusermessageprompt-string) *(SwitchParameter)*] \[[Description](#description-string) *(string)*] \[[DisplayName](#displayname-string) *(string)*] \[[EmailContent](#emailcontent-string) *(string)*] \[[EmailOTP](#emailotp-string) *(SwitchParameter)*] \[[EmailSubject](#emailsubject-string) *(string)*] \[[Enabled](#enabled-string) *(bool)*] \[-[ExternalEmailStorage](#ExternalEmailStorage) {RASDatabase | ADMail | ADCustom}] \[[InheritDefaultCriteriaSettings](#inheritdefaultcriteriasettings-string) *(bool)*] \[[NewName](#newname-string) *(string)*] \[[OTPLength](#otplength-string) *(uint)*] \[[OTPLifespanSec](#otplifespansec-string) *(uint)*] \[-[ShowInformationForUnenrolledUsers](#ShowInformationForUnenrolledUsers) {Always | IfEnrollmentIsAllowed | Never}] \[[UntilDateTime](#untildatetime-string) *(DateTime)*] \[-[UserEnrollment](#UserEnrollment) {Allow | AllowUntil | DoNotAllow}] \[[UserMessagePrompt](#usermessageprompt-string) *(string)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASMFA** \[-[InputObject](#inputobject)] *(*[*MFA*](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/mfa)*)* \[[BackupServer](#backupserver-string) *(string)*] \[[DefaultUserMessagePrompt](#defaultusermessageprompt-string) *(SwitchParameter)*] \[[Description](#description-string) *(string)*] \[[DisplayName](#displayname-string) *(string)*] \[[Enabled](#enabled-string) *(bool)*] \[-[HAMode](#HAMode) {Parallel | Serial}] \[-[IgnoreErrors](#IgnoreErrors) *(string\[])*] \[[InheritDefaultCriteriaSettings](#inheritdefaultcriteriasettings-string) *(bool)*] \[[NewName](#newname-string) *(string)*] \[-[PasswordEncoding](#PasswordEncoding) {PAP | CHAP}] \[[Radius](#radius-string) *(SwitchParameter)*] \[[RadiusPort](#radiusport-string) *(uint)*] \[[RadiusServer](#radiusserver-string) *(string)*] \[[Retries](#retries-string) *(uint)*] \[[SecretKey](#secretkey-string) *(SecureString)*] \[[Timeout](#timeout-string) *(uint)*] \[[UserMessagePrompt](#usermessageprompt-string) *(string)*] \[[UsernameOnly](#usernameonly-string) *(bool)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASMFA** \[-[InputObject](#inputobject)] *(*[*MFA*](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/mfa)*)* \[[Description](#description-string) *(string)*] \[[Enabled](#enabled-string) *(bool)*] \[[InheritDefaultCriteriaSettings](#inheritdefaultcriteriasettings-string) *(bool)*] \[[NewName](#newname-string) *(string)*] \[[OTPServiceURL](#otpserviceurl-string) *(string)*] \[[Safenet](#safenet-string) *(SwitchParameter)*] \[-[SafenetAuthMode](#SafenetAuthMode) {MandatoryForAllUsers | CreateTokenForDomainAuthenticatedUsers | UsersWithSafeNetAcc}] \[[TMSWebApiURL](#tmswebapiurl-string) *(string)*] \[[UserRepository](#userrepository-string) *(string)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASMFA** \[-[InputObject](#inputobject)] *(*[*MFA*](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/mfa)*)* \[[DefaultUserMessagePrompt](#defaultusermessageprompt-string) *(SwitchParameter)*] \[[Description](#description-string) *(string)*] \[[DisplayName](#displayname-string) *(string)*] \[[Enabled](#enabled-string) *(bool)*] \[[InheritDefaultCriteriaSettings](#inheritdefaultcriteriasettings-string) *(bool)*] \[[NewName](#newname-string) *(string)*] \[-[ShowInformationForUnenrolledUsers](#ShowInformationForUnenrolledUsers) {Always | IfEnrollmentIsAllowed | Never}] \[[Tolerance](#tolerance-string) *(uint)*] \[[TOTP](#totp-string) *(SwitchParameter)*] \[[UntilDateTime](#untildatetime-string) *(DateTime)*] \[-[UserEnrollment](#UserEnrollment) {Allow | AllowUntil | DoNotAllow}] \[[UserMessagePrompt](#usermessageprompt-string) *(string)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASMFA** \[[Name](#name-string)] *(string)* \[\[-[SiteId](#siteid-string)] *(uint)*] -[Deepnet](#deepnet-string) *(SwitchParameter)* \[[ActivateEmail](#activateemail-string) *(bool)*] \[[ActivateSMS](#activatesms-string) *(bool)*] \[[App](#app-string) *(string)*] \[[AppID](#appid-string) *(string)*] \[-[AuthMode](#AuthMode) {MandatoryForAllUsers | CreateTokenForDomainAuthenticatedUsers | UsersWithDeepnetAcc}] \[[DeepnetAgent](#deepnetagent-string) *(string)*] \[[DeepnetPort](#deepnetport-string) *(uint)*] \[[DeepnetServer](#deepnetserver-string) *(string)*] \[[DefaultDomain](#defaultdomain-string) *(string)*] \[[Description](#description-string) *(string)*] \[[Enabled](#enabled-string) *(bool)*] \[[InheritDefaultCriteriaSettings](#inheritdefaultcriteriasettings-string) *(bool)*] \[[NewName](#newname-string) *(string)*] \[[SSL](#ssl-string) *(bool)*] \[-[TokenType](#TokenType) {MobileID | QuickID}] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASMFA** -[EmailOTP](#emailotp-string) *(SwitchParameter)* \[[ADCustomAttribute](#adcustomattribute-string) *(string)*] \[[AllowEnrollExternalEmail](#allowenrollexternalemail-string) *(bool)*] \[[DefaultEmailContent](#defaultemailcontent-string) *(SwitchParameter)*] \[[DefaultEmailSubject](#defaultemailsubject-string) *(SwitchParameter)*] \[[DefaultUserMessagePrompt](#defaultusermessageprompt-string) *(SwitchParameter)*] \[[Description](#description-string) *(string)*] \[[DisplayName](#displayname-string) *(string)*] \[[EmailContent](#emailcontent-string) *(string)*] \[[EmailSubject](#emailsubject-string) *(string)*] \[[Enabled](#enabled-string) *(bool)*] \[-[ExternalEmailStorage](#ExternalEmailStorage) {RASDatabase | ADMail | ADCustom}] \[[InheritDefaultCriteriaSettings](#inheritdefaultcriteriasettings-string) *(bool)*] \[[NewName](#newname-string) *(string)*] \[[OTPLength](#otplength-string) *(uint)*] \[[OTPLifespanSec](#otplifespansec-string) *(uint)*] \[-[ShowInformationForUnenrolledUsers](#ShowInformationForUnenrolledUsers) {Always | IfEnrollmentIsAllowed | Never}] \[[UntilDateTime](#untildatetime-string) *(DateTime)*] \[-[UserEnrollment](#UserEnrollment) {Allow | AllowUntil | DoNotAllow}] \[[UserMessagePrompt](#usermessageprompt-string) *(string)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASMFA** \[[Name](#name-string)] *(string)* \[\[-[SiteId](#siteid-string)] *(uint)*] -[Radius](#radius-string) *(SwitchParameter)* \[[BackupServer](#backupserver-string) *(string)*] \[[DefaultUserMessagePrompt](#defaultusermessageprompt-string) *(SwitchParameter)*] \[[Description](#description-string) *(string)*] \[[DisplayName](#displayname-string) *(string)*] \[[Enabled](#enabled-string) *(bool)*] \[[ForwardFirstPwdToAD](#forwardfirstpwdtoad-string) *(bool)*] \[-[HAMode](#HAMode) {Parallel | Serial}] \[-[IgnoreErrors](#IgnoreErrors) *(string\[])*] \[[InheritDefaultCriteriaSettings](#inheritdefaultcriteriasettings-string) *(bool)*] \[[NewName](#newname-string) *(string)*] \[-[PasswordEncoding](#PasswordEncoding) {PAP | CHAP}] \[[RadiusPort](#radiusport-string) *(uint)*] \[[RadiusServer](#radiusserver-string) *(string)*] \[[Retries](#retries-string) *(uint)*] \[[SecretKey](#secretkey-string) *(SecureString)*] \[[Timeout](#timeout-string) *(uint)*] \[[UserMessagePrompt](#usermessageprompt-string) *(string)*] \[[UsernameOnly](#usernameonly-string) *(bool)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASMFA** \[[Name](#name-string)] *(string)* \[\[-[SiteId](#siteid-string)] *(uint)*] -[Safenet](#safenet-string) *(SwitchParameter)* \[[Description](#description-string) *(string)*] \[[Enabled](#enabled-string) *(bool)*] \[[InheritDefaultCriteriaSettings](#inheritdefaultcriteriasettings-string) *(bool)*] \[[NewName](#newname-string) *(string)*] \[[OTPServiceURL](#otpserviceurl-string) *(string)*] \[-[SafenetAuthMode](#SafenetAuthMode) {MandatoryForAllUsers | CreateTokenForDomainAuthenticatedUsers | UsersWithSafeNetAcc}] \[[TMSWebApiURL](#tmswebapiurl-string) *(string)*] \[[UserRepository](#userrepository-string) *(string)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASMFA** \[[Name](#name-string)] *(string)* \[\[-[SiteId](#siteid-string)] *(uint)*] -[TOTP](#totp-string) *(SwitchParameter)* \[[DefaultUserMessagePrompt](#defaultusermessageprompt-string) *(SwitchParameter)*] \[[Description](#description-string) *(string)*] \[[DisplayName](#displayname-string) *(string)*] \[[Enabled](#enabled-string) *(bool)*] \[[InheritDefaultCriteriaSettings](#inheritdefaultcriteriasettings-string) *(bool)*] \[[NewName](#newname-string) *(string)*] \[-[ShowInformationForUnenrolledUsers](#ShowInformationForUnenrolledUsers) {Always | IfEnrollmentIsAllowed | Never}] \[[Tolerance](#tolerance-string) *(uint)*] \[[UntilDateTime](#untildatetime-string) *(DateTime)*] \[-[UserEnrollment](#UserEnrollment) {Allow | AllowUntil | DoNotAllow}] \[[UserMessagePrompt](#usermessageprompt-string) *(string)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

## DESCRIPTION

Modifies properties of a multi-factor authentication.

## PARAMETERS

## Name (string)

The name of the target multi-factor authentication .

This must be the actual multi-factor authentication name used in the RAS farm.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SiteId (uint)

Site ID in which to modify the specified multi-factor authentication .

If the parameter is omitted, the site ID of the Licensing Server will be used.

```
        Required?                    false

        Position?                    1

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Id (uint)

The ID of the multi-factor authentication to modify. To obtain the ID, use the Get-RASMFA cmdlet.

```
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InputObject ([MFA](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/mfa))

The multi factor authentication to modify.

To obtain an object of type MFA, use the Get-RASMFA cmdlet.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       true (ByValue)

        Accept wildcard characters?  false
```

## NewName (string)

The new name of the target multi-factor authentication .

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Description (string)

A user-defined multi-factor authentication description.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Enabled (bool)

Enable or disable the specified multi-factor authentication in a site.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InheritDefaultCriteriaSettings (bool)

If true default criteria settings will be inherited.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Deepnet (SwitchParameter)

Deepnet SwitchParameter.

```
        Required?                    true

        Position?                    named

        Default value                False

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ActivateEmail (bool)

Whether the activation email is enabled or disabled.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ActivateSMS (bool)

Whether the activation SMS is enabled or disabled.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## App (string)

A value that represents the application name.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AppID (string)

A value that represents the application ID.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AuthMode ([DeepnetAuthMode](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/deepnetauthmode))

Authentication mode which defines the type of user for which a token will be created.

Possible values: MandatoryForAllUsers, CreateTokenForDomainAuthenticatedUsers, UsersWithDeepnetAcc

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DeepnetAgent (string)

A value that represents the name of Deepnet Agent.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DefaultDomain (string)

A value that represents the Default Domain.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SSL (bool)

Whether SSL is allowed or not.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DeepnetServer (string)

The server of the second level authentication provider.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DeepnetPort (uint)

The port number of the second level authentication provider.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## TokenType ([TokenType](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/tokentype))

Token Type (Flash ID, Mobile ID, Grid ID, or Quick ID).

Possible values: MobileID, QuickID

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Radius (SwitchParameter)

Radius SwitchParameter

```
        Required?                    true

        Position?                    named

        Default value                False

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## RadiusServer (string)

The server of the second level authentication provider.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## RadiusPort (uint)

The port number of the second level authentication provider.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PasswordEncoding

([PasswordEncoding](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/passwordencoding)) The type of password encoding to be used.

Possible values: PAP, CHAP

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Retries (uint)

Number of retries.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Timeout (uint)

Connection timeout (in seconds).

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DisplayName (string)

RADIUS type name.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## UsernameOnly (bool)

Specifies if forwarding of only the Username to RADIUS Server is enabled or not.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ForwardFirstPwdToAD (bool)

Specifies if forwarding of first password to Windows authentication provider is enabled or not.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## BackupServer (string)

The backup server of the second level authentication provider.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## HAMode ([HAMode](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/hamode))

The type of high availability mode to be used.

Possible values: Parallel, Serial

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SecretKey (SecureString)

RADIUS setting. The secret key.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## IgnoreErrors (string\[])

Specifies the list of Ignored Errors.

This is a DuoRadius only setting.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Safenet (SwitchParameter)

Safenet SwitchParameter

```
        Required?                    true

        Position?                    named

        Default value                False

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SafenetAuthMode

([SafeNetAuthMode](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/safenetauthmode)) SafeNet Authentication Mode

Possible values: MandatoryForAllUsers, CreateTokenForDomainAuthenticatedUsers, UsersWithSafeNetAcc

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## OTPServiceURL (string)

OTP Service URL

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## UserRepository (string)

A value representing User Store

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## TMSWebApiURL (string)

The URL of the web service

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## TOTP (SwitchParameter)

TOTP SwitchParameter

```
        Required?                    true

        Position?                    named

        Default value                False

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## UserEnrollment ([UserEnrollment](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/userenrollment))

Use of Enrollment

Possible values: Allow, AllowUntil, DoNotAllow

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ShowInformationForUnenrolledUsers

([ShowInformationForUnenrolledUsers](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/showinformationforunenrolledusers)) Show information for unenrolled users

Possible values: Always, IfEnrollmentIsAllowed, Never

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## UntilDateTime (DateTime)

Allow User Enrollment until date/time

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Tolerance (uint)

TOTP tolerance in seconds. Accepted values are 0 (None), 30, 60, 90 and 120

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EmailOTP (SwitchParameter)

Email OTP SwitchParameter

```
        Required?                    true

        Position?                    named

        Default value                False

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## OTPLifespanSec (uint)

The lifespan of the OTP (seconds)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ExternalEmailStorage

([ExternalEmailStorage](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/externalemailstorage)) The storage where the external email is stored

Possible values: RASDatabase, ADMail, ADCustom

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DefaultEmailContent (SwitchParameter)

If this parameter is included, the email body content will be replaced with the default body content.

```
        Required?                    false

        Position?                    named

        Default value                False

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EmailContent (string)

The content of the email. Possible variables: %OTP%, %DURATION%

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DefaultEmailSubject (SwitchParameter)

If this parameter is included, the email subject will be replaced with the default subject.

```
        Required?                    false

        Position?                    named

        Default value                False

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EmailSubject (string)

The subject of the email. Possible variables: %OTP%

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DefaultUserMessagePrompt (SwitchParameter)

If this parameter is included, the message prompt will be replaced with the default message prompt.

```
        Required?                    false

        Position?                    named

        Default value                False

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## UserMessagePrompt (string)

User message prompt

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ADCustomAttribute (string)

AD Custom Attribute

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AllowEnrollExternalEmail (bool)

Allow enrollment of external email

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## OTPLength (uint)

The length of the OTP generated

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

(CommonParameters)

```
        This cmdlet supports the common parameters: Verbose, Debug,

        ErrorAction, ErrorVariable, WarningAction, WarningVariable,

        OutBuffer, PipelineVariable, and OutVariable. For more information, see 

        about_CommonParameters documentation. 
```

## INPUTS

[MFA](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/mfa)

## OUTPUTS

-none-

## EXAMPLES

\*\*---------- EXAMPLE 1 ----------

Set-RASMFA "MFA" -Deepnet -Enabled $False

Disables the multi-factor authentication specified by name and by type.\
\*\*---------- EXAMPLE 2 ----------

Set-RASMFA -Id 10 -Enabled $False

Disables the multi-factor authentication specified by ID.

## RELATED LINKS

* [New-RASMFA](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/new-rasmfa)
* [Get-RASMFA](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/get-rasmfa)
* [Remove-RASMFA](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/remove-rasmfa)
* [Set-RASCriteria](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/set-rascriteria)
