Remove-SCSpfSetting

Removes a setting from a database or a portal endpoint.

Syntax

Remove-SCSpfSetting [-Confirm] -SpfSetting <SpfSetting[]> [-WhatIf] [<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.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

Specifies one or more settings to remove.

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

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

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