<!--
{
  "availability" : [
    "macOS: 10.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SystemConfiguration",
  "identifier" : "/documentation/SystemConfiguration/SCPreferencesUnlock(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "System Configuration"
    ],
    "preciseIdentifier" : "c:@F@SCPreferencesUnlock"
  },
  "title" : "SCPreferencesUnlock(_:)"
}
-->

# SCPreferencesUnlock(_:)

Releases exclusive access to the configuration preferences.

```
func SCPreferencesUnlock(_ prefs: SCPreferences) -> Bool
```

## Parameters

`prefs`

The preferences session.

## Return Value

`TRUE` if the lock was obtained; `FALSE` if an error occurred.

## Discussion

After exclusive access has been released, other clients can establish exclusive access to the preferences.

---

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)