<!--
{
  "documentType" : "article",
  "framework" : "SystemConfiguration",
  "identifier" : "/documentation/SystemConfiguration/scpreferencessetspecific",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "SCPreferencesSetSpecific"
}
-->

# SCPreferencesSetSpecific

## Overview

The functions in the `SCPreferencesSetSpecific` programming interface allow an application to set specific configuration information about the current system (for example, the computer or sharing name). Note that to access configuration preferences, you must first establish a preferences session using the [`SCPreferencesCreate(_:_:_:)`](/documentation/SystemConfiguration/SCPreferencesCreate(_:_:_:)) function.

## Topics

### Setting Configuration Information

[`func SCPreferencesSetComputerName(SCPreferences, CFString?, CFStringEncoding) -> Bool`](/documentation/SystemConfiguration/SCPreferencesSetComputerName(_:_:_:))

Sets the computer name preference to the specified name.

[`func SCPreferencesSetLocalHostName(SCPreferences, CFString?) -> Bool`](/documentation/SystemConfiguration/SCPreferencesSetLocalHostName(_:_:))

Sets the local host name to the specified name.



---

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)