ps New-ExchangeCertificate SYNTAX WHEN REQUESTING CERT Outside US

Shane King 31 Reputation points

I have been setting up a new Exchange Server 2019 and am stuck with the syntax to generate an SSL CSR via powershell where the domain name is not in the US

example and the FQDN of the server to be used in the cert is

Is this the correct syntax for an .AU domain

New-ExchangeCertificate -GenerateRequest -RequestFile "\\mymailserver\share\ Cert.req" -FriendlyName " Cert" -SubjectName "C=AU,"
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,499 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,462 questions
{count} votes

Accepted answer
  1. Limitless Technology 39,511 Reputation points

    Hi there,

    The RequestFile parameter that takes the UNC path as input was removed with the 2022 H1 Cumulative Updates release. To export the requested file to a UNC path, you must use the Set-Content cmdlet.

    For the error, network name cannot be found it occurs if one of the following conditions is true:

    -The network components on the domain controller are not configured correctly.
    -You did not update the network drivers on the domain controller
    -The server is unavailable or unreachable.

    You can follow the troubleshooting steps from the below article and see if that helps you


    --If the reply is helpful, please Upvote and Accept it as an answer–

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Joyce Shen - MSFT 16,651 Reputation points

    Hi @Shane King

    For the error "The network name cannot be found." you received, please check if you have correctly set the sharing/permission for this path "\FileServer01\Data"

    You could try using "Run" to access this path to see if any issue:

    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments