Skip to content

Instantly share code, notes, and snippets.

@nivleshc
Created September 25, 2016 04:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nivleshc/21bfb7fcec244c4b618e1c5377ecdb0f to your computer and use it in GitHub Desktop.
Save nivleshc/21bfb7fcec244c4b618e1c5377ecdb0f to your computer and use it in GitHub Desktop.
This function inside InstallADFS joins the virtual machine to the Active Directory domain
xComputer JoinDomain
{
Name = $MachineName
DomainName = $DomainName
Credential = $DomainCreds # Credential to join to domain
DependsOn = "[xWaitForADDomain]DscForestWait"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment