OneDriveのマウント » 履歴 » バージョン 9
バージョン 8 (蒲池 晃, 2020/10/19 08:02) → バージョン 9/10 (蒲池 晃, 2020/11/26 02:26)
h1. OneDriveのマウント
# IEの信頼済サイトに365ポータル関連を追加する。 → "download":https://redmine.ait-partner.co.jp/attachments/download/157/onedrive.bat
# IEにて http://portal.office.com/ にログイン
# 右のワンドライブを選択
# 共有したいフォルダーを選択
# 右上の並び替えの横にある「表示オプションの切り替え」から「エクスプローラーで表示」を選択する
# 画面が切り替わりフォルダー階層のアドレスバーをコピーする
# エクスプローラーのPCを右クリック
# 「ネットワークドライブの割り当て」を選択
# フォルダーの空白に6でコピーしたリンクを貼り付け
# 右下の完了を選択
(OneDrive.batの中身)
<pre>
@echo off
set RegRoot=HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains
reg add "%RegRoot%\sharepointonline.com\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\officeapps.live.com\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\cdn.office.net\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\osi.office.net\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\microsoft.com\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\microsoftonline.com\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\windows.net\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\sharepoint.com\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\akamaihd.net\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\azure-dns.com\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\azure-dns.net\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\azure-dns.org\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\azure-dns.info\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\office365.com\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\portal.office.com\www" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\outlook.office365.com\www" /v https /t REG_DWORD /d 2 /f
</pre>
さらに追加で各社のOneDriveのURLを入れる必要がある
(xxxxxxx部分は各社の個別名)
<pre>
reg add "%RegRoot%\xxxxxxxxxx-my.sharepoint.com" /v https /t REG_DWORD /d 2 /f
</pre>
</pre>
# IEの信頼済サイトに365ポータル関連を追加する。 → "download":https://redmine.ait-partner.co.jp/attachments/download/157/onedrive.bat
# IEにて http://portal.office.com/ にログイン
# 右のワンドライブを選択
# 共有したいフォルダーを選択
# 右上の並び替えの横にある「表示オプションの切り替え」から「エクスプローラーで表示」を選択する
# 画面が切り替わりフォルダー階層のアドレスバーをコピーする
# エクスプローラーのPCを右クリック
# 「ネットワークドライブの割り当て」を選択
# フォルダーの空白に6でコピーしたリンクを貼り付け
# 右下の完了を選択
(OneDrive.batの中身)
<pre>
@echo off
set RegRoot=HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains
reg add "%RegRoot%\sharepointonline.com\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\officeapps.live.com\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\cdn.office.net\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\osi.office.net\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\microsoft.com\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\microsoftonline.com\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\windows.net\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\sharepoint.com\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\akamaihd.net\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\azure-dns.com\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\azure-dns.net\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\azure-dns.org\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\azure-dns.info\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\office365.com\*" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\portal.office.com\www" /v https /t REG_DWORD /d 2 /f
reg add "%RegRoot%\outlook.office365.com\www" /v https /t REG_DWORD /d 2 /f
</pre>
さらに追加で各社のOneDriveのURLを入れる必要がある
(xxxxxxx部分は各社の個別名)
<pre>
reg add "%RegRoot%\xxxxxxxxxx-my.sharepoint.com" /v https /t REG_DWORD /d 2 /f
</pre>
</pre>