Update-VcenterRootPasswordExpiration¶
Synopsis¶
Updates the root user password expiration policy for a vCenter instance.
Syntax¶
expire¶
Update-VcenterRootPasswordExpiration -server <String> -user <String> -pass <String> -domain <String> [-email <String>] [-maxDays <String>] [-warnDays <String>] [<CommonParameters>]
neverexpire¶
Update-VcenterRootPasswordExpiration -server <String> -user <String> -pass <String> -domain <String>
 [-neverexpire] [<CommonParameters>]
Description¶
The Update-VcenterRootPasswordExpiration cmdlet configures the root user password expiration policy of a vCenter instance.
The cmdlet connects to SDDC Manager using the -server, -user, and -pass values:
- Validates that network connectivity and authentication is possible to SDDC Manager
- Validates that network connectivity and authentication is possible to vCenter
- Configures the rootuser password expiration policy
Examples¶
Example 1¶
Update-VcenterRootPasswordExpiration -server [sddc_manager_fqdn] -user [admin_username] -pass [admin_password] -domain [workload_domain_name] -email [email_address] -maxDays 999 -warnDays 14
This example configures the password expiration settings for a vCenter instance root account to expire after 999 days with email for warning.
Example 2¶
Update-VcenterRootPasswordExpiration -server [sddc_manager_fqdn] -user [admin_username] -pass [admin_password] -domain [workload_domain_name] -neverexpire
This example configures the password expiration settings for a vCenter instance root account to never expire.
Parameters¶
-server¶
The fully qualified domain name of the SDDC Manager instance.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-user¶
The username to authenticate to the SDDC Manager instance.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-pass¶
The password to authenticate to the SDDC Manager instance.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-domain¶
The name of the workload domain to update the policy for.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-email¶
The email address to send password expiration warnings to.
Type: String
Parameter Sets: expire
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-maxDays¶
The maximum number of days before the root user password expires.
Type: String
Parameter Sets: expire
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-warnDays¶
The number of days before the root user password expires in which to send a warning email.
Type: String
Parameter Sets: expire
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-neverexpire¶
Switch to configure the root user password to never expire.
Type: SwitchParameter
Parameter Sets: neverexpire
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Common Parameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.