---
title: "Discussion on \"Fixing Hybrid Azure AD join on a device using PowerShell\" | Hashnode"
description: "Discussion on \"Fixing Hybrid Azure AD join on a device using PowerShell\". Hybrid Azure AD join is a situation when a device is joined to on-prem AD and your Azure AD at the same time.\nLet's say your device fulfills all requirements to be able to make Hybrid AD join:\n\ndevice is enabled  and joined  to your on-prem AD\ndevice..."
url: "https://hashnode.com/posts/fixing-hybrid-azure-ad-join-on-a-device-using-powershell/6167192b18374f2573277e2b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Fixing Hybrid Azure AD join on a device using PowerShell](https://doitpshway.com/fixing-hybrid-azure-ad-join-on-a-device-using-powershell?utm_source=hashnode&utm_medium=feed)

Hybrid Azure AD join is a situation when a device is joined to on-prem AD and your Azure AD at the same time. Let's say your device fulfills all requirements to be able to make Hybrid AD join: device is enabled and joined to your on-prem AD device...

Oct 13, 2021 · 1 min read · doitpshway.com  
Read the article

-   [#powershell](https://hashnode.com/tag/powershell)
-   [#azure](https://hashnode.com/tag/azure)

## Written by

[Ondrej Sebela](https://hashnode.com/@AndrewZtrhgf)

@AndrewZtrhgf · Czech Republic

  
[View profile](https://hashnode.com/@AndrewZtrhgf)

System Administrator that loves PowerShell

I work as System Administrator for more than 15 years now and I love to make my life easier by automating work &amp; personal stuff via PowerShell (even silly things like food recipes list generation).

## Responses 2

Markdown supported · ⌘↵ to post

[Gee](https://hashnode.com/@Swizy)

[Oct 11, 2023](https://hashnode.com/posts/fixing-hybrid-azure-ad-join-on-a-device-using-powershell/6167192b18374f2573277e2b/comment/6526e3e985d4baec97eb95df)

When I run Reset-HybridADJoin.ps1 I get no output at all. No matter where I run it on any machine in the domain. All machines are domain joined and hybrid registered. Any idea what no output is indicative of?

[Ondrej Sebela](https://hashnode.com/@AndrewZtrhgf)

[Oct 12, 2023](https://hashnode.com/posts/fixing-hybrid-azure-ad-join-on-a-device-using-powershell/6167192b18374f2573277e2b/comment/6526e3e985d4baec97eb95df#reply-65279d16162796f09ff8dd01)

That's because you just dot source the function in it. You need to call Reset-HybridADJoin then

[MikeyLikesIt](https://hashnode.com/@MikeyLikesIt)

[Mar 22, 2022](https://hashnode.com/posts/fixing-hybrid-azure-ad-join-on-a-device-using-powershell/6167192b18374f2573277e2b/comment/623a57b0343ee96c27556623)

Awesome script! Wondering if you could help me figure out an enhancement. dsregcmd /join requires Internet access in the context of the system account. Our environment requires proxy authentication, which is usually done by logging into a system and opening a web browser (initiating Internet access in the context of a domain user account via sso). Once authenticated, any account on the machine (including system account) will have Internet access. Is there something we could add to your script that would initiate a connection to a website like Microsoft in the context of a domain user account prior to running the sections of your script that depend on Internet access?

[Ondrej Sebela](https://hashnode.com/@AndrewZtrhgf)

[Mar 23, 2022](https://hashnode.com/posts/fixing-hybrid-azure-ad-join-on-a-device-using-powershell/6167192b18374f2573277e2b/comment/623a57b0343ee96c27556623#reply-623ac91c5757926c4c2b3384)

Thanks 😉

According to your problem, if you want a kind of manual way, you can use something like [debug.to/696/open-url-in-browser-in-powershell](https://debug.to/696/open-url-in-browser-in-powershell)

If you need to authenticate to some Azure etc..Maybe something like "Connect-AzureAD -AccountId (whoami -upn)"?
