<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Virtualization",
  "identifier" : "/documentation/Virtualization/VZEFIVariableStore/getSecureBootEnabled:error:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Virtualization"
    ],
    "preciseIdentifier" : "c:objc(cs)VZEFIVariableStore(im)getSecureBootEnabled:error:"
  },
  "title" : "getSecureBootEnabled:error:"
}
-->

# getSecureBootEnabled:error:

Returns a Boolean value that indicates whether Secure Boot is in an enabled state in the variable store.

```
- (BOOL) getSecureBootEnabled:(BOOL *) enabled error:(NSError **) error;
```

## Parameters

`enabled`

On success, set to YES if Secure Boot is enabled, NO otherwise.

`error`

Assigned with the error if the operation fails, or `nil` upon success.

## Return Value

`YES` if the operation succeeded, `NO` if an error occurred.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)