- Screenshot 2026-01-22 151939.png (13.38 KB) Viewed 12859 times
- Screenshot 2026-01-22 152350.png (10.02 KB) Viewed 12857 times
Code: Select all
Add-DhcpServerv4Policy -Name "snponly_custom.efi" -Condition AND -UserClass NE,iPXE -VendorClass NE,legacy_bios*
Set-DhcpServerv4OptionValue -PolicyName "snponly_custom.efi" -OptionID 67 -Value "snponly_custom.efi"
I deleted my manual registration and tried to place your order:sfonteneau wrote: ↑January 22, 2026 - 4:40 PMCode: Select all
Add-DhcpServerv4Policy -Name "snponly_custom.efi" -Condition AND -UserClass NE,iPXE -VendorClass NE,legacy_bios* Set-DhcpServerv4OptionValue -PolicyName "snponly_custom.efi" -OptionID 67 -Value "snponly_custom.efi"
Code: Select all
# Define DHCP Classes
Add-DhcpServerv4Class -Name "legacy_bios" -Type Vendor -Data "PXEClient:Arch:00000" -ErrorAction SilentlyContinue
Add-DhcpServerv4Class -Name "iPXE" -Type User -Data "iPXE" -ErrorAction SilentlyContinue
Code: Select all
[System.Text.Encoding]::ASCII.GetString((Get-SecureBootUEFI db).bytes) -match 'Microsoft Windows Production PCA 2011'
Code: Select all
def install():
registry_set(HKEY_LOCAL_MACHINE,r'SYSTEM\CurrentControlSet\Control\SecureBoot','AvailableUpdates',64)
run_task(r'\Microsoft\Windows\PI\Secure-Boot-Update')
def audit():
if not run_powershell("Confirm-SecureBootUEFI"):
print("secure boot not enable")
return "OK"
if run_powershell(r"[System.Text.Encoding]::ASCII.GetString((Get-SecureBootUEFI db).bytes) -match 'Windows UEFI CA 2023'"):
return "OK"
else:
print('Windows UEFI CA 2023 not found')
return "ERROR"
Code: Select all
[System.Text.Encoding]::ASCII.GetString((Get-SecureBootUEFI db).bytes) -match 'Microsoft Windows Production PCA 2011'
Code: Select all
def install():
registry_set(HKEY_LOCAL_MACHINE,r'SYSTEM\CurrentControlSet\Control\SecureBoot','AvailableUpdates',64)
run_task(r'\Microsoft\Windows\PI\Secure-Boot-Update')
def audit():
if not run_powershell("Confirm-SecureBootUEFI"):
print("secure boot not enable")
return "OK"
if run_powershell(r"[System.Text.Encoding]::ASCII.GetString((Get-SecureBootUEFI db).bytes) -match 'Windows UEFI CA 2023'"):
return "OK"
else:
print('Windows UEFI CA 2023 not found')
return "ERROR"Code: Select all
[System.Text.Encoding]::ASCII.GetString((Get-SecureBootUEFI db).bytes) -match 'Microsoft Windows Production PCA 2011'