Send JCPasswordReset - TheJumpCloud/support GitHub Wiki

Send-JCPasswordReset

SYNOPSIS

Sends a JumpCloud activation/password reset email.

SYNTAX

ByID (Default)

Send-JCPasswordReset [[-UserID] <String>] [<CommonParameters>]

ByUsername

Send-JCPasswordReset [[-username] <String>] [<CommonParameters>]

DESCRIPTION

The Send-JCPasswordReset command sends a JumpCloud activation/password reset email to targeted users. This function mimics the functionality of the 'resend email' button in the JumpCloud admin console. Pending users will recieve an activation email. Active users will receive a password reset request.

EXAMPLES

Example 1

Send-JCPasswordReset -username jcuser.one

Sends an activation or reset email to JumpCloud user with username 'jcuser.one'

Example 2

Get-JCUserGroupMember -GroupName NewUsers | Send-JCPasswordReset

Sends an activation or reset email to all members of the JumpCloud user group 'NewUsers'.

Example 3

Get-JCUser -activated $false | Send-JCPasswordReset

Sends an activation email to all JumpCloud users who are in an inactive state. Users that are inactive have not yet set their JumpCloud user passwords.

Example 4

Get-JCUser -activated $false -filterDateProperty created -dateFilter after -date (Get-Date).AddDays(-7) -returnProperties username | Send-JCPasswordReset

Sends an activation email to all JumpCloud users who are in an inactive state and were created in the last seven days. Users that are inactive have not yet set their JumpCloud user passwords.

PARAMETERS

-UserID

The _id of the User which you want to send the email. To find a JumpCloud UserID run the command: PS C:\> Get-JCUser | Select username, _id

The UserID will be the 24 character string populated for the _id field.

Type: System.String
Parameter Sets: ByID
Aliases: _id, id

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

-username

The Username of the JumpCloud user you wish to send the email.

Type: System.String
Parameter Sets: ByUsername
Aliases:

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

System.String

OUTPUTS

System.Object

NOTES

RELATED LINKS

⚠️ **GitHub.com Fallback** ⚠️