Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8007843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:57:24+00:00 2026-06-04T17:57:24+00:00

I have a C# process that as part of it’s role reads performance counters

  • 0

I have a C# process that as part of it’s role reads performance counters from a set of Windows Server 2008R2 machines. All the machines are in a corporate AD domain and on the same network. This program works fine if I log onto a server machine and run the C# process from within my login session. I’m now trying to automate some experiments using this C# process with powershell. The goal is launch it from my desktop remotely on one of the servers. All the machines are in the same domain (desktop and servers).

All the machines have been set up with:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
Configure-SMRemoting.ps1 -force -enable

The powershell script is creating a PsSession to connect to the machine that runs the C# process and uses invoke-command to start it. However, the C# application on the remote host can no longer access the performance counters on the set machines that it monitors :- “Access is denied”.

Suspecting that this is a multi-hop authentication issue, I followed the these instructions http://www.ravichaganti.com/blog/?p=1230 to enable multi-hop authentication. Attempting to use CredSSP:

$cred = Get-Credential -Credential "Company\user"
$session = new-pssession -ComputerName $loadHost -Credential $cred -Authentication CredSSP -ErrorAction Stop

Yields:

Connecting to remote server failed with the following error message :
The WinRM client cannot process the request. CredSSP authentication is
currently disabled in the client configuration. Change the client
configuration and try the request again. CredSSP authentication must
also be enabled in the server configuration. Also, Group Policy must
be edited to allow credential delegation to the target computer. Use
gpedit.msc and look at the following policy: Computer Configuration ->
Administrative Templates -> System -> Credentials Delegation -> Allow
Delegating Fresh Credentials. Verify that it is enabled and
configured with an SPN appropriate for the target computer. For
example, for a target computer name “myserver.domain.com”, the SPN can
be one of the following: WSMAN/myserver.domain.com or
WSMAN/*.domain.com For more information, see the
about_Remote_Troubleshooting Help topic.

Using gpedit.msc, it’s plain Allow Delegating Fresh Credentials is setup with the corresponding SPN entry for the domain. The firewall on all machines is configured to enable WinRM Http-In. I’ve read the about_Remote_Troubleshooting documentation to no avail.

Any ideas on whether the multi-hop authentication is indeed the right approach, or anything else that could be breaking this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T17:57:26+00:00Added an answer on June 4, 2026 at 5:57 pm

    I wrote that blog post. And, yes, from the description of the problem, it looks like a CredSSP authentication issue. First, you need correct privileges to monitor the performance counters. When using remoting the second receives the request as SYSTEM if the credentials are delegated and hence the Invoke-COmmand on remote system yields access denied.

    First question is: Why didn’t you use Enable-PSremoting on the remote systems?
    Second question is: Did you configure the local system where C# application is running as a CredSSP client.

    Enable-WSManCredSSP -Role Client -DelegateComputer "*.SP2010lab.com"
    

    This needs to done only on the computer you are using as client. On the system where you are using Invoke-Command, you must set the CredSSP Server.

    Enable-WSManCredSSP -Role Server
    

    Can you confirm this?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Process objects that are monitored from two different views. A Windows.Forms.ListView (actually
I have part of a build process that creates a hideously long paths in
Background I have a few scripts that run as part of my build process
The requirement I have is that part of the install process for an application
As part of our development life cycle we have a number of process that
I have a repeatable business process that I execute every week as part of
As part of a Linux benchmark application, I have a parent process that forks
I have a process that interfaces with a library that launches another process. Occasionally
I have a process that spawns a helper process. Sometimes I need to debug
I have a process that currently runs in a Delphi application that I wrote

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.