Verifica dell'impostazione di una password del BIOS

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

Denne artikkelen gjelder for Denne artikkelen gjelder ikke for Denne artikkelen er ikke knyttet til noe bestemt produkt. Det er ikke produktversjonene som identifiseres i denne artikkelen.

Symptomer

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
}         

Artikkelegenskaper
Artikkelnummer: 000146401
Artikkeltype: Solution
Sist endret: 21 feb. 2021
Versjon:  3
Få svar på spørsmålene dine fra andre Dell-brukere
Støttetjenester
Sjekk om enheten din er dekket av støttetjenestene.