---
title: enableSecureBootUsingDefaultPlatformKey()
framework: virtualization
role: symbol
role_heading: Instance Method
path: virtualization/vzefivariablestore/enablesecurebootusingdefaultplatformkey()
---

# enableSecureBootUsingDefaultPlatformKey()

Enables Secure Boot with an Apple-managed Platform Key.

## Declaration

```swift
func enableSecureBootUsingDefaultPlatformKey() throws
```

## Discussion

Discussion This operation overwrites the Platform Key (PK) global variable with an Apple-managed Platform Key, sets the “SetupMode” global variable to 0, and enables Secure Boot.
