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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:58:40+00:00 2026-05-26T05:58:40+00:00

I have an odd issue with a script I’ve created. It executes various actions

  • 0

I have an odd issue with a script I’ve created.

It executes various actions on a few different remote hosts. When called directly from the command line it works perfectly. However when the script is invoked from another script (using ‘&’ or ‘.’ operators), it fails for some of the remote machines.

Some of the remote hosts are joined to the same domain as the machine I’m running from, and these hosts fail. Some of the remote hosts are non-domain linked machines and credentials are provided explicitly for them – and in that case they work whether called directly or from a script.

The error is:

The following error occured while using Kerberos authentication: There
are currently no logon servers available to service the logon request.

What is the difference between calling the script directly, or from a different script? And how can I work around the issue?

  • 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-26T05:58:41+00:00Added an answer on May 26, 2026 at 5:58 am

    Looks like it was my fault.

    Turns out I was using a variable called $credentials to supply the explicit credentials to the Invoke-Command call. And I was leaving it as null if no explicit credentials were required.

    Unfortunately my calling script was also creating a variable called $credentials to do some of the things it was doing, and the called script had inherited the value from its parent scope – but the new credentials were all wrong for the domain machines and hence the login was failing.

    Bad powershell hacking on my part, thanks all for your help!

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

Sidebar

Related Questions

I have a very odd issue, where I've created a custom MSBuild task that
I have an odd issue while using FlashCS4. I have a textfield that, when
I have a really odd issue with an ItemRenderer. I have a main.mxml container
I have a very odd issue. When I execute a specific database stored procedure
An odd issue that I have been trying to address in a project -
I have an odd linq subquery issue. Given the following data structure: Parents Children
I am learning JQuery, and I have ran into an odd issue. I made
I have an odd issue here :http://alarmefast.com/securitasdirect2011/index.php On the top left corner, I have
I have a little bit of an odd issue. When I run this SQL:
I have a really odd issue with WMI that I'm running into on a

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.