Remove-SCSpfSetting

Removes a setting from a database or a portal endpoint.

Syntax

Remove-SCSpfSetting
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-SCSpfSetting
      -SpfSetting <SpfSetting[]>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-SCSPFSetting cmdlet removes a setting from a database connection string or a portal endpoint connection string.

Examples

Example 1: Remove a setting

PS C:\>$Setting = Get-SCSPFSetting -Name "ContosoSetting" | Remove-SCSPFSetting

This command obtains a setting by name and then passes it to the Remove-SCSPFSetting cmdlet by using the pipeline operator.

Required Parameters

-SpfSetting

Specifies one or more settings to remove.

Type:SpfSetting[]
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False