# Request-VcenterRootPasswordExpiration ## Synopsis Retrieves the `root` user password expiration policy for a vCenter Server instance. ## Syntax ```powershell Request-VcenterRootPasswordExpiration -server -user -pass -domain [-drift] [-reportPath ] [-policyFile ] [] ``` ## Description The `Request-VcenterRootPasswordExpiration` cmdlet retrieves the `root` user password expiration policy for 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 - Retrives the `root` user password expiration policy for a vCenter Server instance ## Examples ### Example 1 ```powershell Request-VcenterRootPasswordExpiration -server sfo-vcf01.sfo.rainpole.io -user administrator@vsphere.local -pass VMw@re1! -domain sfo-m01 ``` This example retrieves the `root` user password expiration policy for a vCenter Server instance. ### Example 2 ```powershell Request-VcenterRootPasswordExpiration -server sfo-vcf01.sfo.rainpole.io -user administrator@vsphere.local -pass VMw@re1! -domain sfo-m01 -drift -reportPath "F:\Reporting" -policyFile "passwordPolicyConfig.json" ``` This example retrieves the `root` user password expiration policy for a vCenter Server instance and checks the configuration drift using the provided configuration JSON. ### Example 3 ```powershell Request-VcenterRootPasswordExpiration -server sfo-vcf01.sfo.rainpole.io -user administrator@vsphere.local -pass VMw@re1! -domain sfo-m01 -drift ``` This example retrieves the `root` user password expiration policy for a vCenter Server instance and compares the configuration against the product defaults. ## Parameters ### -server The fully qualified domain name of the SDDC Manager instance. ```yaml 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. ```yaml 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. ```yaml 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 retrieve the policy from. ```yaml Type: String Parameter Sets: (All) Aliases: Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -drift Switch to compare the current configuration against the product defaults or a JSON file. ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: Required: False Position: Named Default value: False Accept pipeline input: False Accept wildcard characters: False ``` ### -reportPath The path to save the policy report. ```yaml Type: String Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -policyFile The path to the policy configuration file. ```yaml Type: String Parameter Sets: (All) Aliases: Required: False Position: Named Default value: None 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).