0

I have a Powershell script which directly accesses a performance counter from a remote machine in the cloud in a large corporate environment:

$a = (Get-Counter -Counter "\\myservername\PI Analysis Service\Recalculation Requests Completed" -ErrorAction Stop)

The first time this line runs, the application hangs and it takes 4 minutes to reach the next line of code.

All following (identical) queries return in <1s.

Is this order of delay typical for accessing performance counters remotely?

What's the best way to trace the request and find out why it's taking so long?

Steve Taylor
  • 101
  • 2

0 Answers0