2013-06-19 60 views

回答

0

這是一個小黑客十歲上下,但試試這個:

$ping = (ping 192.168.1.1) -replace "<", "&lt;" 
(ConvertTo-Html -Body $ping) -replace "<body>", "<body>`n<pre>" ` 
    -replace "<table>", "</pre>`n<table>" | Out-File "ping.html"