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 6542863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:16:40+00:00 2026-05-25T11:16:40+00:00

In order to automate test releases, I need access to remote computer in other

  • 0

In order to automate test releases, I need access to remote computer in other domain group.
What I’ve done on remote computer:

  1. run Enable-PSRemoting
  2. set TrustedHosts “*”
  3. added https listener with self-signed certificate
  4. opened 5985 and 5986 ports

So now scripts are running successfuly via PowerShell console.
But when I’m trying to run remote script via TeamCity agent I’ve been receiving following error:

Connecting to remote server failed with the following error message :
Access is denied. For more information, see the
about_Remote_Troubleshooting Help topic.

TeamCity agent service is running with Local System rights.

Session initialization

$password = ConvertTo-SecureString $appServerPwd -AsPlainText -Force 
$appCred = New-Object System.Management.Automation.PsCredential($appServerUser,$password)
$rs = New-PSSession -ComputerName $appServer -Credential $appCred -UseSSL -SessionOption (New-PSSessionOption -SkipCACheck -SkipCNCheck) -Authentication Negotiate

Also when I’m trying to make remote call to domain computer via TeamCity everything works.
Do you have any idea how to solve this issue ?

Dima

  • 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-05-25T11:16:41+00:00Added an answer on May 25, 2026 at 11:16 am

    I’ve found the problem, as soon I changed “Local System” user to Administrator user on TeamCity agent service, everything started to work.
    So the issues was in rights (starting PSSesion) between “Local System” and Administrator.

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

Sidebar

Related Questions

In order to automate unit tests on TeamCity I had to create a test
I have a requirement to run commands in the following order to automate the
I write the following expect script in order to automate ssh login to remote
I've been trying to use TeamCity 4.5 in order to automate builds of an
I am writing a Windows batch script in order to automate the process of
I have written the batch file below, in order to automate the process of
I need to automate entering a certain character (Russian letter Э ). In Spy++
Environment: I have a program - named CSIS - which I need to run
I am trying to automate order processing for a client their POS vendor doesn't
I am trying to use UISpec4J in order to automate a Java Swing application.

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.