{"id":78726,"date":"2026-06-28T13:38:27","date_gmt":"2026-06-28T13:38:27","guid":{"rendered":"http:\/\/bangla.sitestree.com\/?p=78726"},"modified":"2026-06-28T13:38:27","modified_gmt":"2026-06-28T13:38:27","slug":"power-shell-dhcp-server-and-client","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=78726","title":{"rendered":"Power Shell: DHCP Server and Client"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Authorize DHCP server in Active Directory if domain joined<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The lab includes this wording:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Authorize the DHCP server so it can lease addresses in an AD domain environment.<br>If your lab is not domain joined, document that authorization was not applicable and continue only if instructed.<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">The commands included are:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Run on the DHCP server. Replace values as needed.\n$ServerIP = \"192.168.XX.10\"\n$ServerFQDN = \"$env:COMPUTERNAME.powershell.local\"\n\nAdd-DhcpServerInDC -DnsName $ServerFQDN -IPAddress $ServerIP\nGet-DhcpServerInDC\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">the server listed as an <strong>authorized DHCP server<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">verify the server is domain joined:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-CimInstance Win32_ComputerSystem | Select-Object Name, Domain, PartOfDomain\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">And after authorization:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-DhcpServerInDC\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That makes the evidence clearer.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Authorize DHCP server in Active Directory if domain joined. The lab includes this wording: Authorize the DHCP server so it can lease addresses in an AD domain environment.If your lab is not domain joined, document that authorization was not applicable and continue only if instructed. The commands included are: the server listed as an authorized &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=78726\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1981],"tags":[],"class_list":["post-78726","post","type-post","status-publish","format-standard","hentry","category-power-shell","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":78723,"url":"http:\/\/bangla.sitestree.com\/?p=78723","url_meta":{"origin":78726,"position":0},"title":"How to? Disable VirtualBox DHCP for host-only network","author":"Sayed","date":"June 28, 2026","format":false,"excerpt":"Ref: AI Tools, ChatGPT, Similar \u201cDisable VirtualBox DHCP for host-only network\u201d means: Turn off the built-in DHCP server inside VirtualBox, so your Windows Server DHCP service becomes the only DHCP server giving IP addresses to the client VM. Why this matters In your DHCP lab, students are installing and configuring\u2026","rel":"","context":"In &quot;Computer Networks&quot;","block_context":{"text":"Computer Networks","link":"http:\/\/bangla.sitestree.com\/?cat=1978"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2026\/06\/image-7.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2026\/06\/image-7.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2026\/06\/image-7.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2026\/06\/image-7.png?resize=700%2C400 2x"},"classes":[]},{"id":78403,"url":"http:\/\/bangla.sitestree.com\/?p=78403","url_meta":{"origin":78726,"position":1},"title":"How to install a DHCP Server in Ubuntu:","author":"Sayed","date":"August 27, 2025","format":false,"excerpt":"How to install a DHCP Server in Ubuntu: Use these commands and steps in sequence: # Make sure you have an IP address. # If not, please assign an IP address (you can use netplan) # see the next section how to assign an IP address. sudo apt update &&\u2026","rel":"","context":"In &quot;Computer Networks&quot;","block_context":{"text":"Computer Networks","link":"http:\/\/bangla.sitestree.com\/?cat=1978"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-15.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":68592,"url":"http:\/\/bangla.sitestree.com\/?p=68592","url_meta":{"origin":78726,"position":2},"title":"DHCP: How to configure a DHCP server in Linux #74","author":"Author-Check- Article-or-Video","date":"August 5, 2021","format":false,"excerpt":"DHCP: How to configure a DHCP server in Linux Configure a DHCP Server From: http:\/\/sitestree.com\/?p=5039 Categories:74Tags: Post Data:2011-01-12 23:11:49 Shop Online: https:\/\/www.ShopForSoul.com\/ (Big Data, Cloud, Security, Machine Learning): Courses: http:\/\/Training.SitesTree.com In Bengali: http:\/\/Bangla.SaLearningSchool.com http:\/\/SitesTree.com 8112223 Canada Inc.\/JustEtc: http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) Shop Online: https:\/\/www.ShopForSoul.com\/ Medium: https:\/\/medium.com\/@SayedAhmedCanada","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":78382,"url":"http:\/\/bangla.sitestree.com\/?p=78382","url_meta":{"origin":78726,"position":3},"title":"Implement DHCP Server in GNS 3: Experiment with DHCP Protocol with DHCP server and Clients","author":"Sayed","date":"August 23, 2025","format":false,"excerpt":"Experiment with the DHCP Protocol with a DHCP server and Clients Tools Required: GNS 3 VMWare Workstation Pro or Oracle VirtualBox GNS VM Wireshark Steps in GNS 3: Create the LAN segment Configure a DHCP Server From PCs (clients) : request IP address from the DHCP server Check the DHCP\u2026","rel":"","context":"In &quot;Computer Networks&quot;","block_context":{"text":"Computer Networks","link":"http:\/\/bangla.sitestree.com\/?cat=1978"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-5.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":78721,"url":"http:\/\/bangla.sitestree.com\/?p=78721","url_meta":{"origin":78726,"position":4},"title":"DHCP: Powershell Commands","author":"Sayed","date":"June 27, 2026","format":false,"excerpt":"Commands that work in Windows PowerShell 5.1 These DHCP\/networking commands are intended for Windows Server PowerShell: Install-WindowsFeature DHCPInstall-WindowsFeature DHCP -IncludeManagementToolsImport-Module DHCPServerAdd-DhcpServerv4ScopeSet-DhcpServerv4OptionValueGet-DhcpServerv4ScopeGet-DhcpServerv4LeaseGet-DhcpServerInDCAdd-DhcpServerInDCRestart-Service DHCPServerGet-Service DHCPServer Related: Get-NetAdapterGet-NetIPAddressNew-NetIPAddressSet-DnsClientServerAddressGet-DnsClientServerAddressipconfig \/all","rel":"","context":"In &quot;Power Shell&quot;","block_context":{"text":"Power Shell","link":"http:\/\/bangla.sitestree.com\/?cat=1981"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":78389,"url":"http:\/\/bangla.sitestree.com\/?p=78389","url_meta":{"origin":78726,"position":5},"title":"BOOTP vs DHCP Protocol","author":"Sayed","date":"August 23, 2025","format":false,"excerpt":"From AI Tools\/OpenAI\/Internet \" \" FeatureBOOTPDHCPFull nameBootstrap ProtocolDynamic Host Configuration ProtocolOrigin1980s, designed for diskless workstations1990s, developed as an extension of BOOTPAddress assignmentStatic (pre-configured per MAC address)Dynamic, automatic, and renewableLease conceptNo lease; addresses permanentUses timed leases with renewal mechanismConfigurable optionsLimited (IP, gateway, boot file)Extensive (IP, subnet mask, DNS, gateway, etc.)Renewal supportNot\u2026","rel":"","context":"In &quot;Computer Networks&quot;","block_context":{"text":"Computer Networks","link":"http:\/\/bangla.sitestree.com\/?cat=1978"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78726","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=78726"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78726\/revisions"}],"predecessor-version":[{"id":78727,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78726\/revisions\/78727"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=78726"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=78726"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=78726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}