We are getting error for checking Activesync and client access using command from remote server for exchanges server 2019.

Md. Mahfuzur Rahman 346 Reputation points
2023-12-31T04:38:34.3133333+00:00

We are getting error for checking Activesync and client access using command from remote server for exchanges server 2019. For own server its working fine issue only remote server.

User's image

Exchange | Exchange Server | Other
Exchange | Exchange Server | Management
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Kael Yao 37,746 Reputation points Moderator
    2024-01-01T06:07:58.52+00:00

    Hi @Md. Mahfuzur Rahman,

    Please follow the below steps and see if it can help with this issue:

    1.run the following cmdlet in Windows Command Prompt with elevated permissions

    lodctr /r
    

    2.copy and run the script in Windows PowerShell as admin

    $path = "C:\Program Files\Microsoft\Exchange Server\V15\Setup\Perf"
    $items = Get-ChildItem -Recurse $path
    
    $files = $items | ?{$_.extension -eq ".xml"} 
    
    Write-Host "Registering all perfmon counters in $path"
    Write-Host 
    
    $count = 0;
    
    foreach ($i in $files)
    {
       $count++ 
       $f =  $i.directory, "\", $i.name -join ""
    
       Write-Host $count $f
    
       New-PerfCounters -DefinitionFileName $f
    }
    
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.