LoginSignup
3
1

More than 3 years have passed since last update.

【Windows10】AzureADに参加した端末へリモートデスクトップ接続(RDP)する方法

Posted at

はじめに

学習の一環としてAzureAD/Office365の学習をしています。
その中でAzureADに参加した端末(Windows10)へのリモートデスクトップ接続で苦労しました。
こちらのエラーと対処方法について、アウトプットしたいと思います。

今回の環境

ID管理

Azure AD
「Office365 E3」に付属されているもの

仮想マシン

項目 内容
Hypervisor VirtualBox 6.1
OS Windows10 2004
使用PC MacBook Pro

前提

  • AzureADへユーザー追加済み
  • AzureADに参加済み(仮想マシン(Windows10))

※リモートデスクトップについては、こちらのソフトウェアを使用しております。
Microsoft Remote Desktop

スクリーンショット 2020-09-27 22.28.47.png

事象

AzureADへ参加済みの端末(Windows10)へリモートデスクトップができない。

ログインする際に下記エラーで弾かれる。

スクリーンショット 2020-09-27 22.10.06.png

正しいアカウントにてログインを実施したがNG

【正しいアカウント記載方法】
AzureAD¥ユーザー名@ドメイン名

対策

RDPファイルに以下を追加し、リモートデスクトップ実施

enablecredsspsupport:i:0
username:s:.\AzureAd\ユーザー名@ドメイン名

手順

1.RDPファイルをエクスポート

①「Microsoft Remote Desktop」にて「Add PC」実施

「PC name」へ対象マシンのIPアドレスを入力し、「Add」を押下

スクリーンショット 2020-09-27 22.34.54.png

②追加したRDP情報を任意のフォルダへエクスポートする

スクリーンショット 2020-09-27 22.42.29.png

ファイルの名前(例)
192.168.56.120.rdp

2.RDPファイル編集

①RDPファイルをエディタで開き、下記2行を追加

追加する設定
enablecredsspsupport:i:0
username:s:.\AzureAd\ユーザー名@ドメイン名

enablecredsspsupport:i:1が存在する場合は、enablecredsspsupport:i:0に変更

追加例
remoteapplicationappid:s:
wvd endpoint pool:s:
gatewaybrokeringtype:i:0
use redirection server name:i:0
alternate shell:s:
disable themes:i:0
disable cursor setting:i:0
resourceprovider:s:
disable menu anims:i:1
remoteapplicationcmdline:s:
redirected video capture encoding quality:i:0
promptcredentialonce:i:0
audiocapturemode:i:0
prompt for credentials on client:i:1
gatewayhostname:s:
remoteapplicationprogram:s:
gatewayusagemethod:i:2
screen mode id:i:2
use multimon:i:0
authentication level:i:2
desktopwidth:i:0
desktopheight:i:0
redirectsmartcards:i:0
redirectclipboard:i:1
full address:s:192.168.56.120
drivestoredirect:s:
loadbalanceinfo:s:
redirectprinters:i:0
autoreconnection enabled:i:1
session bpp:i:32
administrative session:i:0
authoring tool:s:
remoteapplicationmode:i:0
disable full window drag:i:1
gatewayusername:s:
shell working directory:s:
audiomode:i:0
username:s:
allow font smoothing:i:1
connect to console:i:0
camerastoredirect:s:
disable wallpaper:i:0
gatewayaccesstoken:s:
enablecredsspsupport:i:0 ← 追加
username:s:.\AzureAd\test01@office365.test.com ← 追加



②変更後、ファイルを保存

3.再度リモートデスクトップ接続

①保存したrdpファイルをクリックする。

スクリーンショット 2020-09-27 22.51.29.png

②ログイン情報が聞かれるため、ログイン実施

項目 内容 備考
ユーザー名 ユーザー名@ドメイン名 変更しない
パスワード 対象ユーザーのパスワード 入力する
サインイン先 職場または学校アカウント ←であれば問題なし

スクリーンショット 2020-09-27 22.53.46.png

③リモートデスクトップ接続されたことを確認

スクリーンショット 2020-09-27 22.54.00.png

参考

ハイブリッドクラウドへの道 ~The road to hybrid cloud.~ Vol.2

3
1
1

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
3
1