search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
New-ExchangeCertificate command has changed with Exchange 2010 Beta!
Posted in Exchange Server, Windows Powershell | No Comment | 6,451 views | 04/10/2009 01:06

This is a second shock after ServerManagerCMD for me. I don’t know why they changed it but there is no -Path switch anymore. We have to use Set-Content instead of -Path switch. When I use -Path switch with New-ExchangeCertificate, I get this error:

A positional parameter cannot be found that accepts argument ‘-Path’.
+ CategoryInfo : InvalidArgument: (:) [New-ExchangeCertificate], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,New-ExchangeCertificate

Generating CSR request in Microsoft Exchange Server 2007 with Powershell:

New-ExchangeCertificate -GenerateRequest -Path c:\Exchange.csr -KeySize 2048
-SubjectName "c=TR, s=Metrocity, l=Istanbul, o=Radore Hosting, ou=IT, cn=exchange.radore.net"

Generating CSR request in Microsoft Exchange Server 2010 with Powershell:

$CSR = New-ExchangeCertificate -GenerateRequest -KeySize 2048
-SubjectName "c=TR, s=Metrocity, l=Istanbul, o=Radore Hosting, ou=IT, cn=exchange.radore.net"
Set-Content -path "C:\Exchange.csr" -Value $CSR

Using a second command shouldn’t be necessery. I don’t know why they add Set-Content for this action.



Leave a Reply