Export-CDHTML
From PowerGUI Wiki
Writes compare result to html file
Contents |
Syntax
Export-CDHTML -InputObject <CDCompareResult> [-PassThru] [-Force] [-Path] <String> [<CommonParameters>]
Detailed Description
Writes compare result to html file
Related Commands
Parameters
| Name | Description | Required? | Pipeline Input | Default Value |
|---|---|---|---|---|
| InputObject | Result of Compare-CDObject command | true | true (ByValue) | |
| PassThru | Passes the input object through the pipeline. By default, this cmdlet does not pass any objects through the pipeline. | false | false | |
| Force | Causes the cmdlet to clear the read-only attribute of the output file if necessary. The cmdlet will attempt to reset the read-only attribute when the command completes. | false | false | |
| Path | File path | true | false |
Examples
Example 1
$a=get-cddatabase myServ base1 $b=get-cddatabase srvMain base2 $s = compare-cdobject $a $b | export-cdhtml 'c:\test.html'
Compares two databases on sql servers and saves report in HTML file
