0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Windows Serverをドメインに参加させる

Posted at

こんにちは。
株式会社クラスアクト インフラストラクチャ事業部の大塚です。

前回、EC2でデプロイしたWindows ServerにAD環境を構築しました。
このドメインに別のWindows Serverを参加させて、ADユーザでアクセスできるようにしたいと思います。

前回の記事は以下となります。

構築

事前確認

名前解決が出来るか

ADのドメインコントローラにRDPし、Server Manager > Tools からDNSを選択します。
Untitled (68).png
ドメイン参加をする為に、参加する側のサーバはドメイン名の名前解決を行う必要があります。DNS前方参照ゾーンが存在していないと名前解決を行うことが出来ず、ドメイン参加が出来ないトラブルが発生してしまいます。前方参照ゾーンがあるかを確認する方法としてServer Managerを開き、toolsのDNSを押下。その後ADサーバを選択して前方参照ゾーンディレクトリ配下にファイルが存在しているかでAD作成時に前方参照ゾーンが作成されたかを確認出来ます。
以下のようにあれば問題ありません。
Untitled (69).png
CMDを開きnslookupコマンドで名前解決をしてみます。IPアドレスが返ってくればOKです。
Untitled (70).png

C:\Users\user01>nslookup ad.example.com
Server:  localhost
Address:  ::1

Name:    ad.example.com
Address:  192.168.1.29

ドメイン参加するWindows Serverをデプロイする

以下の構成でデプロイしました。
インスタンスタイプはt2.microを選択します。SGはドメインコントローラと同じSGをアタッチします。
screencapture-ap-northeast-1-console-aws-amazon-ec2-home-2024-07-20-17_53_26 (1).png

ドメイン参加サーバの設定入れこみ

DNSサーバの指定

ドメインに参加するサーバの名前解決問い合わせ先をドメインコントローラに設定します。
RDP接続しControl Panel\Network and Internet\Network Connectionsでアダプターをダブルクリックします。
Untitled (71).png
Propertiesを押下します。
Untitled (72).png
Internet Protocol Version4を選択し、Propertiesを押下します。
Untitled (73).png
Preferred DNS ServerにドメインコントローラのIPアドレスを入力してOKボタンを押下します。
Untitled (74).png
CMDを開き、nslookupを実行。ad.example.comが名前解決できることを確認します。
Untitled (75).png

C:\Users\Administrator>nslookup ad.example.com
Server:  ip-192-168-1-29.ap-northeast-1.compute.internal
Address:  192.168.1.29

Name:    ad.example.com
Address:  192.168.1.29

ドメイン参加する

Server Managerを起動します。
Local ServerのComputer nameをクリックします。
Untitled (76).png
Computer NameタブのChangeボタンを押下します。
Untitled (77).png
Member ofの部分でDomainを選択し、ad.example.comと入力しOKボタンを押下します。
Untitled (78).png
ユーザ名とパスワードを求められます。
ADユーザでAdministrator権限を持っているuser01を使用してOKボタンを押下します。
Untitled (79).png
認証が成功すると以下のようなポップアップが表示されます。この後再起動が実行されます。
Untitled (80).png
このタイミングでドメインコントローラを確認すると、ドメイン参加したサーバが表示されていることがわかります。
Untitled (81).png

ドメイン参加したサーバにADユーザでRDP出来るようにする

改めてドメイン参加予定のサーバにRDPします。
System Manager > Local ServerびComputer nameを選択して
System PropertiesからRemote Desktop Usersを選択します。
Untitled (82).png
user01を登録します。この状態でOKを押下します。
Untitled (83).png

接続確認

ローカルPCからドメイン参加したサーバにRDPを試みます。
ADユーザのユーザ名とパスワードを入力して接続します。
Untitled (84).png
以下のように接続出来ればOKです。
Untitled (85).png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?