Set-WssDomainNameConfiguration
Changes the domain name configuration of the server.
Syntax
Set-WssDomainNameConfiguration
[-DomainName] <String>
[-CertificatePath] <String>
[[-CertificateFilePassword] <SecureString>]
[-NoCertificateVerification]
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.
Examples
Example 1: Change the domain name configuration of the server
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
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.
Parameters
-CertificateFilePassword
Specifies the password, as a secure string, for the SSL certificate file.
Type: | SecureString |
Position: | 3 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CertificatePath
Specifies the path of the SSL certificate file.
Type: | String |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DomainName
Specifies the domain name for the server.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NoCertificateVerification
Indicates that the server skips verification of the SSL certificate.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |