# Publish-WsaDirectoryPasswordPolicy ## Synopsis Publishes the password policies for Workspace ONE Access Directory. ## Syntax ### All-WorkloadDomains ```powershell Publish-WsaDirectoryPasswordPolicy -server -user -pass -policy [-drift] [-reportPath ] [-policyFile ] [-json] [-allDomains] [] ``` ### Specific-WorkloadDomain ```powershell Publish-WsaDirectoryPasswordPolicy -server -user -pass -policy [-drift] [-reportPath ] [-policyFile ] [-json] -workloadDomain [] ``` ## Description The `Publish-WsaDirectoryPasswordPolicy` cmdlet retrieves the requested password policy for Workspace ONE Accessand 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 Workspace ONE Access - Retrieves the requested password policy for Workspace ONE Access and converts to HTML ## Examples ### Example 1 ```powershell Publish-WsaDirectoryPasswordPolicy -server [sddc_manager_fqdn] -user [admin_username] -pass [admin_password] -policy PasswordExpiration -allDomains ``` This example returns the password expiration policy for Workspace ONE Access Directory Users. ### Example 2 ```powershell Publish-WsaDirectoryPasswordPolicy -server [sddc_manager_fqdn] -user [admin_username] -pass [admin_password] -policy PasswordComplexity -allDomains ``` This example returns the password complexity policy for Workspace ONE Access Directory Users. ### Example 3 ```powershell Publish-WsaDirectoryPasswordPolicy -server [sddc_manager_fqdn] -user [admin_username] -pass [admin_password] -policy AccountLockout -allDomains ``` This example returns the account lockout policy for Workspace ONE Access Directory Users. ### Example 4 ```powershell Publish-WsaDirectoryPasswordPolicy -server [sddc_manager_fqdn] -user [admin_username] -pass [admin_password] -policy PasswordExpiration -allDomains -drift -reportPath [report_path] -policyFile [policy_file].json ``` This example returns the password expiration policy for Workspace ONE Access Directory Users and compares the configuration against the policy configuration file. ### Example 5 ```powershell Publish-WsaDirectoryPasswordPolicy -server [sddc_manager_fqdn] -user [admin_username] -pass [admin_password] -policy PasswordExpiration -allDomains -drift ``` This example returns the password expiration policy for Workspace ONE Access Directory Users 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 ``` ### -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 ``` ### -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 ``` ### -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 ``` ### 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).