# Publish-SsoPasswordPolicy ## Synopsis Publishes a requested password policy for vCenter Single Sign-On for a workload domain or all workload domains. ## Syntax ### All-WorkloadDomains ```powershell Publish-SsoPasswordPolicy -server -user -pass -policy [-allDomains] [-drift] [-reportPath ] [-policyFile ] [-json] [] ``` ### Specific-WorkloadDomain ```powershell Publish-SsoPasswordPolicy -server -user -pass -policy -workloadDomain [-drift] [-reportPath ] [-policyFile ] [-json] [] ``` ## Description The `Publish-SsoPasswordPolicy` cmdlet retrieves the requested password policy for vCenter Single Sign-On and converts the output to HTML. 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 - Retrieves the requested password policy for vCenter Single Sign-On and converts to HTML ## Examples ### Example 1 ```powershell Publish-SsoPasswordPolicy -server sfo-vcf01.sfo.rainpole.io -user admin@local -pass VMw@re1!VMw@re1! -policy PasswordExpiration -allDomains ``` This example returns password expiration policy for vCenter Single Sign-On across all workload domains. ### Example 2 ```powershell Publish-SsoPasswordPolicy -server sfo-vcf01.sfo.rainpole.io -user admin@local -pass VMw@re1!VMw@re1! -policy PasswordExpiration -workloadDomain sfo-w01 ``` This example returns password expiration policy for vCenter Single Sign-On for a workload domain. ### Example 3 ```powershell Publish-SsoPasswordPolicy -server sfo-vcf01.sfo.rainpole.io -user admin@local -pass VMw@re1!VMw@re1! -policy PasswordComplexity -allDomains ``` This example returns password complexity policy for vCenter Single Sign-On across all workload domains. ### Example 4 ```powershell Publish-SsoPasswordPolicy -server sfo-vcf01.sfo.rainpole.io -user admin@local -pass VMw@re1!VMw@re1! -policy PasswordComplexity -workloadDomain sfo-w01 ``` This example returns password complexity policy for vCenter Single Sign-On for a workload domain. ### Example 5 ```powershell Publish-SsoPasswordPolicy -server sfo-vcf01.sfo.rainpole.io -user admin@local -pass VMw@re1!VMw@re1! -policy AccountLockout -allDomains ``` This example returns account lockout policy for vCenter Single Sign-On across all workload domains. ### Example 6 ```powershell Publish-SsoPasswordPolicy -server sfo-vcf01.sfo.rainpole.io -user admin@local -pass VMw@re1!VMw@re1! -policy AccountLockout -workloadDomain sfo-w01 ``` This example returns account lockout policy for vCenter Single Sign-On for a workload domain. ### Example 7 ```powershell Publish-SsoPasswordPolicy -server sfo-vcf01.sfo.rainpole.io -user admin@local -pass VMw@re1!VMw@re1! -policy PasswordExpiration -workloadDomain sfo-m01 -drift -reportPath "F:\Reporting" -policyFile "passwordPolicyConfig.json" ``` This example returns password expiration policy for vCenter Single Sign-On for a workload domain and compares the configuration against the `passwordPolicyConfig.json` file. ## 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 ``` ### -policy The policy to publish. One of: PasswordExpiration, PasswordComplexity, AccountLockout. ```yaml Type: String Parameter Sets: (All) Aliases: Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -allDomains Switch to publish the policy for all workload domains. ```yaml Type: SwitchParameter Parameter Sets: All-WorkloadDomains Aliases: Required: True Position: Named Default value: False Accept pipeline input: False Accept wildcard characters: False ``` ### -workloadDomain Switch to publish the policy for a specific workload domain. ```yaml Type: String Parameter Sets: Specific-WorkloadDomain 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 ``` ### -json Switch to publish the policy in JSON format. ```yaml Type: SwitchParameter Parameter Sets: (All) 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](http://go.microsoft.com/fwlink/?LinkID=113216).