![]() ![]() Good to know: you cannot put the account’s password as a plain text here, the command will use a pop-up window where you need to enter the password for the account which was defined after the -Credential parameter. The Add-Computer cmdlet uses the current user by default for the authentication. The Credential parameter specifies the account which has the rights to create computer accounts in the domain. You don’t need to pre-create the computer accounts or move them to the appropriate OU anymore after the server is joined to the domain. This option gives you the possibility to define a specific Organization Unit where the server’s computer account needs to be created. Using the unsecure option, the computer account will have a common password which will be changed after the domain join is complete. When you join a computer to a domain, the computer account is normally created with a unique password. You can send this information to a central database or just put it into your logfile. You can use passthru to get some basic information about the results of the domain join process. Let’s go through the interesting parameters: In Powershell V2 there is a new cmdlet called Add-Computer which has actually more features than the GUI version of domain join. Let’s start with the automatic domain join. What happens if we want our own, customized solution which is probably better than the commercial ones? Then it’s time to write our own post-script tool set, and use these scripts to automate our work. But these tools are usually just trigger some built-in Windows mechanism like sysprep. if you have a vCenter Server, you can use the “ deploy virtual machine from this template” function, which has some built-in tricks like domain join). Of course, if we work for a large one, we probably already have tools to save some time on these post-steps (e.g. And when we’re talking about cloning virtual machines (vmdk / vhd) that’s true for sure. But what about the necessary post steps after the VM and Operating System is ready? For example joining the windows server to any domain automatically? Many companies still do these steps by hand. ![]() In the time of IaaS (Infrastructure as a Service) and cloud computing, provisioning of new servers by one click should not be a problem.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |