< Back

Send-PasswordCompliance

Fri Jan 10, 2020 7:28 pm

NAME Send-PasswordCompliance



SYNOPSIS

Formats and Email with Password Audit of a Server or to the console in a pretty format.





SYNTAX

Send-PasswordCompliance [-To <Object>] [-SMTP <Object>] -FailedComputers <Object> [<CommonParameters>]





DESCRIPTION

For servers that are not in compliance with the password policies

and lockout policies, will send an email with the names of the

attributes that are out of compliance





PARAMETERS

-To <Object>

Recipient of the compliance results



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-SMTP <Object>

SMTP Server used to send email



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-FailedComputers <Object>

Custom object containing computers and their password compliance results



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





Sends to console in a pretty format. To keep results in objects, use Test-PasswordAuditResults



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Send-PasswordCompliance -To jerry.seinfeld@mycompany.com -CompObj $Comps -SMTP smtp.mycompany.com















RELATED LINKS