Reset-R1DirectoryEntryPassword

SYNOPSIS

Sets the password of a directory entry.

SYNTAX

Reset-R1DirectoryEntryPassword [-dn] <String> [-password] <SecureString> [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

Sets the password of an entry to the value supplied. This is an administrative reset: the current password is not required.

The request body is the password itself as a JSON string, sent as UTF8 bytes so that it cannot be captured by Windows PowerShell parameter binding or module logging.

EXAMPLES

Example 1

Reset-R1DirectoryEntryPassword -dn 'uid=one,o=example' -password $Secret

Sets the password of an entry, after prompting for confirmation.

PARAMETERS

-dn

The DN of the entry.

Type: String
Parameter Sets: (All)
Aliases:

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

-password

The password.

Type: SecureString
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
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

None

OUTPUTS

System.Void

NOTES

Test-R1DirectoryAuthentication

Get-R1DirectoryEntry