Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Export-AdfsDeploymentSQLScript

Last Updated: 3/8/2017

SYNOPSIS

Generates SQL scripts to create the AD FS database and to grant permissions.

SYNTAX

Export-AdfsDeploymentSQLScript -DestinationFolder <String> -ServiceAccountName <String> [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

The Export-AdfsDeploymentSQLScript cmdlet generates the SQL scripts that you can use separately to create the Active Directory Federation Services (AD FS) database and to grant permissions.

EXAMPLES

Example 1: Export SQL deployment scripts

PS C:\> Export-AdfsDeploymentSQLScript -ScriptDestinationFolder ".\ScriptFolder" -ServiceAccountName "ContosoDomain\PattiFuller"

This command exports SQL deployment scripts for AD FS installation on behalf of the specified AD FS service account.

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

-DestinationFolder

Specifies the folder in which the cmdlet saves the generated SQL scripts.

Type: String
Parameter Sets: (All)
Aliases: 

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

-ServiceAccountName

Specifies the name of the Active Directory® Domain Services account under which the AD FS service runs. All nodes in the farm must use the same service account.

Type: String
Parameter Sets: (All)
Aliases: 

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

-WhatIf

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

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: False
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

OUTPUTS

NOTES

© 2017 Microsoft