Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • 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 applies to   This article does not apply to 

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
Article Number: 000146401
Article Type: Solution
Last Modified: 21 Feb 2021
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.
Article Properties
Article Number: 000146401
Article Type: Solution
Last Modified: 21 Feb 2021
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.