Created
February 25, 2020 20:59
-
-
Save martezr/464541f247534ae7880feaca90ed43fc to your computer and use it in GitHub Desktop.
Join a Windows Workshop machine to the domain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find the domain controller IP address and replace the N with the environment number | |
ping winworkNdc.classroom.puppet.com | |
# Fetch the index number for the network interface | |
$adapterid = Get-NetAdapter | Select -expand InterfaceIndex | |
# Set the DC_IP_ADDRESS to the IP address found in from the first command | |
set-DnsClientServerAddress -InterfaceIndex $adapterid -ServerAddresses ('DC_IP_ADDRESS') | |
# Join Active Directory Domain | |
add-computer –domainname "winworkshop.local" -restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment