★テキストファイルにコマンド結果を出力する例
PowerShell -command "Write-Output '--- --- --- --- --- --- --- --- --- --- --- --- --- ---' | Out-File -FilePath "D:\TEST.txt" -Append -Encoding default"
PowerShell -command "Get-Date -Format 'yyyy/MM/dd HH:mm' | Out-File -FilePath "D:\TEST.txt" -Append -Encoding default"
PowerShell -command "Write-Output '--- --- --- --- --- --- --- --- --- --- --- --- --- ---' | Out-File -FilePath "D:\TEST.txt" -Append -Encoding default"
PowerShell -command "Write-Output ' ' | Out-File -FilePath "D:\TEST.txt" -Append -Encoding default"
PowerShell -command "Write-Output '▲▼▲▼▲▼ パッチ適用情報 ▲▼▲▼▲▼' | Out-File -FilePath "D:\TEST.txt" -Append -Encoding default"
PowerShell -command "Get-HotFix | Where-Object HotFixID -match "KB" | Sort-Object -Descending InstalledOn | Out-File -FilePath "D:\TEST.txt" -Append -Encoding default"
PowerShell -command "Write-Output '--- --- --- --- --- --- --- --- --- --- --- --- --- ---' | Out-File -FilePath "D:\TEST.txt" -Append -Encoding default"
★RSS(Receive Side Scaling)の設定の確認
PowerShell -command "netsh int tcp show global"
★インストールされた更新プログラム画面を表示する
PowerShell -command "start shell:AppUpdatesFolder"
PR