scripts

Get-ConfigConnectionStringBuilders.ps1

SYNOPSIS

Return named connection string builders for connection strings in a config file.

SYNTAX

Get-ConfigConnectionStringBuilders.ps1 [[-Path] <String>] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

DESCRIPTION

EXAMPLES

EXAMPLE 1

Get-ConfigConnectionStringBuilders.ps1 web.Debug.config

Returns the connection strings found in the debug web.config XDT.

PARAMETERS

-Path

The .NET config file containing connection strings.

Type: String
Parameter Sets: (All)
Aliases: FullName

Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-ProgressAction

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String of the path to a .NET config file with connection strings.

OUTPUTS

System.Management.Automation.PSCustomObject with the Name and ConnectionString

(a ConnectionStringBuilder) for each connection string found.

NOTES

Select-Xml