Upravit

Sdílet prostřednictvím


Export-AdfsDeploymentSQLScript

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 -DestinationFolder ".\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
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DestinationFolder

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

Type:String
Position:Named
Default value:None
Required:True
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
Position:Named
Default value:None
Required:True
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
Required:False
Accept pipeline input:False
Accept wildcard characters:False