Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

BIOSパスワードが設定されているか確認する(英語)

Summary: このスクリプト サンプルは、Dellクライアント システムでBIOSレベルのパスワードが設定されているかどうかを確認する方法を示しています。

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Symptoms

このスクリプト サンプルは、Dellクライアント システムでBIOSレベルのパスワードが設定されているかどうかを確認する方法を示しています。このスクリプトでは、Dell Command |以前はOMCIと呼ばれていたモニター(DCM)がシステムにインストールされている。このスクリプトは、Dellネームスペースroot\dcim\sysman内のWMIクラス DCIM_BiosPasswordを照会します。WMI 名前空間 root\dcim\sysman は、システムに DCM がインストールされている場合に使用できます。

BIOS管理者パスワードは「AdminPwd」として報告され、BIOSシステム パスワードは「SystemPwd」として報告されます。 

スクリプト

<#.
構文
Dellクライアント システムでBIOSレベルのパスワードが設定されているかどうかを確認します。   
.説明
:このスクリプトは、Dell
ネームスペースroot\dcim\sysman内のWMIクラス DCIM_BiosPasswordを照会します。システムに DCM がインストールされている場合は、名前空間 root\dcim\sysman を使用できます

    BIOS管理者パスワードは「AdminPwd」として報告され、BIOSシステム パスワード
は「SystemPwd」として報告されます。

#>

$dcm = Get-CimInstance -Namespace root -Class __Namespace | where-object (where-オブジェクト) Name -eq DCIM
if (!$dcm) {
    Write-Output "DCMがインストールされていません。終了します...」
    return
}
$passwords = Get-CimInstance -Namespace root\dcim\sysman -classname dcim_biospassword
$passwords | foreach-Object {
$output = $_.AttributeName
  
if ($_.IsSet -match "True") {
$output += " は $env:COMPUTERNAME に設定されています。
        }
elseif ($_.IsSet -match "False") {
$output += " は $env:COMPUTERNAME に設定されていません。
        }
else
{
}
        Write-Output $output

Article Properties


Last Published Date

21 Feb 2021

Version

3

Article Type

Solution