こんにちは、HTML でクイックフィックス エンジニアリングを出力するための簡単なスクリプトを書きましたが、何かがうまく機能していません。
$qfe = gwmi -class win32_quickfixengineering
$qfe | select-object -property HotFixID, Description, Caption,
@{LABEL="URL"; EXPRESSION={ "<a href=""" + $_.caption + """>" + $_.caption + "</a>" } } |
ConvertTo-html -Head $style -body "<H2>Windows Update Information (quickfixengineering)
</H2><H3>Creation Date: $date / Entries found: $fixcount</H3> " |
Out-File $scriptpath\html\$file
htmlに変換する前にキャプションプロパティをhtmlのリンクタグに入れようと思っているのですが、実際に変換すると一部の文字がhtmlの文字コードに変換されてしまいます。
そのようです:
<a href="http://go.microsoft.com/fwlink/?LinkId=133041">http:
//go.microsoft.com/fwlink/?LinkId=133041</a>
私はいくつかのことを試しました。'' 文字も本当に役に立ちません (英語でこれらを呼び出す方法がわかりません)。
誰かアイデアがありますか/これを整理してください:) tnx