This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已经过机器动态翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
이 콘텐츠는 동적으로 기계 번역되었습니다. 책임 부인
Este texto foi traduzido automaticamente. (Aviso legal)
Questo contenuto è stato tradotto dinamicamente con traduzione automatica.(Esclusione di responsabilità))
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.책임 부인
Este artigo foi traduzido automaticamente.(Aviso legal)
这篇文章已经过机器翻译.放弃
Questo articolo è stato tradotto automaticamente.(Esclusione di responsabilità))
Translation failed!
Add-XDController
Adds a Delivery Controller to an existing Site.
Syntax
Add-XDController
-SiteControllerAddress <String>
[-DoNotUpdateDatabaseServer]
[-AdminAddress <String>]
[<CommonParameters>]
<!--NeedCopy-->
Add-XDController
-SiteControllerAddress <String>
[-DoNotUpdateDatabaseServer]
[-AdminDatabaseCredentials <PSCredential>]
-ServiceDatabaseCredentials <PSCredential>
[-AdminAddress <String>]
[<CommonParameters>]
<!--NeedCopy-->
Add-XDController
-SiteControllerAddress <String>
[-DoNotUpdateDatabaseServer]
-SiteAdminDatabaseCredentials <PSCredential>
-LoggingAdminDatabaseCredentials <PSCredential>
-MonitorAdminDatabaseCredentials <PSCredential>
[-AdminAddress <String>]
[<CommonParameters>]
<!--NeedCopy-->
Add-XDController
-SiteControllerAddress <String>
[-DoNotUpdateDatabaseServer]
[-SiteAdminDatabaseCredentials <PSCredential>]
-SiteServiceDatabaseCredentials <PSCredential>
[-LoggingAdminDatabaseCredentials <PSCredential>]
-LoggingServiceDatabaseCredentials <PSCredential>
[-MonitorAdminDatabaseCredentials <PSCredential>]
-MonitorServiceDatabaseCredentials <PSCredential>
[-AdminAddress <String>]
[<CommonParameters>]
<!--NeedCopy-->
Add-XDController
-SiteControllerAddress <String>
-DatabaseCredentials <PSCredential>
[-AdminAddress <String>]
[<CommonParameters>]
<!--NeedCopy-->
Description
Adds a Controller to an existing Site.
If no credentials are provided and DoNotUpdateDatabaseServer has not been specified, then all database update operations are attempted using the credentials of the user running the cmdlet.
If DatabaseCredentials is provided, then all database operations are attempted using those credentials.
If one or more of SiteDatabaseCredentials, LoggingDatabaseCredentials or MonitorDatabaseCredentials are provided, then all three must be provided. All operations are then attempted using the credentials appropriate to each Database.
Examples
EXAMPLE 1
Adds the Controller ‘MyNewController’ to the Site to which ‘MyExistingController’ is already joined. The permissions for ‘MyNewController’ will be added automatically to the Database using the implicit credentials of the user running the cmdlet.
Add-XDController -AdminAddress MyNewController -SiteControllerAddress MyExistingController
<!--NeedCopy-->
EXAMPLE 2
Adds the Controller ‘MyNewController’ to the Site to which ‘MyExistingController’ is already joined.
The permissions for ‘MyNewController’ will not be added to the Database. Instead the Get-XDDatabaseSchema cmdlet is used to generate a SQL script that must be given to the database administrator of ‘MySQLServer’. The SQL script must be used to add the necessary permissions for ‘MyNewController’ before Add-XDController is run.
Get-XDDatabaseSchema -AdminAddress MyNewController -SiteName MySite -DatabaseServer MySQLServer -ScriptType AddController > C:\addController.sql
# Get a database administrator to run addController.sql
Add-XDController -AdminAddress MyNewController -SiteControllerAddress MyExistingController -DoNotUpdateDatabaseServer
<!--NeedCopy-->
EXAMPLE 3
Adds the Controller ‘MyNewController’ to the Site to which ‘MyExistingController’ is already joined.
The credentials contained within ‘$credential’ will be used to add the necessary permissions for ‘MyNewController’ to the Database.
$credential = Get-Credential
Add-XDController -AdminAddress MyNewController -SiteControllerAddress MyExistingController -DatabaseCredentials $credential
<!--NeedCopy-->
EXAMPLE 4
Adds the Controller ‘MyNewController’ to the Site to which ‘MyExistingController’ is already joined.
The credentials contained within ‘$credentialSite’ will be used to add the necessary permissions for ‘MyNewController’ to the Site Configuration Database. The credentials contained within ‘$credentialLogging’ will be used to add the necessary permissions for ‘MyNewController’ to the Configuration Logging Database. The credentials contained within ‘$credentialMonitor’ will be used to add the necessary permissions for ‘MyNewController’ to the Monitoring Database.
$credentialSite = Get-Credential
$credentialLogging = Get-Credential
$credentialMonitor = Get-Credential
Add-XDController -AdminAddress MyNewController -SiteControllerAddress MyExistingController -SiteDatabaseCredentials $credentialSite -LoggingDatabaseCredentials $credentialLogging -MonitorDatabaseCredentials $credentialMonitor
<!--NeedCopy-->
Parameters
-SiteControllerAddress
The address of a Controller in the Site to which this Controller is to be joined.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ServiceDatabaseCredentials
The security credentials, in the form of a PSCredential object, that will be used for services to connect to the SQL servers associated with the Site, Logging and Monitor databases when the SQLServer authentication mode was configured for this site.
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Introduced in: | Citrix Virtual Apps and Desktop 7 2411 |
-SiteAdminDatabaseCredentials
The security credentials, in the form of a PSCredential object, that will be used for administrator to connect to the SQL server associated with the Site database.
Type: | PSCredential |
Aliases: | SiteDatabaseCredentials |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Introduced in: | Citrix Virtual Apps and Desktop 7 2411 |
Type: | PSCredential |
Aliases: | SiteDatabaseCredentials |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Introduced in: | Citrix Virtual Apps and Desktop 7 2411 |
-LoggingAdminDatabaseCredentials
The security credentials, in the form of a PSCredential object, that will be used for administrator to connect to the SQL server associated with the Logging database.
Type: | PSCredential |
Aliases: | LoggingDatabaseCredentials |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Introduced in: | Citrix Virtual Apps and Desktop 7 2411 |
Type: | PSCredential |
Aliases: | LoggingDatabaseCredentials |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Introduced in: | Citrix Virtual Apps and Desktop 7 2411 |
-MonitorAdminDatabaseCredentials
The security credentials, in the form of a PSCredential object, that will be used for administrator to connect to the SQL server associated with the Monitor database.
Type: | PSCredential |
Aliases: | MonitorDatabaseCredentials |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Introduced in: | Citrix Virtual Apps and Desktop 7 2411 |
Type: | PSCredential |
Aliases: | MonitorDatabaseCredentials |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Introduced in: | Citrix Virtual Apps and Desktop 7 2411 |
-SiteServiceDatabaseCredentials
The security credentials, in the form of a PSCredential object, that will be used for services to connect to the SQL server associated with the Site database when the SQLServer authentication mode was configured for this site.
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Introduced in: | Citrix Virtual Apps and Desktop 7 2411 |
-LoggingServiceDatabaseCredentials
The security credentials, in the form of a PSCredential object, that will be used for services to connect to the SQL server associated with the Logging database when the SQLServer authentication mode was configured for this site.
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Introduced in: | Citrix Virtual Apps and Desktop 7 2411 |
-MonitorServiceDatabaseCredentials
The security credentials, in the form of a PSCredential object, that will be used for services to connect to the SQL server associated with the Monitor database when the SQLServer authentication mode was configured for this site.
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Introduced in: | Citrix Virtual Apps and Desktop 7 2411 |
-DatabaseCredentials
The security credentials, in the form of a PSCredential object, that will be used for administrator to connect to the SQL servers associated with the Site, Logging and Monitor databases.
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AdminAddress
Specifies the address of the Delivery Controller to which the PowerShell module will connect. This can be provided as a host name or an IP address.
Type: | String |
Position: | Named |
Default value: | Localhost. Once a value is provided by any cmdlet, this value will become the default. |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DoNotUpdateDatabaseServer
Results in the permissions associated with the Controller not being automatically added to the database.
This switch may be useful when the person running the cmdlet does not have sufficient database privilege. The database permissions for the Controller that is to be added must have been applied manually prior to running this cmdlet, otherwise the Controller is not added and an error is returned.
Get-XDDatabaseSchema may be used to generate the SQL script which in turn may be used to add the necessary permissions to the Database.
This parameter results in all supplied credentials being ignored.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AdminDatabaseCredentials
The security credentials, in the form of a PSCredential object, that will be used for administrator to connect to the SQL servers associated with the Site, Logging and Monitor databases.
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Introduced in: | Citrix Virtual Apps and Desktop 7 2411 |
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.
Removed Parameters
Parameters in this section were available in older releases, and have been removed or replaced due to changes in functionality.
Inputs
None
You cannot pipe input to this cmdlet.
Outputs
None
By default, this cmdlet returns no output.
Notes
In general, the AdminAddress specifies the Controller to which the PowerShell module will connect. However, in this cmdlet, not only is this the address of the Controller to connect to, it is also the Controller that is to be added to this Site.
If the user running this cmdlet does not have privilege to add users to the Database, then use either the DoNotudpateDatabaseServer switch or supply alternative credentials using one or more of the Credential arguments.
The command can fail for the following reasons:
- The Controller is already a member of a Site.
- The DoNotUpdateDatabaseServer parameter was specified, but the permissions for the Controller are not already in the Database. Either add the permissions using Get-XDDatabaseSchema or allow this cmdlet to add the permissions automatically.
- The person running the cmdlet, or the supplied credentials, do not have sufficient privilege to update the Database. Either run this cmdlet as a user that has administrator privilege to the Database, or supply an account with suitable privileges using the PSCredential parameter(s).
Related Links
Share
Share
In this article
This Preview product documentation is Citrix Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Citrix Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Citrix product purchase decisions.
If you do not agree, select I DO NOT AGREE to exit.