Update-VcenterPasswordExpiration¶
Synopsis¶
Updates the global password expiration policy for a vCenter Server instance.
Syntax¶
Update-VcenterPasswordExpiration [-server] <String> [-user] <String> [-pass] <String> [-domain] <String> [-maxDays] <Int32> [-minDays] <Int32> [-warnDays] <Int32> [<CommonParameters>]
Description¶
The Update-VcenterPasswordExpiration
cmdlet configures the global password expiration policy of a vCenter Server.
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 Server
- Configures the global password expiration policy
Examples¶
Example 1¶
Update-VcenterPasswordExpiration -server sfo-vcf01.sfo.rainpole.io -user admin@local -pass VMw@re1!VMw@re1! -domain sfo-m01 -maxDays 999 -minDays 0 -warnDays 14
This example configures the global password expiration policy for a vCenter Server instance.
Parameters¶
-server¶
The fully qualified domain name of the SDDC Manager instance.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
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: 2
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: 3
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: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-maxDays¶
The maximum number of days that a password is valid.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: True
Position: 5
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-minDays¶
The minimum number of days that a password is valid.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: True
Position: 6
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-warnDays¶
The number of days before a password expires that a warning is issued.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: True
Position: 7
Default value: 0
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.