Skip to content

Instantly share code, notes, and snippets.

@martezr
Created February 25, 2020 20:59
Show Gist options
  • Save martezr/464541f247534ae7880feaca90ed43fc to your computer and use it in GitHub Desktop.
Save martezr/464541f247534ae7880feaca90ed43fc to your computer and use it in GitHub Desktop.
Join a Windows Workshop machine to the domain
# 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