[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],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)."]]