Set-WssDomainNameConfiguration
Changes the domain name configuration of the server.
Set-WssDomainNameConfiguration
[-CertificatePath] <String>
[[-CertificateFilePassword] <SecureString>]
[-DomainName] <String>
[-NoCertificateVerification]
[<CommonParameters>]
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.
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.
Specifies the password, as a secure string, for the SSL certificate file.
Type: | SecureString |
Position: | 2 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the path of the SSL certificate file. If the cmdlet cannot find the certificate file in this path, the cmdlet searches in the root of each hard drive on the computer.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the domain name for the server.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
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 |