---
title: "SCNetworkProtocolSetEnabled(_:_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scnetworkprotocolsetenabled(_:_:)"
---

# SCNetworkProtocolSetEnabled(_:_:)

Enables or disables the specified protocol.

## Declaration

```swift
func SCNetworkProtocolSetEnabled(_ protocol: SCNetworkProtocol, _ enabled: Bool) -> Bool
```

## Parameters

- `protocol`: The network protocol to enable or disable.
- `enabled`: TRUE if the protocol should be enabled.

## Return Value

Return Value TRUE if the enabled status was saved; FALSE if an error occurred.

## See Also

### Configuring Network Protocols

- [SCNetworkProtocolGetConfiguration(_:)](systemconfiguration/scnetworkprotocolgetconfiguration(_:).md)
- [SCNetworkProtocolGetEnabled(_:)](systemconfiguration/scnetworkprotocolgetenabled(_:).md)
- [SCNetworkProtocolGetProtocolType(_:)](systemconfiguration/scnetworkprotocolgetprotocoltype(_:).md)
- [SCNetworkProtocolGetTypeID()](systemconfiguration/scnetworkprotocolgettypeid().md)
- [SCNetworkProtocolSetConfiguration(_:_:)](systemconfiguration/scnetworkprotocolsetconfiguration(_:_:).md)
