# Update-LocalUserPasswordExpiration ## Synopsis Updates a local user password expiration period in days. ## Syntax ```powershell Update-LocalUserPasswordExpiration [-server] [-user] [-pass] [-domain] [-vmName] [-guestUser] [-guestPassword] [-localUser] [-minDays] [-maxDays] [-warnDays] [[-detail] ] [] ``` ## Description The `Update-LocalUserPasswordExpiration` cmdlet configures a local user password expiration policy. 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 local user password expiration policy ## Examples ### Example 1 ```powershell Update-LocalUserPasswordExpiration -server sfo-vcf01.sfo.rainpole.io -user administrator@vsphere.local -pass VMw@re1! -domain sfo-m01 -vmName sfo-wsa01 -guestUser root -guestPassword VMw@re1! -localUser "root","sshuser" -minDays 0 -maxDays 999 -warnDays 14 ``` This example updates the password expiration policy for the specified local users on the specified virtual machine. ## Parameters ### -server The fully qualified domain name of the SDDC Manager instance. ```yaml 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. ```yaml 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. ```yaml 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 which the product is deployed for. ```yaml Type: String Parameter Sets: (All) Aliases: Required: True Position: 4 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -vmName The name of the virtual machine to retrieve the policy from. ```yaml Type: String Parameter Sets: (All) Aliases: Required: True Position: 5 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -guestUser The username to authenticate to the virtual machine guest operating system. ```yaml Type: String Parameter Sets: (All) Aliases: Required: True Position: 6 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -guestPassword The password to authenticate to the virtual machine guest operating system. ```yaml Type: String Parameter Sets: (All) Aliases: Required: True Position: 7 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -localUser The local user to retrieve the password expiration policy for. ```yaml Type: Array Parameter Sets: (All) Aliases: Required: True Position: 8 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -minDays The minimum number of days between password changes. ```yaml Type: String Parameter Sets: (All) Aliases: Required: True Position: 9 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -maxDays The maximum number of days between password changes. ```yaml Type: String Parameter Sets: (All) Aliases: Required: True Position: 10 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -warnDays The number of days of warning before password expires. ```yaml Type: String Parameter Sets: (All) Aliases: Required: True Position: 11 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -detail Return the details of the policy. One of true or false. Default is true. ```yaml Type: String Parameter Sets: (All) Aliases: Required: False Position: 12 Default value: True 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](http://go.microsoft.com/fwlink/?LinkID=113216).