scripts/Set-HPBIOSPassword.ps1
2025-04-09 23:17:45 -05:00

10 lines
349 B
PowerShell

# Script to set WKS BIOS password on HP systems.
# Technolog Networks - 2024-08-12
# iRaven
#Connect to the HP_BIOSSetting WMI class
$HPBiosSettings = Get-WmiObject -Namespace root/hp/InstrumentedBIOS -Class HP_BIOSSetting
#Check the status of the setup password
$BIOSPasswordSet = ($HPBiosSettings | Where-Object Name -eq "Setup Password").IsSet