PrepAway - Latest Free Exam Questions & Answers

What two commands should you run?

HOTSPOT
Your network contains an Active Directory forest name fabrikam.com. The forest contains
two domains named fabrikam.com and contoso.com. All servers run Windows Server 2012 R2.
The forest contains a DHCP server named Server1 and a DNS server named Server2.

You need to recommend a solution to ensure that any computers that are neither members
of contoso.com nor fabrikam.com receive a DNS suffix of guest.fabrikam.com.
What two commands should you run? To answer, select the appropriate options in the answer area.

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:

5 Comments on “What two commands should you run?

  1. James L says:

    The answer is almost correct

    Here is an excellent link to show how this is done via the DHCP Console
    http://blogs.technet.com/b/teamdhcp/archive/2014/01/26/windows-server-2012-r2-enhancing-dhcp-policies-and-dns-registrations-in-dhcp-server.aspx
    see instructions under “Registering foreign clients using a guest DNS suffix”

    Most wizards now allow the option to view the powershell script behind any configuration done using the GUI…. Not the DHCP Wizards!!! Note to developers !!!

    So I reverse engineered the scenario and worked out the powershell commands to get the exact result I wanted when I viewed the properties of the new DHCP policy

    The first command is correct (see link for explanation)
    https://technet.microsoft.com/en-us/library/jj590655(v=wps.630).aspx

    The second command is missing a parameter and fails (-DnsSuffix as below)
    Set-DhcpServerv4DnsSetting -ComputerName Server1.Fabrikam.com -DnsSuffix guest.fabrikam.com -PolicyName ForeignDevices

    https://technet.microsoft.com/en-us/library/jj590722(v=wps.630).aspx

    After running the correct powershell commands in my test lab and viewing the properties of the newly created DHCP Policy and DNS tab I had the exact result as per the question

    Hope that clarifies and helps




    0



    0
  2. Mark says:

    This example creates a server level policy for all foreign clients that are not members of the local domain contoso.com. The policy matches clients that have an FQDN that does not contain the value contoso.com.

    Windows PowerShell
    PS C:\> Add-DhcpServerv4Policy -Name ForeignDevices -Condition OR -Fqdn NE,*.contoso.com

    This example sets DNS update configuration settings for the sever policy ForeignDevices to enable DNS registration of clients under the DNS suffix guestdomain.com. The command specifies the computer, named dhcpserver.contoso.com, that runs the DHCP server service.

    Windows PowerShell
    PS C:\> Set-DhcpServerv4DnsSetting -ComputerName dhcpserver.contoso.com -DnsSuffix guestdomain.com -PolicyName ForeignDevices




    0



    0
  3. OSA says:

    Add-DhcpServerv4Policy -name ForeignDevices -Condition Or -FQDN NE,*.Fabrikam.com,*.contoso.com -ComputerName Server1.fabrikam.com

    Set-DhcpServerv4DnsSetting -ComputerName Server1.fabrikam.com -DnsSuffix guest.fabrikam.com -PolicyName ForeignDevices




    0



    0
  4. 49846 584457I enjoyed reading your pleasant site. I see you offer priceless information. stumbled into this site by chance but Im positive glad I clicked on that link. You undoubtedly answered all of the questions Ive been dying to answer for some time now. Will undoubtedly come back for a lot more of this. 293390




    0



    0

Leave a Reply