> For the complete documentation index, see [llms.txt](https://docs.parallels.com/landing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/set-rasmfa.md).

# Set-RASMFA

## SYNOPSIS

Modifies a multi-factor authentication.

## SYNTAX

```powershell
Set-RASMFA [-Id] <uint> -Deepnet <SwitchParameter> [-ActivateEmail <bool>] [-ActivateSMS <bool>]
 [-App <string>] [-AppID <string>]
 [-AuthMode {MandatoryForAllUsers | CreateTokenForDomainAuthenticatedUsers | UsersWithDeepnetAcc}]
 [-DeepnetAgent <string>] [-DeepnetPort <uint>] [-DeepnetServer <string>] [-DefaultDomain <string>]
 [-Description <string>] [-Enabled <bool>] [-InheritDefaultCriteriaSettings <bool>]
 [-NewName <string>] [-SSL <bool>] [-TokenType {MobileID | QuickID}] [<CommonParameters>]
```

```powershell
Set-RASMFA [-Id] <uint> -EmailOTP <SwitchParameter> [-ADCustomAttribute <string>]
 [-AllowEnrollExternalEmail <bool>] [-DefaultEmailContent <SwitchParameter>]
 [-DefaultEmailSubject <SwitchParameter>] [-DefaultUserMessagePrompt <SwitchParameter>]
 [-Description <string>] [-DisplayName <string>] [-EmailContent <string>] [-EmailSubject <string>]
 [-Enabled <bool>] [-ExternalEmailStorage {RASDatabase | ADMail | ADCustom}]
 [-InheritDefaultCriteriaSettings <bool>] [-NewName <string>] [-OTPLength <uint>]
 [-OTPLifespanSec <uint>]
 [-ShowInformationForUnenrolledUsers {Always | IfEnrollmentIsAllowed | Never}]
 [-UntilDateTime <DateTime>] [-UserEnrollment {Allow | AllowUntil | DoNotAllow}]
 [-UserMessagePrompt <string>] [<CommonParameters>]
```

```powershell
Set-RASMFA [-Id] <uint> -Radius <SwitchParameter> [-AutoConditionsEnabled <bool>]
 [-BackupServer <string>] [-DefaultUserMessagePrompt <SwitchParameter>] [-Description <string>]
 [-DisplayName <string>] [-Enabled <bool>] [-EnforceMessageAuthenticator <bool>]
 [-ForwardFirstPwdToAD <bool>] [-HAMode {Parallel | Serial}] [-IgnoreErrors <string[]>]
 [-InheritDefaultCriteriaSettings <bool>] [-NewName <string>]
 [-PasswordEncoding {PAP | CHAP | PAP_UTF8 | CHAP_UTF8}] [-RadiusPort <uint>]
 [-RadiusServer <string>] [-Retries <uint>] [-SecretKey <SecureString>] [-Timeout <uint>]
 [-UserMessagePrompt <string>] [-UsernameOnly <bool>] [<CommonParameters>]
```

```powershell
Set-RASMFA [-Id] <uint> -Safenet <SwitchParameter> [-Description <string>] [-Enabled <bool>]
 [-InheritDefaultCriteriaSettings <bool>] [-NewName <string>] [-OTPServiceURL <string>]
 [-SafenetAuthMode {MandatoryForAllUsers | CreateTokenForDomainAuthenticatedUsers | UsersWithSafeNetAcc}]
 [-TMSWebApiURL <string>] [-UserRepository <string>] [<CommonParameters>]
```

```powershell
Set-RASMFA [-Id] <uint> -TOTP <SwitchParameter>
 [-AuthenticatorAccountName {SiteFarmName | ThemeName | TOTPDisplayName}]
 [-DefaultUserMessagePrompt <SwitchParameter>] [-Description <string>] [-DisplayName <string>]
 [-Enabled <bool>] [-InheritDefaultCriteriaSettings <bool>] [-NewName <string>]
 [-ShowInformationForUnenrolledUsers {Always | IfEnrollmentIsAllowed | Never}] [-Tolerance <uint>]
 [-UntilDateTime <DateTime>] [-UserEnrollment {Allow | AllowUntil | DoNotAllow}]
 [-UserMessagePrompt <string>] [<CommonParameters>]
```

```powershell
Set-RASMFA [-InputObject] <MFA> [-ActivateEmail <bool>] [-ActivateSMS <bool>] [-App <string>]
 [-AppID <string>]
 [-AuthMode {MandatoryForAllUsers | CreateTokenForDomainAuthenticatedUsers | UsersWithDeepnetAcc}]
 [-Deepnet <SwitchParameter>] [-DeepnetAgent <string>] [-DeepnetPort <uint>]
 [-DeepnetServer <string>] [-DefaultDomain <string>] [-Description <string>] [-Enabled <bool>]
 [-InheritDefaultCriteriaSettings <bool>] [-NewName <string>] [-SSL <bool>]
 [-TokenType {MobileID | QuickID}] [<CommonParameters>]
```

```powershell
Set-RASMFA [-InputObject] <MFA> [-ADCustomAttribute <string>] [-AllowEnrollExternalEmail <bool>]
 [-DefaultEmailContent <SwitchParameter>] [-DefaultEmailSubject <SwitchParameter>]
 [-DefaultUserMessagePrompt <SwitchParameter>] [-Description <string>] [-DisplayName <string>]
 [-EmailContent <string>] [-EmailOTP <SwitchParameter>] [-EmailSubject <string>] [-Enabled <bool>]
 [-ExternalEmailStorage {RASDatabase | ADMail | ADCustom}] [-InheritDefaultCriteriaSettings <bool>]
 [-NewName <string>] [-OTPLength <uint>] [-OTPLifespanSec <uint>]
 [-ShowInformationForUnenrolledUsers {Always | IfEnrollmentIsAllowed | Never}]
 [-UntilDateTime <DateTime>] [-UserEnrollment {Allow | AllowUntil | DoNotAllow}]
 [-UserMessagePrompt <string>] [<CommonParameters>]
```

```powershell
Set-RASMFA [-InputObject] <MFA> [-AutoConditionsEnabled <bool>] [-BackupServer <string>]
 [-DefaultUserMessagePrompt <SwitchParameter>] [-Description <string>] [-DisplayName <string>]
 [-Enabled <bool>] [-EnforceMessageAuthenticator <bool>] [-ForwardFirstPwdToAD <bool>]
 [-HAMode {Parallel | Serial}] [-IgnoreErrors <string[]>] [-InheritDefaultCriteriaSettings <bool>]
 [-NewName <string>] [-PasswordEncoding {PAP | CHAP | PAP_UTF8 | CHAP_UTF8}]
 [-Radius <SwitchParameter>] [-RadiusPort <uint>] [-RadiusServer <string>] [-Retries <uint>]
 [-SecretKey <SecureString>] [-Timeout <uint>] [-UserMessagePrompt <string>] [-UsernameOnly <bool>]
 [<CommonParameters>]
```

```powershell
Set-RASMFA [-InputObject] <MFA> [-Description <string>] [-Enabled <bool>]
 [-InheritDefaultCriteriaSettings <bool>] [-NewName <string>] [-OTPServiceURL <string>]
 [-Safenet <SwitchParameter>]
 [-SafenetAuthMode {MandatoryForAllUsers | CreateTokenForDomainAuthenticatedUsers | UsersWithSafeNetAcc}]
 [-TMSWebApiURL <string>] [-UserRepository <string>] [<CommonParameters>]
```

```powershell
Set-RASMFA [-InputObject] <MFA>
 [-AuthenticatorAccountName {SiteFarmName | ThemeName | TOTPDisplayName}]
 [-DefaultUserMessagePrompt <SwitchParameter>] [-Description <string>] [-DisplayName <string>]
 [-Enabled <bool>] [-InheritDefaultCriteriaSettings <bool>] [-NewName <string>]
 [-ShowInformationForUnenrolledUsers {Always | IfEnrollmentIsAllowed | Never}] [-Tolerance <uint>]
 [-TOTP <SwitchParameter>] [-UntilDateTime <DateTime>]
 [-UserEnrollment {Allow | AllowUntil | DoNotAllow}] [-UserMessagePrompt <string>]
 [<CommonParameters>]
```

```powershell
Set-RASMFA [-Name] <string> [[-SiteId] <uint>] -Deepnet <SwitchParameter> [-ActivateEmail <bool>]
 [-ActivateSMS <bool>] [-App <string>] [-AppID <string>]
 [-AuthMode {MandatoryForAllUsers | CreateTokenForDomainAuthenticatedUsers | UsersWithDeepnetAcc}]
 [-DeepnetAgent <string>] [-DeepnetPort <uint>] [-DeepnetServer <string>] [-DefaultDomain <string>]
 [-Description <string>] [-Enabled <bool>] [-InheritDefaultCriteriaSettings <bool>]
 [-NewName <string>] [-SSL <bool>] [-TokenType {MobileID | QuickID}] [<CommonParameters>]
```

```powershell
Set-RASMFA -EmailOTP <SwitchParameter> [-ADCustomAttribute <string>]
 [-AllowEnrollExternalEmail <bool>] [-DefaultEmailContent <SwitchParameter>]
 [-DefaultEmailSubject <SwitchParameter>] [-DefaultUserMessagePrompt <SwitchParameter>]
 [-Description <string>] [-DisplayName <string>] [-EmailContent <string>] [-EmailSubject <string>]
 [-Enabled <bool>] [-ExternalEmailStorage {RASDatabase | ADMail | ADCustom}]
 [-InheritDefaultCriteriaSettings <bool>] [-NewName <string>] [-OTPLength <uint>]
 [-OTPLifespanSec <uint>]
 [-ShowInformationForUnenrolledUsers {Always | IfEnrollmentIsAllowed | Never}]
 [-UntilDateTime <DateTime>] [-UserEnrollment {Allow | AllowUntil | DoNotAllow}]
 [-UserMessagePrompt <string>] [<CommonParameters>]
```

```powershell
Set-RASMFA [-Name] <string> [[-SiteId] <uint>] -Radius <SwitchParameter>
 [-AutoConditionsEnabled <bool>] [-BackupServer <string>]
 [-DefaultUserMessagePrompt <SwitchParameter>] [-Description <string>] [-DisplayName <string>]
 [-Enabled <bool>] [-EnforceMessageAuthenticator <bool>] [-ForwardFirstPwdToAD <bool>]
 [-HAMode {Parallel | Serial}] [-IgnoreErrors <string[]>] [-InheritDefaultCriteriaSettings <bool>]
 [-NewName <string>] [-PasswordEncoding {PAP | CHAP | PAP_UTF8 | CHAP_UTF8}] [-RadiusPort <uint>]
 [-RadiusServer <string>] [-Retries <uint>] [-SecretKey <SecureString>] [-Timeout <uint>]
 [-UserMessagePrompt <string>] [-UsernameOnly <bool>] [<CommonParameters>]
```

```powershell
Set-RASMFA [-Name] <string> [[-SiteId] <uint>] -Safenet <SwitchParameter> [-Description <string>]
 [-Enabled <bool>] [-InheritDefaultCriteriaSettings <bool>] [-NewName <string>]
 [-OTPServiceURL <string>]
 [-SafenetAuthMode {MandatoryForAllUsers | CreateTokenForDomainAuthenticatedUsers | UsersWithSafeNetAcc}]
 [-TMSWebApiURL <string>] [-UserRepository <string>] [<CommonParameters>]
```

```powershell
Set-RASMFA [-Name] <string> [[-SiteId] <uint>] -TOTP <SwitchParameter>
 [-AuthenticatorAccountName {SiteFarmName | ThemeName | TOTPDisplayName}]
 [-DefaultUserMessagePrompt <SwitchParameter>] [-Description <string>] [-DisplayName <string>]
 [-Enabled <bool>] [-InheritDefaultCriteriaSettings <bool>] [-NewName <string>]
 [-ShowInformationForUnenrolledUsers {Always | IfEnrollmentIsAllowed | Never}] [-Tolerance <uint>]
 [-UntilDateTime <DateTime>] [-UserEnrollment {Allow | AllowUntil | DoNotAllow}]
 [-UserMessagePrompt <string>] [<CommonParameters>]
```

## DESCRIPTION

Modifies properties of a multi-factor authentication.

## EXAMPLES

### Example 1

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

Disables the multi-factor authentication specified by name and by type.

### Example 2

```powershell
Set-RASMFA -Id 10 -Enabled $False
```

Disables the multi-factor authentication specified by ID.

## PARAMETERS

### -Name

The name of the target multi-factor authentication .

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

```yaml
Type: string
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -SiteId

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.

```yaml
Type: uint
Required: False
Position: 1
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
```

### -Id

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

```yaml
Type: uint
Required: True
Position: 0
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
```

### -InputObject

The multi factor authentication to modify.

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

Type reference: [MFA](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/mfa.md)

```yaml
Type: MFA
Required: True
Position: 0
Default value: None
Accept pipeline input: true (ByValue)
Accept wildcard characters: False
```

### -NewName

The new name of the target multi-factor authentication .

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Description

A user-defined multi-factor authentication description.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Enabled

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

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -InheritDefaultCriteriaSettings

If true default criteria settings will be inherited.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Deepnet

Deepnet SwitchParameter.

```yaml
Type: SwitchParameter
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```

### -ActivateEmail

Whether the activation email is enabled or disabled.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ActivateSMS

Whether the activation SMS is enabled or disabled.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -App

A value that represents the application name.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -AppID

A value that represents the application ID.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -AuthMode

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

Possible values: MandatoryForAllUsers, CreateTokenForDomainAuthenticatedUsers, UsersWithDeepnetAcc

Type reference: [DeepnetAuthMode](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/deepnetauthmode.md)

```yaml
Type: DeepnetAuthMode
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -DeepnetAgent

A value that represents the name of Deepnet Agent.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -DefaultDomain

A value that represents the Default Domain.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -SSL

Whether SSL is allowed or not.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -DeepnetServer

The server of the second level authentication provider.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -DeepnetPort

The port number of the second level authentication provider.

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -TokenType

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

Possible values: MobileID, QuickID

Type reference: [TokenType](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/tokentype.md)

```yaml
Type: TokenType
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Radius

Radius SwitchParameter

```yaml
Type: SwitchParameter
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```

### -RadiusServer

The server of the second level authentication provider.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -RadiusPort

The port number of the second level authentication provider.

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -PasswordEncoding

The type of password encoding to be used.

Possible values: PAP, CHAP, PAP\_UTF8, CHAP\_UTF8

Type reference: [PasswordEncoding](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/passwordencoding.md)

```yaml
Type: PasswordEncoding
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Retries

Number of retries.

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Timeout

Connection timeout (in seconds).

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -DisplayName

RADIUS type name.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -UsernameOnly

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

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ForwardFirstPwdToAD

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

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -BackupServer

The backup server of the second level authentication provider.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -HAMode

The type of high availability mode to be used.

Possible values: Parallel, Serial

Type reference: [HAMode](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/hamode.md)

```yaml
Type: HAMode
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -SecretKey

RADIUS setting. The secret key.

```yaml
Type: SecureString
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -IgnoreErrors

Specifies the list of Ignored Errors.

This is a DuoRadius only setting.

```yaml
Type: string[]
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -AutoConditionsEnabled

Enable or disable the RADIUS Automation Conditions.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -EnforceMessageAuthenticator

Specifies whether to enforce message authenticator from radius server or not.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Safenet

Safenet SwitchParameter

```yaml
Type: SwitchParameter
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```

### -SafenetAuthMode

SafeNet Authentication Mode

Possible values: MandatoryForAllUsers, CreateTokenForDomainAuthenticatedUsers, UsersWithSafeNetAcc

Type reference: [SafeNetAuthMode](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/safenetauthmode.md)

```yaml
Type: SafeNetAuthMode
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -OTPServiceURL

OTP Service URL

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -UserRepository

A value representing User Store

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -TMSWebApiURL

The URL of the web service

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -TOTP

TOTP SwitchParameter

```yaml
Type: SwitchParameter
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```

### -UserEnrollment

Use of Enrollment

Possible values: Allow, AllowUntil, DoNotAllow

Type reference: [UserEnrollment](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/userenrollment.md)

```yaml
Type: UserEnrollment
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ShowInformationForUnenrolledUsers

Show information for unenrolled users

Possible values: Always, IfEnrollmentIsAllowed, Never

Type reference: [ShowInformationForUnenrolledUsers](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/showinformationforunenrolledusers.md)

```yaml
Type: ShowInformationForUnenrolledUsers
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -UntilDateTime

Allow User Enrollment until date/time

```yaml
Type: DateTime
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Tolerance

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

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -AuthenticatorAccountName

What to display as an account when registering the TOTP via QR Code

Possible values: SiteFarmName, ThemeName, TOTPDisplayName

Type reference: [AuthenticatorAccountName](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/authenticatoraccountname.md)

```yaml
Type: AuthenticatorAccountName
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -EmailOTP

Email OTP SwitchParameter

```yaml
Type: SwitchParameter
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```

### -OTPLifespanSec

The lifespan of the OTP (seconds)

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ExternalEmailStorage

The storage where the external email is stored

Possible values: RASDatabase, ADMail, ADCustom

Type reference: [ExternalEmailStorage](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/externalemailstorage.md)

```yaml
Type: ExternalEmailStorage
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -DefaultEmailContent

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

```yaml
Type: SwitchParameter
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```

### -EmailContent

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

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -DefaultEmailSubject

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

```yaml
Type: SwitchParameter
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```

### -EmailSubject

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

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -DefaultUserMessagePrompt

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

```yaml
Type: SwitchParameter
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```

### -UserMessagePrompt

User message prompt

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ADCustomAttribute

AD Custom Attribute

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -AllowEnrollExternalEmail

Allow enrollment of external email

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -OTPLength

The length of the OTP generated

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about\_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### [MFA](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/mfa.md)

## OUTPUTS

### None

## RELATED LINKS

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/set-rasmfa.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
