# Showing false in "isdomainjoined" when running Get-DHCPServerSetting

**URL:** <https://forums.powershell.org/t/showing-false-in-isdomainjoined-when-running-get-dhcpserversetting/17150>\
**Category:** PowerShell Help\
**Created:** [July 23, 2021, 8:47pm UTC](https://forums.powershell.org/t/showing-false-in-isdomainjoined-when-running-get-dhcpserversetting/17150 "2021-07-23T20:47:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adelaide-guy](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@adelaide-guy](https://forums.powershell.org/u/adelaide-guy)\
**Post date:** [July 23, 2021, 8:47pm UTC](https://forums.powershell.org/t/showing-false-in-isdomainjoined-when-running-get-dhcpserversetting/17150/1 "2021-07-23T20:47:10Z")

</div>

HI, Everyone.

Can I ask your guidance on what I did wrong (I am still new to PowerShell and still trying to learn. Please be patient with me). I have configured a server2 as additional DHCP server. I have join the machine into domain. I have confirmed that it was able to successfully join the domain by running Get-ComputerInfo.

`[server2.homelabtest.lan]: PS C:\Users\administrator.homelabtest\Documents> Get-ComputerInfo | Select-Object -Property CSName,CSDomain,CSDomainRole`

```auto
CsName CsDomain CsDomainRole
------ -------- ------------
SERVER2 homelabtest.lan MemberServer

```

But if I ran Get-DHCPServerSetting it says false on isdomainjoined:

```auto
[server2.homelabtest.lan]: PS C:\Users\administrator.homelabtest\Documents> Get-DhcpServerSetting

IsDomainJoined : False
IsAuthorized : False
DynamicBootp : True
RestoreStatus : False
ConflictDetectionAttempts : 0
NpsUnreachableAction : Full
NapEnabled : False
ActivatePolicies : True

```

thank you in advance for any help.

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [July 23, 2021, 9:34pm UTC](https://forums.powershell.org/t/showing-false-in-isdomainjoined-when-running-get-dhcpserversetting/17150/2 "2021-07-23T21:34:07Z")

</div>

Please wheny ou post code, console output, error messages or sample data format it as code using the _preformatted text_ button ( **\</\>** ).  
Thanks in advance.

The status you get for IsDomainJoined is not about the Windows OS it is about the DHCP service/server. You need to authorize it in your domain.

I’m actually not experienced with that topic as well. But here are some links I found as a starting point:

> **[\[MS-DHCPE\]: Windows DHCP Server Authorization in Domain Joined Scenario](https://docs.microsoft.com/de-de/openspecs/windows_protocols/ms-dhcpe/56f8870b-a7c1-4db1-8a86-f69079fe5077)**
>
> A domain joined Windows server with DHCP server deployed can validate itself. Authorization mechanism of a DHCP server in a domain joined

> **[Authorize DHCP Server 2016 in Active Directory - Dimitris Tonias](https://www.dtonias.com/authorize-dhcp-server-2016/)**
>
> How to authorize or unauthorize a DHCP Server running Windows Server 2016 in Active Directory using the GUI, the Netsh command, and PowerShell.

---

<div class="post-metadata">

**Author:** ![adelaide-guy](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@adelaide-guy](https://forums.powershell.org/u/adelaide-guy)\
**Post date:** [July 23, 2021, 9:53pm UTC](https://forums.powershell.org/t/showing-false-in-isdomainjoined-when-running-get-dhcpserversetting/17150/3 "2021-07-23T21:53:09Z")

</div>

Hi, Olaf.

My apologies for not using the right format. I have modified my initial post.

Thank you for the links, I will take a look on it.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:23pm UTC](https://forums.powershell.org/t/showing-false-in-isdomainjoined-when-running-get-dhcpserversetting/17150/4 "2024-05-16T20:23:49Z")

</div>

Closed on May 16, 2024, 8:23pm UTC


