忍者ブログ

◆当blogは、Linuxサーバ構築する際の実際の設定手順を個人的メモとして記載しております。LinuC試験の役に立つ情報があるかも…?

LinuC(Linux技術者認定資格)&リナックスサーバ構築設定事例

   

[PR]

×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

【BAT】コマンド結果の出力

★テキストファイルにコマンド結果を出力する例
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

更新日付

05 2025/06 07
S M T W T F S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30

RECOMMEND

プロフィール

HN:
Account
HP:
性別:
非公開
職業:
--- NODATA ---
趣味:
--- NODATA ---
自己紹介:
◆当blogは、Linuxサーバ構築する際の実際の設定手順を個人的メモとして記載しております。LinuC試験の役に立つ情報があるかも…?

リンク

<<【Linux】設定情報(例)  | HOME |  【TMCM 7.0】アップグレード前のバックアップ>>
Copyright ©  -- LinuC(Linux技術者認定資格)&リナックスサーバ構築設定事例 --  All Rights Reserved
Design by CriCri / Photo by Melonenmann / powered by NINJA TOOLS / 忍者ブログ / [PR]