Set-WssDomainNameConfiguration

Set-WssDomainNameConfiguration

Changes the domain name configuration of the server.

Syntax

Parameter Set: Default
Set-WssDomainNameConfiguration [-DomainName] <String> [-CertificatePath] <String> [[-CertificateFilePassword] <SecureString> ] [-NoCertificateVerification] [ <CommonParameters>]

Detailed Description

The Set-WssDomainNameConfiguration cmdlet changes the domain name configuration settings of the server. You can use this cmdlet to change the domain name of the server and configure the Secure Sockets Layer (SSL) certificate binding to the Web Server, terminal server, and virtual private network (VPN) server.

Parameters

-CertificateFilePassword<SecureString>

Specifies the password, as a secure string, for the SSL certificate file.

Aliases

none

Required?

false

Position?

3

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-CertificatePath<String>

Specifies the path of the SSL certificate file.

Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-DomainName<String>

Specifies the domain name for the server.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-NoCertificateVerification

Indicates that the server skips verification of the SSL certificate.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Change the domain name configuration of the server

The first command converts the plain text string "P@ssW0rD!" into a secure string and stores the result in the $SecureString_pwd variable.

The second command specifies the domain name of the server, sets the password stored in the $SecureString_pwd variable, sets the path for the SSL certificate file, and specifies that the server skips verification of the SSL certificate.

PS C:\> $SecureString_pwd = convertto-securestring "P@ssW0rD!" -Asplaintext -Force
PS C:\> Set-WssDomainNameConfiguration -CertificateFilePassword $SecureString_pwd -CertificatePath "c:\cert.pfx" -DomainName "Contoso.com" -NoCertificateVerification

Get-WssDomainNameConfiguration

Join-WssDomain

Exit-WssDomain