Crea la VM nel progetto che ospita il tuo dominio AD Microsoft gestito. Se il tuo dominio Microsoft Active Directory gestito ha VPC condiviso come rete autorizzata, in alternativa puoi creare la VM in uno dei progetti di servizio VPC condiviso.
Crea la VM su una rete VPC con cui hai eseguito il peering con il dominio Microsoft AD gestito.
Il nome utente e la password di un account che dispone delle autorizzazioni per aggiungere una VM al dominio. Per impostazione predefinita, i membri del gruppo Cloud Service Domain Join Accounts
dispongono di queste autorizzazioni. Per ulteriori informazioni sui gruppi predefiniti creati da Managed Microsoft AD, consulta Gruppi.
Puoi unire la VM Windows al dominio Microsoft AD gestito utilizzando la GUI di Windows o PowerShell.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 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)."]]