Erstellen Sie die VM in dem Projekt, in dem Ihre Managed Microsoft AD-Domain gehostet wird. Wenn Ihre Managed Microsoft AD-Domain Shared VPC als autorisiertes Netzwerk hat, können Sie die VM alternativ in einem der Dienstprojekte mit freigegebene VPC erstellen.
Erstellen Sie die VM in einem VPC-Netzwerk, das Sie per Peering mit der Managed Microsoft AD-Domain verbunden haben.
Für das Verbinden der VM mit der Domain benötigen Sie die folgenden Informationen:
Der Domainname Ihrer verwalteten Microsoft AD-Domain.
Der Nutzername und das Passwort für ein Konto mit Berechtigungen zum Verbinden einer VM mit der Domain. Standardmäßig haben Mitglieder der Gruppe Cloud Service Domain Join Accounts diese Berechtigungen. Weitere Informationen zu den Standardgruppen, die von Managed Microsoft AD erstellt werden, finden Sie unter Gruppen.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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)."]]