Domain Join Dsc
This script calls the dsc what is in these script.
Domain join dsc. These dsc resources allow you to perform computer management tasks such as renaming the computer joining a domain and scheduling tasks as well as configuring items such as virtual memory event logs time zones and power settings. The central repository of powershell is known as powershell gallery. This includes promoting a member server to a domain controller and creating users groups and containers.
This command adds the local computer to the domain01 domain by using the domain01 dc01 domain controller. Configuration iisinstall import dscresource module xdscdomainjoin domain credentials to be given here secdomainpasswd convertto securestring password asplaintext force mydomaincreds new object system management automation pscredential domain account secdomainpasswd domain. Step 2 making our user a local administrator.
Xdscdomainjoin is stripped version of the same. Xcomputermanagement is the dsc module which can be used to make a computer domain joined. This dsc resource allows you to rename a computer and add it to a domain or workgroup.
This can be particularly helpful when you want to set up a test domain quickly. This module contains the xcomputer resource. Dsc resources for for configuration of a windows computer.
This post step 1 getting started renaming our machine and joining a workgroup. Online peer support for online peer support join the official scripting guys forum. Step 1 5 creating our first local user.
Add computer domainname domain01 server domain01 dc01 passthru verbose. Another approach to getting a vm into a domain is to leverage desired state configuration dsc via azure automation. With the help of powershell dsc you can automate the creation of an active directory domain.