Invoke-Command Performance with non-Admin credentials

Welcome Forums General PowerShell Q&A Invoke-Command Performance with non-Admin credentials

This topic contains 1 reply, has 2 voices, and was last updated by

2 years, 7 months ago.

  • Author
  • #54623

    Topics: 3
    Replies: 1
    Points: 0
    Rank: Member

    I am attempting to run a set of commands on a remote computer using an account that is not a local admin on the target server
    (target is 2012R2)
    I have updated the default configuration using Set-PSSessionConfiguration, and in fact the test runs as expected, except for performance.

    Using a local admin credential the functions run in about 2 seconds. When I execute the same test using a non-admin account it takes 11-12 seconds.

    Is this performance hit expected or is there some tuning I can do to improve the response time ? Googling did not turn up anything helpful other than one person seeing the same issue back with PS V2 (no answers). Any and all thoughts appreciated.

  • #54633

    Topics: 1
    Replies: 169
    Points: 0
    Rank: Member

    I would think that you would need to give a specific example to get a better answer but to start with you would need to look into where the delay is occurring. If the delay is during the connection\establishing of a session it may be a difference in validating a local group vs a domain group. If the delay is during the execution of your function you would need to debug it to or add some measure commands to determine where the performance difference is. My thoughts would be to review your configuration, review event logs, and add debug logic to your code to determine where the issue is and go from there.

The topic ‘Invoke-Command Performance with non-Admin credentials’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort