Citrix Virtual Apps and Desktops SDK

Rename-Configedgeserver

Renames an edge server

Syntax

Rename-ConfigEdgeServer [-InputObject] <EdgeServer> [-NewName] <String> [-PassThru] [-LoggingId <Guid>] [-BearerToken <String>] [-AdminAddress <String>] [<CommonParameters>]

Rename-ConfigEdgeServer [-Uid] <Guid> [-NewName] <String> [-PassThru] [-LoggingId <Guid>] [-BearerToken <String>] [-AdminAddress <String>] [<CommonParameters>]

Rename-ConfigEdgeServer [-Name] <String> [-NewName] <String> [-PassThru] [-LoggingId <Guid>] [-BearerToken <String>] [-AdminAddress <String>] [<CommonParameters>]
<!--NeedCopy-->

Detailed Description

The Rename-ConfigEdgeServer cmdlet changes the name of an edge server. All edge servers in a site must have a unique name.

The following special characters are not allowed in the name: \ / ; : # . * ? = < > [ ] ( ) “ ‘ # Rename-Configedgeserver

Renames an edge server

Syntax

<!JEKYLL@5100@0>

Detailed Description

The Rename-ConfigEdgeServer cmdlet changes the name of an edge server. All edge servers in a site must have a unique name.

Parameters

Name Description Required? Pipeline Input Default Value
InputObject Specifies the edge server to rename true true (ByValue)  
Uid Specifies the UID of the edge server to rename true true (ByPropertyName)  
Name Specifies the name of the edge server to rename true true (ByPropertyName)  
NewName Specifies the new name of the edge server true false  
PassThru Returns the affected record. By default, this cmdlet does not generate any output. false false False
LoggingId Specifies the identifier of the high-level operation this cmdlet call forms a part of. Citrix Studio and Director typically create high-level operations. PowerShell scripts can also wrap a series of cmdlet calls in a high-level operation by way of the Start-LogHighLevelOperation and Stop-LogHighLevelOperation cmdlets. false false  
BearerToken Specifies the bearer token assigned to the calling user false false  
AdminAddress Specifies the address of a XenDesktop controller the PowerShell snap-in will connect to. You can provide this as a host name or an IP address. false false Localhost. Once a value is provided by any cmdlet, this value becomes the default.

Input Type

Citrix.Configuration.Sdk.Edgeserver

You can pipe edge servers to Rename-ConfigEdgeServer.

Return Values

None Or Citrix.Configuration.Sdk.Edgeserver

This cmdlet does not generate any output, unless you use the PassThru parameter, in which case it generates a Citrix.Configuration.Sdk.EdgeServer object.

Examples

Example 1

C:\PS> Rename-ConfigEdgeServer -Name "Old name" -NewName "New Name"
<!--NeedCopy-->

Description

Renames the edge server with the name “Old name” to “New Name”

Example 2

C:\PS>  Get-ConfigEdgeServer "Old name" | Rename-ConfigEdgeServer -NewName "New name"
<!--NeedCopy-->

Description

Renames the edge server with the name “Old name” to “New Name”

Rename-Configedgeserver