Crea la VM en el proyecto que aloja tu dominio de Microsoft AD administrado. Si tu dominio de Microsoft AD administrado tiene VPC compartida como una red autorizada, también como alternativa, puedes crear la VM en cualquiera de los proyectos de servicio de VPC compartida.
Crea la VM en una red de VPC que hayas vinculado con el dominio de Microsoft AD administrado.
El nombre de usuario y la contraseña de una cuenta que tiene permisos para unir una VM al dominio. De forma predeterminada, los miembros del grupo Cloud Service Domain Join Accounts tienen estos permisos. Para obtener más información sobre los grupos predeterminados que crea Microsoft AD administrado, consulta Grupos.
Puedes unir la VM de Windows al dominio de Microsoft AD administrado con la IU de Windows o PowerShell.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 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)."]]