Crie a VM no projeto que hospeda seu domínio do Microsoft AD
gerenciado. Se o domínio do Managed Microsoft AD tiver a VPC compartilhada como uma rede autorizada, você poderá criar a VM em qualquer um dos projetos de serviço da VPC compartilhada.
Crie a VM em uma rede VPC que você fez peering com
o domínio do Managed Microsoft AD.
O nome de usuário e a senha de uma conta com permissões para associar uma VM ao
domínio. Por padrão, os membros do grupo Cloud Service Domain Join Accounts
têm essas permissões. Para mais informações sobre os grupos padrão
criados pelo Managed Microsoft AD, consulte
Grupos.
É possível associar a VM do Windows ao domínio do Microsoft AD gerenciado usando
a GUI
do Windows
ou o
PowerShell.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-11 UTC."],[],[],null,["# Quickstart: Join a Windows VM manually to a domain\n\nJoin a Windows VM manually to a domain\n======================================\n\nThis document explains how to join a Windows VM to a Managed Microsoft AD\ndomain.\n\nBefore you begin\n----------------\n\nBefore you begin, complete the following tasks:\n\n- [Create a Managed Microsoft AD\n domain](/managed-microsoft-ad/docs/quickstart-create-domain).\n\n- [Create a Windows\n VM](/compute/docs/create-windows-server-vm-instance#create_a_virtual_machine_instance).\n When you create the VM, make sure that you complete the following tasks:\n\n - Create the VM with a [Windows version that Managed Microsoft AD\n supports](/managed-microsoft-ad/docs/os-versions#windows-domain-join).\n - Create the VM in the project that hosts your Managed Microsoft AD domain. If your Managed Microsoft AD domain has [Shared VPC](/vpc/docs/shared-vpc) as an authorized network, you can alternatively create the VM in any of the Shared VPC service projects.\n - Create the VM on a VPC network that you have peered with the Managed Microsoft AD domain.\n\nJoin the Windows VM\n-------------------\n\nBefore you join the Windows VM to the domain, [connect to the Windows\nVM](/compute/docs/instances/connecting-to-windows).\n\nTo join the VM to the domain, you need the following information:\n\n- The [domain name](/managed-microsoft-ad/docs/list-describe-delete-domains#getting_domain_info)\n of your Managed Microsoft AD domain.\n\n- The username and password of an account that has permissions to join a VM to\n the domain. By default, members of the `Cloud Service Domain Join Accounts`\n group have these permissions. For more information about the default groups\n that Managed Microsoft AD creates, see\n [Groups](/managed-microsoft-ad/docs/objects#groups).\n\nYou can join the Windows VM to the Managed Microsoft AD domain either using\nthe [Windows\nGUI](https://docs.microsoft.com/en-us/windows-server/identity/ad-fs/deployment/join-a-computer-to-a-domain)\nor\n[PowerShell](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/add-computer?view=powershell-5.1).\n\nFor information about common issues that you can encounter while joining a VM\nmanually to a domain, see [Unable to join a VM manually to a\ndomain](/managed-microsoft-ad/docs/troubleshooting#manual-domain-join).\n\nWhat's next\n-----------\n\n- [Join a Windows VM automatically to a\n domain](/managed-microsoft-ad/docs/seamless-domain-join-gce).\n\n- [Manage Active Directory objects](/managed-microsoft-ad/docs/manage-active-directory-objects) in your\n Managed Microsoft AD domain.\n\n- [Connect to a Managed Microsoft AD\n domain](/managed-microsoft-ad/docs/connect-to-active-directory-domain).\n\n- Learn about the [delegated administrator\n account](/managed-microsoft-ad/docs/how-to-use-delegated-admin)."]]