How do I execute "Test-ComputerSecureChannel"

David 0 Reputation points
2024-09-12T12:57:59.9466667+00:00

Device: Surface - Windows 8 Pro

OS: Windows 11

Note: I am not logged into the computer (that is kind of the problem). I am running command prompt from the Windows recovery environment which only gives me access to x:\

I believe i am trying to run a Powershell command from Command Prompt.

Question: What syntax do use to run a the Powershell command "Test-ComputerSecureChannel" from X:\Windows\System32?

Do I need to execute from X:\Windows\System32\WindowsPowerShell>?

This is all in effort to solve the "trust-relationship-between-this-workstation-and-primary-domain-failed" message.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,596 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Daisy Zhou 25,061 Reputation points Microsoft Vendor
    2024-09-13T07:46:35.8533333+00:00

    Hello David,

    Thank you for posting in Q&A forum.

    1. Once you are in WinRE, navigate to the "Troubleshoot" option, then select "Advanced Options," and finally choose "Command Prompt." This will open a Command Prompt window.
    2. the Command Prompt window, type powershell and press Enter. This will launch a PowerShell session within the recovery environment.
    3. Now, you can run the Test-ComputerSecureChannel command.

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

    Best Regards,

    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

  2. Daisy Zhou 25,061 Reputation points Microsoft Vendor
    2024-09-13T08:24:18.9666667+00:00

    Hello David,

    Thank you for posting in Q&A forum.

    Please try the steps below.

    1. Once you are in WinRE, navigate to the "Troubleshoot" option, then select "Advanced Options," and finally choose "Command Prompt." This will open a Command Prompt window.
    2. the Command Prompt window, type powershell and press Enter. This will launch a PowerShell session within the recovery environment.
    3. Now, you can run the Test-ComputerSecureChannel command.

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

    Best Regards,

    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.