Skip to content

Latest commit

 

History

History
125 lines (95 loc) · 2.48 KB

New-DuoPhoneActivationCode.md

File metadata and controls

125 lines (95 loc) · 2.48 KB
external help file Module Name online version schema
DuoSecurity-help.xml
DuoSecurity
2.0.0

New-DuoPhoneActivationCode

SYNOPSIS

Create Activation Code

SYNTAX

New-DuoPhoneActivationCode [-PhoneId] <String> [[-ValidSecs] <Int32>] [[-Install] <Int32>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

Generate a Duo Mobile activation code. This method will fail if the phone's type or platform are Unknown. Requires "Grant write resource" API permission.

EXAMPLES

EXAMPLE 1

New-DuoPhoneActivationCode -PhoneId SOMEPHONEID

PARAMETERS

-PhoneId

Id of phone

Type: String
Parameter Sets: (All)
Aliases: phone_id

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-ValidSecs

The number of seconds this activation code remains valid. Default: 86400 (one day). Expiration not supported for legacy phone platforms that support passcode generation only (not Duo Push).

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: 86400
Accept pipeline input: False
Accept wildcard characters: False

-Install

Specify 1 to also return an installation URL for Duo Mobile; 0 to not return a URL. Default: 0.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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.

INPUTS

OUTPUTS

NOTES

RELATED LINKS

https://duo.com/docs/adminapi#create-activation-code