Verifica dell'impostazione di una password del BIOS

Samenvatting: Questo esempio di script illustra come verificare se su un sistema client Dell è impostata una password a livello di BIOS.

Dit artikel is van toepassing op Dit artikel is niet van toepassing op Dit artikel is niet gebonden aan een specifiek product. Niet alle productversies worden in dit artikel vermeld.

Symptomen

Questo esempio di script illustra come verificare se su un sistema client Dell è impostata una password a livello di BIOS. Questo script richiede che Dell Command | Il monitor (DCM), precedentemente noto come OMCI, è installato sul sistema. Questo script esegue una query sul DCIM_BiosPassword della classe WMI nel namespace Dell root\dcim\sysman. Il namespace WMI root\dcim\sysman è disponibile se DCM è installato nel sistema.

La password dell'amministratore del BIOS è "AdminPwd", mentre la password del sistema del BIOS è "SystemPwd". 

COPIONE

<
# . Sinossi:
Verificare se su un sistema client Dell è impostata una password a livello di BIOS.   
. Descrizione
Questo script esegue una query sul DCIM_BiosPassword della classe WMI nel namespace Dell
root\dcim\sysman. Namespace root\dcim\sysman è disponibile
se DCM è installato nel sistema.
    La password dell'amministratore del BIOS è "AdminPwd", mentre la password
del sistema del BIOS è "SystemPwd".
 
#>

$dcm = Get-CimInstance -Namespace root -Class __Namespace | dove-oggetto Name -eq DCIM
if (!$dcm) {
    Write-Output "DCM non è installato. Uscita...."
    return
}
$passwords = Get-CimInstance -Namespace root\dcim\sysman -classname dcim_biospassword
$passwords | foreach-Object {
$output = $_. NomeAttributo,
  
if ($_. IsSet -match "True") {
$output += " è impostato su $env:COMPUTERNAME."
       
} elseif ($_. IsSet -match "False") {
$output += " non è impostato su $env:COMPUTERNAME."
       
} else
{
}
Write-Output $output
}         

Artikeleigenschappen
Artikelnummer: 000146401
Artikeltype: Solution
Laatst aangepast: 21 feb. 2021
Versie:  3
Vind antwoorden op uw vragen via andere Dell gebruikers
Support Services
Controleer of uw apparaat wordt gedekt door Support Services.