忍者ブログ

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

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

   

[PR]

×

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

【Windows】タスク情報

★タスク スケジューラを起動
Taskschd.msc
 
★タスクスケジューラ表示
Get-ScheduledTask
schtasks.exe
 
★エクセルでコマンド作成させる例【おまけ】
=B3&C3&D3&E3&F3&G3&H3&I3&J3&K3&L3&M3&N3&O3&P3&Q3
 ⇒ セル「S3」に以下の数式を入れる
PR

【PowerShell】アカウントの情報表示

★ユーザーアカウント表示(ローカル
Get-WmiObject Win32_UserAccount | ? { $_.LocalAccount -eq $true } | Format-table -autosize -wrap

★ユーザーアカウント表示(ドメイン

Get-WmiObject Win32_UserAccount | ? { $_.LocalAccount -eq $false } | Format-table -autosize -wrap

★グループ表示(ローカル

Get-WmiObject Win32_Group | ? { $_.LocalAccount -eq $true }

★グループ表示(ドメイン

Get-WmiObject Win32_Group | ? { $_.LocalAccount -eq $false }

★役割と機能をCSV形式に出力【おまけ】

Get-WindowsFeature | Export-Csv -encoding Default Feature.csv

【Linux】設定情報(例)

【以下のコマンド引数は、SPLXの場合の例】
 
■ホスト名、ユーザ名
------------------------
hostname
 → ホスト名
------------------------
users
 → ユーザ名
------------------------
sudo -s
 → ルート権限で実行【連続してルート権限を使用】
------------------------
 
■OS(カーネル)情報
------------------------
cat /etc/redhat-release
 → OSバージョン
------------------------
uname -rm
 → カーネルバージョン
------------------------
 
■プログラム(パッケージ)の確認
------------------------
rpm -qa | grep splx
 → インストールされたプログラム名 【grep検索】
------------------------
rpm -qa | grep -ie splx -ie SProtectLinux
 → パッケージ情報 【grep検索】【-ieで複数文字列を指定】
------------------------
yum list installed | grep splx
 → インストールされたソフトウェア一覧 【grep検索】
------------------------
 
■サービスの確認
------------------------
service --status-all | grep splx
 → サービス状態 【grep検索】
------------------------
systemctl status splx
 → サービス状態
------------------------
systemctl list-unit-files --type=service | grep splx
 → 全てのサービス一覧 【grep検索】
------------------------
systemctl list-units --type=service | grep splx
 → 稼働中のサービス一覧 【grep検索】
------------------------
 
■プロセスの確認
------------------------
ps aux | grep splx
 → プロセス一覧 【grep検索】
------------------------
top | grep splx
 → 実行中のプロセス 【grep検索】
------------------------
pstree -c
 → プロセスツリー
------------------------
 
■モジュールの確認
------------------------
cd /opt/TrendMicro/SProtectLinux/SPL.module
ls -al | grep splxmod
 → モジュール名 【grep検索】
------------------------
lsmod | grep splxmod
 → ロードされたカーネルモジュール 【grep検索】
------------------------
modimfo /opt/TrendMicro/SProtectLinux/SPLX.module/splxmod.ko
 → カーネルモジュール情報
------------------------
 
■パーミッションの確認
------------------------
ls -al /opt/TrendMicro/SProtectLinux/ | grep LicensePrefile.dat
 → パーミッション確認 【grep検索】
------------------------
 
■ライセンスの確認(SPLX用コマンド)
------------------------
/opt/TrendMicro/SProtectLinux/SPLX.vsapiapp/splxmain -E
 → ライセンス情報
------------------------
 
■MD5チェックサム
------------------------
md5sum /opt/TrendMicro/SProtectLinux/SPL.module/*
 → MD5チェックサム
------------------------
#=============================
# サーバ起動日時
uptime -s
vmstat
top -c
#=============================
# サーバ(経過時間)
uptime -p
#=============================
# 履歴コマンド
history | grep <文字列> | less
cat .bash_history | grep <文字列>
history | egrep "nmcli|ipv" | less
#=============================
# ■「ディスク「tmpfs」
# 一時的なファイルシステム
# 領域を含む仮想記憶上に生成される
# 電源オフでtmpfsは消える
df -h | grep tmpfs

【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"

【TMCM 7.0】アップグレード前のバックアップ

任意の場所に「CMBackupSet」フォルダ階層を作成する
cd /d "C:\TMP"
md ".\CMBackupSet\Trend Micro\"
md ".\CMBackupSet\Trend Micro\COMMON\"
md ".\CMBackupSet\Trend Micro\COMMON\TMI\"
md ".\CMBackupSet\Trend Micro\Control Manager\"
md ".\CMBackupSet\Trend Micro\Control Manager\Certificate\"
md ".\CMBackupSet\Trend Micro\Control Manager\WebUI\"
md ".\CMBackupSet\Trend Micro\Control Manager\WebUI\download\"
md ".\CMBackupSet\Trend Micro\Control Manager\WebUI\WebApp\"
md ".\CMBackupSet\Trend Micro\Control Manager\WebUI\WebApp\App_Data\"
md ".\CMBackupSet\Trend Micro\Control Manager\WebUI\WebApp\TreeIcons\"
cd /d "C:\Program Files (x86)\Trend Micro\"
xcopy /y /e ".\CmKeyBackup\" "C:\TMP\CMBackupSet\Trend Micro\CmKeyBackup\"
xcopy /y /e ".\Control Manager\ProductClass\" "C:\TMP\CMBackupSet\Trend Micro\Control Manager\ProductClass\"
xcopy /y /e ".\Control Manager\WebUI\exports\" "C:\TMP\CMBackupSet\Trend Micro\Control Manager\WebUI\exports\"
xcopy /y /e ".\Control Manager\WebUI\ProductUI\" "C:\TMP\CMBackupSet\Trend Micro\\Control Manager\WebUI\ProductUI\"
xcopy /y /e ".\Control Manager\WebUI\WebApp\TreeIcons\Icons\" "C:\TMP\CMBackupSet\Trend Micro\Control Manager\WebUI\WebApp\TreeIcons\Icons\"
cd /d "C:\Program Files (x86)\Trend Micro\COMMON\TMI\"
copy /y .\mrf_entity.bak "C:\TMP\CMBackupSet\Trend Micro\COMMON\TMI\"
copy /y .\mrf_entity.dat "C:\TMP\CMBackupSet\Trend Micro\COMMON\TMI\"
copy /y .\mrf_server.bak "C:\TMP\CMBackupSet\Trend Micro\COMMON\TMI\"
copy /y .\mrf_server.dat "C:\TMP\CMBackupSet\Trend Micro\COMMON\TMI\"
copy /y .\mrf_SSLcert.pem "C:\TMP\CMBackupSet\Trend Micro\COMMON\TMI\"
copy /y .\mrf_SSLpri.pem "C:\TMP\CMBackupSet\Trend Micro\COMMON\TMI\"
copy /y .\TMI.cfg "C:\TMP\CMBackupSet\Trend Micro\COMMON\TMI\"
cd /d "C:\Program Files (x86)\Trend Micro\Control Manager\"
copy /y .\Agent.ini "C:\TMP\CMBackupSet\Trend Micro\Control Manager\"
copy /y .\CasServerSetting.xml "C:\TMP\CMBackupSet\Trend Micro\Control Manager\"
copy /y .\DMRegisterInfo.xml "C:\TMP\CMBackupSet\Trend Micro\Control Manager\"
copy /y .\IDMapping.bak "C:\TMP\CMBackupSet\Trend Micro\Control Manager\"
copy /y .\IDMapping.xml "C:\TMP\CMBackupSet\Trend Micro\Control Manager\"
copy /y .\ProductInfo.dtd "C:\TMP\CMBackupSet\Trend Micro\Control Manager\"
copy /y .\ProductInfo.xml "C:\TMP\CMBackupSet\Trend Micro\Control Manager\"
copy /y .\ProductInfos.bak "C:\TMP\CMBackupSet\Trend Micro\Control Manager\"
copy /y .\ProductInfos.xml "C:\TMP\CMBackupSet\Trend Micro\Control Manager\"
copy /y .\Schema.dtd "C:\TMP\CMBackupSet\Trend Micro\Control Manager\"
copy /y .\Schema.xml "C:\TMP\CMBackupSet\Trend Micro\Control Manager\"
copy /y .\StringTable.bak "C:\TMP\CMBackupSet\Trend Micro\Control Manager\"
copy /y .\StringTable.xml "C:\TMP\CMBackupSet\Trend Micro\Control Manager\"
copy /y .\SystemConfiguration.xml "C:\TMP\CMBackupSet\Trend Micro\Control Manager\"
copy /y .\TVCS_Cert.pem "C:\TMP\CMBackupSet\Trend Micro\Control Manager\"
copy /y .\TVCS_Pri.pem "C:\TMP\CMBackupSet\Trend Micro\Control Manager\"
copy /y .\TVCS_Pub.pem "C:\TMP\CMBackupSet\Trend Micro\Control Manager\"
cd /d "C:\Program Files (x86)\Trend Micro\Control Manager\Certificate\"
copy /y .\SSO_PKI_PrivateKey.pem "C:\TMP\CMBackupSet\Trend Micro\Control Manager\Certificate\"
cd /d "C:\Program Files (x86)\Trend Micro\Control Manager\WebUI\download\"
copy /y .\E2EPublic.dat "C:\TMP\CMBackupSet\Trend Micro\Control Manager\WebUI\download\"
copy /y .\SSO_PKI_PublicKey.pem "C:\TMP\CMBackupSet\Trend Micro\Control Manager\WebUI\download\"
cd /d "C:\Program Files (x86)\Trend Micro\Control Manager\WebUI\WebApp\App_Data\"
copy /y .\IDMapping.xml "C:\TMP\CMBackupSet\Trend Micro\Control Manager\WebUI\WebApp\App_Data\"
copy /y .\ProductInfos.xml "C:\TMP\CMBackupSet\Trend Micro\Control Manager\WebUI\WebApp\App_Data\"
copy /y .\ProductInfos.xsd "C:\TMP\CMBackupSet\Trend Micro\Control Manager\WebUI\WebApp\App_Data\"
copy /y .\StringTable.xml "C:\TMP\CMBackupSet\Trend Micro\Control Manager\WebUI\WebApp\App_Data\"

【Windows】サービス情報

【サービス情報を表示する】
--- --- --- --- --- --- --- --- ---
★サービス状態を表示するコマンド
sc query <サービス名>
 ⇒ 出力結果「RUNNING」 ならサービス稼働状態
 
--- --- --- --- --- --- --- --- ---
★サービス状態(起動)確認コマンド
sc query | findstr /i /c:"<サービス名>"
 ⇒ 出力結果があることを確認
 
--- --- --- --- --- --- --- --- ---
★サービス状態(停止)確認コマンド
sc query state= inactive | findstr /i /c:"<サービス名>"
 ⇒ 出力結果なしの場合はサービスは起動している
 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
 ※出力結果をパイプでfindstrに渡して絞り込む
 findstr /i /c:"<サービス名>"
 /i 大小文字の区別なし
 /c: 検索する文字列を指定する
 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

【サービスの起動/停止】
--- --- --- --- --- --- --- --- ---
★サービス起動コマンド
sc start <サービス名>
 
--- --- --- --- --- --- --- --- ---
★サービス停止コマンド
sc stop <サービス名>
 
--- --- --- --- --- --- --- --- ---
★サービスの画面を開いて操作する場合
services.msc
 
・対象サービスを右クリック>「起動」でサービス起動
・対象サービスを右クリック>「停止」でサービス停止

【Windows】使用頻度高め

【パラメーターシート設定値の表示】
 
★システム情報
systeminfo
 
★OSバージョン
[Environment]::OSVersion
 
★ディスクサイズ
Get-Volume
(管理者モードで実行)
fsutil volume diskfree c:
★ドメイン参加状況
Get-WmiObject Win32_ComputerSystem
 
★ネットワーク設定
ipconfig /all

★MACアドレス
getmac /v
 
★サービス情報
Get-Service | Select-Object starttype,status,name,displayname
 
★適用済みセキュリティパッチ
Get-WMIObject Win32_QuickFixEngineering
 
★グループポリシー情報
gpresult /r
 
★アプリケーションの追加と削除
$path = "\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
$path1 = "HKLM:" + $path
$path2 = "HKCU:" + $path
Get-ChildItem -Path ($path1,$path2) |
    %{Get-ItemProperty $_.PsPath} |
    ?{$_.systemcomponent -ne 1 -and $_.parentkeyname -eq $null} |
    sort displayname |
    select DisplayName,Publisher
 
★プロセス情報
Get-Process | Select-Object Id,ProcessName
 
★役割情報と機能情報
Get-WindowsFeature

━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━
【ネットワークの状況確認】
 
☆ポートの疎通を確認するコマンド
Test-NetConnection <ホスト名> -Port <ポート番号>
 ⇒ TcpTestSucceeded : True の場合は、疎通OK
 
━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━
【コマンド操作のログを記録する】
 
☆PowerShellで、作業記録をログファイルに保存する
Start-Transcript <テキストファイル> -append
 ⇒ ログ記録開始・・・
Stop-Transcript
 ⇒ ・・・ログ記録終了
 
━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━
【ファイルやフォルダをコピーする】
 
★ファイルを上書きコピー
copy /y <コピー元> <コピー先>
 
★サブディレクトリごと纏めてファイルを上書きコピー
xcopy <コピー元> <コピー先> /e /y
 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
 ※オプションの説明
 /e ファイル無しのサブディレクトリもコピーする
 /y 上書きコピーの確認なし
 /i コピー先フォルダが存在しない場合、新規フォルダを作成
 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

【PowerShell】バッチから実行

■以下のようにバッチファイルに記述するとバッチからPowerShellが実行出来る
@echo off
PowerShell -command "Write-Output '--- --- --- --- --- --- --- --- --- --- --- --- --- ---'"
PowerShell -command "Write-Output '★★★ 開始 ★★★'"
PowerShell -command "Write-Output '--- --- --- --- --- --- --- --- --- --- --- --- --- ---'"
PowerShell -command "Write-Output ' '"
PowerShell -command "Write-Output '▲▼▲▼▲▼ ホスト名 ▲▼▲▼▲▼'"
PowerShell -command "hostname"
PowerShell -command "Write-Output '--- --- --- --- --- --- --- --- --- --- --- --- --- ---'"
PowerShell -command "Write-Output '▲▼▲▼▲▼ 日時 ▲▼▲▼▲▼'"
PowerShell -command "Get-Date -Format 'yyyy/MM/dd HH:mm'"
PowerShell -command "Write-Output '--- --- --- --- --- --- --- --- --- --- --- --- --- ---'"
PowerShell -command "Write-Output '▲▼▲▼▲▼ パッチ情報(降順) ▲▼▲▼▲▼'"
PowerShell -command "Get-HotFix | Where-Object HotFixID -match "KB" | Sort-Object -Descending InstalledOn"
PowerShell -command "Write-Output '--- --- --- --- --- --- --- --- --- --- --- --- --- ---'"
PowerShell -command "Write-Output '▲▼▲▼▲▼ 最近のOS起動の日時 ▲▼▲▼▲▼'"
PowerShell -command "Get-EventLog System | Where-Object {$_.InstanceId -eq "12" } | Select-Object -First 1"
PowerShell -command "Write-Output '--- --- --- --- --- --- --- --- --- --- --- --- --- ---'"
PowerShell -command "Write-Output '▲▼▲▼▲▼ システムイベント(エラー) ▲▼▲▼▲▼'"
PowerShell -command "Get-EventLog System | Where-Object {$_.EntryType -eq 'Error'} | Select-Object -First 50"
PowerShell -command "Write-Output '--- --- --- --- --- --- --- --- --- --- --- --- --- ---'"
pause
PowerShell -command "Write-Output '▲▼▲▼▲▼ システムイベント(警告) ▲▼▲▼▲▼'"
PowerShell -command "Get-EventLog System | Where-Object {$_.EntryType -eq 'Warning'} | Select-Object -First 50"
PowerShell -command "Write-Output '--- --- --- --- --- --- --- --- --- --- --- --- --- ---'"
pause
rem PowerShell -command "Write-Output '▲▼▲▼▲▼ アプリケーションイベント(エラー) ▲▼▲▼▲▼'"
rem PowerShell -command "Get-EventLog Application | Where-Object {$_.EntryType  -Like 'Error'} | Select-Object -First 30"
rem PowerShell -command "Write-Output '--- --- --- --- --- --- --- --- --- --- --- --- --- ---'"
rem pause
rem PowerShell -command "Write-Output '▲▼▲▼▲▼ アプリケーションイベント(警告) ▲▼▲▼▲▼'"
rem PowerShell -command "Get-EventLog Application | Where-Object {$_.EntryType  -Like 'Warning'} | Select-Object -First 30"
rem PowerShell -command "Write-Output '--- --- --- --- --- --- --- --- --- --- --- --- --- ---'"
rem pause
PowerShell -command "Write-Output ' '"
PowerShell -command "Write-Output '--- --- --- --- --- --- --- --- --- --- --- --- --- ---'"
PowerShell -command "Write-Output '★★★ 終了 ★★★'"
PowerShell -command "Write-Output '--- --- --- --- --- --- --- --- --- --- --- --- --- ---'"
pause

【Windows】パッチ適用・サービス状態・イベントログの確認方法

以下は、パッチ適用情報、サービス状態、イベントログを確認するコマンドの例
 コマンドプロンプトは管理者権限で開いて実行しないとエラーになる場合がある
 【PowerShell】…パワーシェルに切り替えてからコマンドを実行すること
--- --- --- --- --- --- --- --- --- ---
☆パッチ適用情報を表示
 wmic qfe list
★パッチ適用情報を表示(KB番号指定)
 wmic qfe list | findstr "<KB番号>"
--- --- --- --- --- --- --- --- --- ---
☆サービス状態(全て)表示
 sc query state= all  | findstr /C:SERVICE_NAME /C:STATE
★サービス状態(実行中だけ)表示
 sc query | findstr /C:SERVICE_NAME /C:STATE
★サービス状態(停止だけ)表示
 sc query state= inactive  | findstr /C:SERVICE_NAME /C:STATE
※指定したサービスだけ表示
 sc.exe query <サービス名>
--- --- --- --- --- --- --- --- --- ---
★システムイベントログの(重大、エラー、警告)表示
wevtutil qe System /f:Text /rd:true "/q:*[System[(Level=1)] or System[(Level=2)] or System[(Level=3)]]"

★アプリケーションイベントログの(重大、エラー、警告)表示
wevtutil qe application /f:Text /rd:true "/q:*[System[(Level=1)] or System[(Level=2)] or System[(Level=3)]]"

★セキュリティイベントログの(重大、エラー、警告)表示
wevtutil qe security /f:Text /rd:true "/q:*[System[(Level=1)] or System[(Level=2)] or System[(Level=3)]]"

★日時を指定してアプリケーションイベントログを表示する場合
(11:30~12:00 の場合 ⇒ 9時間プラスされる為、T02:30:00 ~ T03:00:00)
wevtutil qe application /f:text "/q:*[System[(Level=2)] and System[TimeCreated[@SystemTime>='2021-01-23T02:30:00' and @SystemTime<='2021-01-23T03:00:00']]]"
--- --- --- --- --- --- --- --- --- ---
☆【PowerShell】パッチ適用情報を表示
 Get-HotFix
★【PowerShell】パッチ適用情報を表示(降順)
 Get-HotFix | Sort-Object InstalledOn -Descending
 (Get-ComputerInfo).OsHotFixes | Sort-Object InstalledOn
★【PowerShell】パッチ適用情報を表示(マッチング条件指定)
 Get-HotFix | Where-Object HotFixID -match "KB" | Sort-Object -Descending InstalledOn
--- --- --- --- --- --- --- --- --- ---
☆【PowerShell】サービス状態を表示する
 Get-Service
★【PowerShell】サービス状態(実行中だけ)表示
 get-service | where-object {$_.Status -eq "Running"}
★【PowerShell】サービス状態(停止だけ)表示
 Get-Service | Where-Object { $_.Status -eq "stopped" }
★【PowerShell】ステータス(降順)にサービス状態表示
 Get-Service | Sort-Object status -Descending
★【PowerShell】サービス名を検索
 Get-Service -Name <検索文字*>
☆【PowerShell】実行中・停止のサービス数の合計数
 Get-Service | Group-Object {$_.Status}
★【PowerShell】ステータスと起動モードを降順にサービス状態を表示する
 Get-CimInstance -ClassName Win32_Service | Select-Object -Property State,StartMode,Name,DisplayName | Sort-Object State,StartMode -Descending
--- --- --- --- --- --- --- --- --- ---
★【PowerShell】年月日を指定して、システムイベントログ(Warning,Error)表示
 Get-EventLog System -After "2021/01/16"  -Before "2021/01/16" | Where-Object {$_.EntryType -eq "Warning"}
 Get-EventLog System -After "2021/01/16"  -Before "2021/01/16"| Where-Object {$_.EntryType -eq "Error"}

★【PowerShell】年月日を指定して、アプリケーションイベントログ(Warning,Error)表示
 Get-EventLog Application -After "2021/01/16" -Before "2021/01/16" | Where-Object {$_.EntryType  -Like "Warning"}
 Get-EventLog Application -After "2021/01/16" -Before "2021/01/16" | Where-Object {$_.EntryType -Like "Error"}


★【PowerShell】年月日を指定して、セキュリティイベントログ(Warning,Error)表示
 Get-EventLog OAlerts -After "2021/01/16" -Before "2021/01/16" | Where-Object {$_.EntryType -eq "Warning"}
 Get-EventLog OAlerts -After "2021/01/16" -Before "2021/01/16" | Where-Object {$_.EntryType -eq "Error"}

★【PowerShell】システムイベントログ(OS起動,OSシャットダウン)表示 (最近の3件のみ)
 Get-EventLog System | Where-Object {$_.InstanceId -eq "12" } | Select-Object -First 3
 Get-EventLog System | Where-Object {$_.InstanceId -eq "13" } | Select-Object -First 3
--- --- --- --- --- --- --- --- --- ---

【Windows】各種設定画面を開くコマンド一覧

以下のコマンドをコマンドプロンプトから実行すると各種設定画面が表示される
--- --- --- --- --- --- --- --- --- ---
※以下はパッチ適用後の確認用
★インストールされた更新プログラム
 start shell:AppUpdatesFolder
★更新履歴の表示
 start ms-settings:windowsupdate-history
--- --- --- --- --- --- --- --- --- ---
※以下はサーバの稼働状態確認用
★サービス
 services.msc
★イベントビューア
 eventvwr.msc
★上記のコマンドを連続して実行する
 start shell:AppUpdatesFolder & start ms-settings:windowsupdate-history & services.msc & eventvwr.msc
★ホスト名と日付と時間を表示する
 hostname & date /t & time /t
--- --- --- --- --- --- --- --- --- ---
※以下は設定内容確認のコマンド
■詳細情報
 start ms-settings:about
■システムのプロパティ
 sysdm.cpl
 control sysdm.cpl
■バージョン情報
 winver
■ユーザーの情報
 start ms-settings:yourinfo
■ユーザーアカウント
 Netplwiz
■ユーザーアカウントの変更
 control USERPASSWORDS
 control.exe userpasswords
 start control USERPASSWORDS
■ユーザーアカウント制御の設定
 UserAccountControlSettings
■スクリーンセーバーの設定
 control desk.cpl,screensaver,@screensaver
 control desk.cpl,,1
■コンピュータの管理
 compmgmt.msc
 start compmgmt.msc
 CompMgmtLauncher
■ディスクの管理
 diskmgmt.msc
■ネットワーク接続
 ncpa.cpl
 control.exe NETCONNECTIONS
■ローカルユーザとグループ
 lusrmgr.msc
■グループポリシー
 gpedit.msc
■ユーザーアカウント
 nusrmgr.cpl
■地域と言語
 intl.cpl
 control.exe international
--- --- --- --- --- --- --- --- --- ---
※以下は使用頻度が高そうなコマンド
●設定
 [Windows]キー + [I]キー
 start ms-settings:
 start ms-settings:surfacehub-accounts
●プログラムと機能
 appwiz.cpl
 start appwiz.cpl
 start shell:ChangeRemoveProgramsFolder
 control.exe /name Microsoft.ProgramsAndFeatures
●更新とセキュリティ
 start ms-settings:windowsupdate
●コントロールパネル
 control.exe
 start control
 start shell:ControlPanelFolder
●リモートデスクトップ
 mstsc
●パワーシェル起動
 powershell
--- --- --- --- --- --- --- --- --- ---
※その他…以下は使用頻度低そう…
 start ms-settings:display
 start ms-settings:display-advanced
 start ms-settings:taskbar
 start ms-settings:privacy-tasks
 start ms-settings:storagesense
 start ms-settings:privacy-accountinfo
 start ms-settings:network-status
 start ms-settings:network-ethernet
 start ms-settings:startupapps
 start ms-settings:windowsupdate-options
--- --- --- --- --- --- --- --- --- ---

更新日付

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試験の役に立つ情報があるかも…?

リンク

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