sábado, 21 de março de 2015

Setup cannot continue with the upgrade because the 'cscript' () process (ID : ) has open files. Close the process and restart Setup.


Este erro ocorre geralmente ao atualizar o Exchange Server 2010/2013 com agente do System Center instalado.


Exemplo:

Preparing Exchange Setup

    Copying Setup Files                           COMPLETED

The following server roles will be upgraded
Languages
Client Access Role
Management Tools

Performing Microsoft Exchange Server Prerequisite Check

    Configuring Prerequisites                                 COMPLETED
    Organization Checks                                        COMPLETED
    Language Pack Checks                                    COMPLETED
    Client Access Role Checks                              FAILED
     Setup cannot continue with the upgrade because the 'cscript' () process (ID
: 4128) has open files. Close the process and restart Setup.

     Setup cannot continue with the upgrade because the 'cscript' () process (ID
: 4368) has open files. Close the process and restart Setup.

     Setup cannot continue with the upgrade because the 'cscript' () process (ID
: 6604) has open files. Close the process and restart Setup.

     Setup cannot continue with the upgrade because the 'cscript' () process (ID
: 6684) has open files. Close the process and restart Setup.

     Setup cannot continue with the upgrade because the 'cscript' () process (ID
: 6688) has open files. Close the process and restart Setup.


The Exchange Server setup operation didn't complete. More details can be found
in ExchangeSetup.log located in the <SystemDrive>:\ExchangeSetupLogs folder.

Exchange Server setup encountered an error.

Porém, basta parar o agente System Center Management (servicename: HealthService)
E o resultado é este:


Preparing Exchange Setup

    Copying Setup Files                           COMPLETED

The following server roles will be upgraded
Languages
Client Access Role
Management Tools

Performing Microsoft Exchange Server Prerequisite Check

    Configuring Prerequisites                                 COMPLETED
    Organization Checks                                       COMPLETED
    Language Pack Checks                                    COMPLETED
    Client Access Role Checks                              COMPLETED

Configuring Microsoft Exchange Server

    Organization Preparation                                  COMPLETED
    Preparing Setup                                                COMPLETED
    Stopping Services                                            COMPLETED
    Language Files                                                COMPLETED
    Removing Exchange Files                              COMPLETED
    Preparing Files                                                COMPLETED
    Copying Exchange Files                                 COMPLETED
    Language Files                                               COMPLETED
    Restoring Services                                         COMPLETED
    Languages                                                      COMPLETED
    Client Access Server Role                             COMPLETED
    Exchange Management Tools                       COMPLETED
    Finalizing Setup                                            COMPLETED

The Microsoft Exchange Server setup operation completed successfully.

terça-feira, 17 de março de 2015

Alterar a porta RDP(3389) de forma rápida


Configurando "TlsCertificateName" em ReceiveConnector do Exchange Server 2013



Erro ao executar o cmdlet "Set-ReceiveConnector -identity "conector" -TlsCertificateName ?


...
value of type "Microsoft.Exchange.Management.SystemConfigurationTasks.ExchangeCertificate" to type
"Microsoft.Exchange.Data.SmtpX509Identifier".
    + CategoryInfo          : InvalidData: (:) [Set-ReceiveConnector], ParameterBindin...mationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Set-ReceiveConnector
...

Ao executar o comando tentando adicionar um certificado válido "Client Receive Connector" o erro acima é exibido,
Resolvi escrever este post porque a explição do get-help set-receiveconnector não é clara, informando que os parametros válidos são do Type [I]Issuer[S]Subject. Então resolvi colocar o comando completo abaixo para um certificado com nome ficticio de dhois.com


Set-ReceiveConnector -Identity "SERVIDOR1\Client Frontend SERVIDOR1" -TlsCertificateName "<I>CN=RapidSSL SHA256 CA - G3, O=GeoTrust Inc., C=US<S>CN=*.dhois.com, OU=Domain Control Validated - RapidSSL(R), OU=See www.rapidssl.com/resources/cps (c)14, OU=GT123456789"