3テラバイト

プログラム関連備忘録サイト。主にゲーム。

PowerShell

PowerShellでWindows Management Instrumentation (WMI)オブジェクトを取得するコマンドレットGet-WmiObjectの使い方

投稿日:

こんにちは、今日はPowerShellでWindows Management Instrumentation (WMI)オブジェクトを取得するコマンドレットGet-WmiObjectの使い方についてまとめていきます。

確認環境

PSVersion 5.1.18362.1110

Get-WmiObjectの使い方

PS C:\Users\santerabyte> Get-WmiObject -list


   NameSpace: ROOT\cimv2

Name                                Methods              Properties
----                                -------              ----------
__SystemClass                       {}                   {}
__thisNAMESPACE                     {}                   {SECURITY_DESCRIPTOR}
__Provider                          {}                   {Name}
__Win32Provider                     {}                   {ClientLoadableCLSID, CLSID, Concurrency, DefaultMachineName...}

-PowerShell


comment

メールアドレスが公開されることはありません。 が付いている欄は必須項目です


reCaptcha の認証期間が終了しました。ページを再読み込みしてください。

関連記事

no image

PowerShellでコマンドのあるパスを取得する

確認環境 PowerShell 5.1 コマンドのパスを取得する Get-Commandコマンドレットにコマンド名を渡すと、Source列にてそのコマンドのパスが確認できます。 PS C:\Users …

no image

PowerShellで特定ディレクトリのファイル内文字列を置換する

Get-ChildItem . | ForEach-Object {Get-Content -Encoding utf8 $_ | ForEach-Object {$_ -creplace &#039 …

no image

PowerShellの比較演算子一覧

確認環境 PSVersion 5.1.18362.1110 比較演算子 演算子他言語の演算子説明-eq==等しい(equal)-ne!=等しくない(not equal)-gt>より大きい(Greate …

no image

PowerShellでディレクトリを移動するコマンドレットSet-Locationの使い方

こんにちは、今日はPowerShellでディレクトリを移動するコマンドレットのSet-Locationの使い方についてまとめていきます。 確認環境 PSVersion 5.1.18362.1110 S …

no image

PowerShellで右寄せ左寄せする方法

こんにちは、今日はPowerShellで右寄せ左寄せする方法についてまとめていきます。 確認環境 PSVersion 5.1.18362.1110 右寄せ "{0,5}" -f 1 …