• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
ControlUp Community

ControlUp Community

Connect, Learn, and Grow

  • Blog
  • Podcast
  • Meetups
  • Archives
  • Categories
    • ControlUp One Platform
    • ControlUp for Apps
    • ControlUp for Compliance
    • ControlUp for Desktops
    • ControlUp Scripts & Triggers
    • ControlUp Synthetic Monitoring
    • ControlUp for VDI
  • Topics
  • Events
    • Logos & Wallpaper
    • ControlUp.com
  • Join

Updating the Repair Domain Trust Script for Windows 11 Compatibility

Posted on August 15, 2024

Users discussed updating the Repair Domain Trust script to be compatible with Windows 11 and asked for input from other members. They referenced the script from ControlUp’s VDI/DaaS action library and a solution from a third-party website. It was suggested to use the PowerShell cmdlet "Test-ComputerSecureChannel -Repair" and it was confirmed that it works on both Windows 10 and physical devices. The cmdlet can be found at https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/test-computersecurechannel?view=powershell-5.1.


Read the entire ‘Updating the Repair Domain Trust Script for Windows 11 Compatibility’ thread below:

Has anyone been able to update the Repair Domain Trust script to work with Windows 11 yet?


I was very confused for a minute. Meet @member

@member might be able to provide an answer though


LOL. Yeah, different Jeff Johnson 🙂


Follow


Just making sure that we are all aligned here.

Jeff, you are talking about this script from our VDI/DaaS action library? https://www.controlup.com/script-library-posts/repair-machine-domain-trust-relationship/

What is the error you are getting if you run it on Windows 11?

Eugene, have you tested it (without the parameter stuff from VDI/DaaS) and what are you seeing?

FYI this is the source of the original solution https://thinkpowershell.com/fix-trust-relationship-workstation-primary-domain-failed/

The used cmdlets should all work with Windows 11, so before we start guessing, it would be good to understand what issue you are experiencing


Test-ComputerSecureChannel -Repair certainly works ok for me manually in Windows 11


@member does the command manually work for you and resolve the issue

Also tagging @member since he might have some experience with it (although the original script bits were from someone else)


I’m on Win 10. The Repair machine-domain trust relationship reported no issues to repair. A reboot fixed it. i tried to keep one in the error state, but I see it got rebooted.


Will this also work on physical devices ?


The PowerShell cmdlet it uses, namely Test-ComputerSecureChannel, will work on any Windows domain joined machine, as long as domain credentials are available for a user that can join a machine to a domain

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/test-computersecurechannel?view=powershell-5.1

Continue reading and comment on the thread ‘Updating the Repair Domain Trust Script for Windows 11 Compatibility’.  Not a member? Join Here!


Categories: All Archives, ControlUp Scripts & Triggers
Topics: Credentials, DaaS, Microsoft, Microsoft Windows, PowerShell, Reporting, Scripts, VDI

Ask Us Anything, Connect, Learn, and Grow with the ControlUp Community!

Login to the ControlUp Community to ask us anything, stay up-to-date on what’s new and coming soon and meet other like-minded techies like you.

Not already a member? Join Today!

Primary Sidebar

ControlUp Academy

Enroll in ControlUp Academy for expert-led technical training, equipping you with skills to effectively deploy, manage, and grow your ControlUp investment.

Learn here >

Rotating Images

Hidden Gem from our Community on Slack!

ControlUp Betas - What's Coming Next?
NEW ControlUp Features - Stay Up-to-Date!
ControlUp Scripts - Scripting, Zero to Hero
Latest KB Articles - Be the First to Learn
Did you Know - with Sivan Kroitoru
Practical Perspectives Technical Use Case Training

Video Tutorials Library

Visit our technical how-to videos, offering step-by-step tutorials on advanced features, troubleshooting, and best practices.

Watch here >

ControlUp Blog

Check out the ControlUp blog for expert advice and in-depth analysis.

Read here >

ControlUp Script Library

Visit the ControlUp technical script library, which offers a multitude of pre-built scripts and custom actions for your monitoring and troubleshooting requirements.

See here >

ControlUp Support

Visit the ControlUp support home and to delve deeper into ControlUp solutions.

Browse here >

Download ControlUp RealTime DX

Start with ControlUp for real-time end-user environment insights, swift troubleshooting, and unprecedented performance optimization. Download now.

Download here >

Footer

      

ControlUp Community
Of Techie, By Techie, For Techie!

Terms of Use | Privacy Policy | Security
Dive Deeper, Learn more at ControlUp.com

  • facebook
  • twitter
  • youtube
  • linkedin

© 2023–2025 ControlUp Technologies LTD, All Rights Reserved.

We use cookies to ensure that we give you the best experience on our website. by continuing to use this site you agree to our Cookie policy..