OneNote の展開ガイド
重要
OneNote for Windows 10 は、2025 年 10 月にサポートを終了します。 すべてのエンタープライズのお客様は、OneNote for Windows 10 から Windows 上の OneNote に切り替え、Microsoft Store と Microsoft 365 サブスクリプションから入手することをお勧めします。 Windows 上の OneNote では、新しい機能と更新プログラムが提供され、グループ ポリシーを使用してユーザー設定をカスタマイズできます。
OneNote は、Microsoft 365 Apps、Office LTSC 2021、または Office 2019 を展開するときに、Word、Excel、PowerPointなどの他の Office アプリと共に含まれます。 Office の新しいインストールに OneNote を含めるために必要なその他の手順はありません。 ただし、展開する前に必ず展開設定を確認してください。たとえば、Configuration Manager (現在のブランチ) や Microsoft Intune でウィザードを使用する場合などです。
Office 展開ツールまたは Microsoft Configuration Manager などのエンタープライズ展開ソフトウェアを使用して、組織内に Office を展開するときに OneNote を含めたり除外したりします。
Office の既存のインストールに OneNote を追加するには
デバイスに Office をインストールしても OneNote が見つからない場合は、Office 展開ツールと次の configuration.xml ファイルを使用して OneNote を追加します。
<Configuration>
<Add>
<Product ID="OneNoteFreeRetail">
<Language ID="MatchInstalled"/>
</Product>
</Add>
</Configuration>
OneNote の無料バージョンを展開すると、ユーザーが初めて OneNote を開くと、デバイスに既にインストールされている Office バージョンに合わせてライセンスが自動的に更新されます。
注:
- Office LTSC Professional Plus 2021 や Office Standard 2019 など、ボリューム ライセンスバージョンの Office では、OneNoteFreeRetail の使用はサポートされていません。 これらのバージョンの Office に OneNote を再度追加するには、オンライン修復を実行します。
- OneNote の freemium バージョンを展開する場合は、[ コントロール パネル>プログラム>プログラムと機能] に移動すると、Microsoft OneNote Home と Student 2016 というスタンドアロン エントリとして OneNote が表示されます。
OneNote をインストールから除外するには
次の表に示すように、使用している展開方法に応じて、Office でのインストールから OneNote を除外する方法はさまざまです。
メソッド | 手順 |
---|---|
Office 展開ツール |
ExcludeApp 要素は、configuration.xml ファイルで使用できます。 Office カスタマイズ ツールを使用して、configuration.xml ファイルを作成することをお勧めします。 |
Microsoft Configuration Manager (現在のブランチ) | Office 365 クライアント インストール ウィザードでは、Office 設定を構成するときに OneNote を オフ の位置に設定できます。 |
Microsoft Intune | [ アプリ スイートの構成] ページで、[ Office アプリの選択 ] ドロップダウン リストの [OneNote] のチェック ボックスをオフにすることができます。 |
ただし、ユーザーが Office 365 ポータルから自分用に Office をインストールできるようにする場合は、OneNote をインストールから除外する方法はありません。
OneNote for Windows 10 の移行ガイダンス
注:
中断のないサービスとワークフローを確保するために、2025 年 10 月の OneNote for Windows 10 のサポート終了日より前に、組織が Windows 上の OneNote に移行することを強くお勧めします。
このセクションでは、移行ポリシーを開発し、移行をスムーズに実行するのに役立つ詳細なガイドを提供します。
移行ポリシーの開発: Windows 上の OneNote への移行を成功させるために、組織は次の作業を行う必要があります。
移行スクリプトをカスタマイズします。
このサンプル スクリプトは、組織のニーズに合わせて使用します。
#############################################
###### OneNote for Windows 10 ############
###### External Migration Script v5 ######
#############################################
## Creates backupFolder and writes log from script to UWPMigrationResult.log File and Console ##
function writeLogsToFileAndConsole {
Param ([string]$logstring)
$timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
$logstringWithTimestamp = "[$timestamp] $logstring"
$backupFolder = [System.Environment]::GetFolderPath('LocalApplicationData') + "\Microsoft\OneNote\16.0\Backup"
$outputFile = $backupFolder + "\UWPMigrationResult.log"
if (-not (Test-Path $backupFolder)) {
New-Item -Path $backupFolder -ItemType Directory
}
if (-not (Test-Path $outputFile)) {
New-Item -Path $outputFile -ItemType File
}
Add-content $outputFile -value "$logstringWithTimestamp"
Write-Host "$logstringWithTimestamp"
}
## Checks if OneNote UWP is installed and if app data exists, writes version to log file and console ##
function checkOneNoteUWPInstall {
$folderPath = "$env:LOCALAPPDATA\Packages\Microsoft.Office.OneNote_8wekyb3d8bbwe\LocalState\AppData\Local\OneNote"
$uwpApp = Get-AppxPackage | Where-Object {$_.Name -eq "Microsoft.Office.OneNote"}
if ($null -ne $uwpApp) {
$uwpVersion = $uwpApp.Version
$uwpVersionObject = [System.Version]$uwpVersion
writeLogsToFileAndConsole "UWP OneNote app version: $uwpVersion"
} else {
writeLogsToFileAndConsole "OneNote UWP App is not installed"
exit
}
if (Test-Path $folderPath) {
Write-Host "AppData folder detected"
} else {
($null -ne $uwpApp)
$uwpApp | Remove-AppxPackage
writeLogsToFileAndConsole "AppData folder does not exist and OneNote UWP will now be uninstalled"
exit
}
}
## Checks if OneNote Win32 is installed by checking the existence of the executable file and checks the version ##
function checkOneNoteWin32Install {
$oneNotePath = Join-Path $env:ProgramFiles "Microsoft Office\root\Office16\ONENOTE.EXE"
$registryPath = "HKLM:\SOFTWARE\Microsoft\Office\ClickToRun\Configuration"
$versionValueName = "ClientVersionToReport"
$registry = Get-ItemProperty -Path $registryPath
if (Test-Path $oneNotePath) {
if ($registry.PSObject.Properties[$versionValueName]) {
$versionValue = $registry.$versionValueName
writeLogsToFileAndConsole "OneNote Win32 Version Value: $versionValue is installed at path $oneNotePath"
} else {
writeLogsToFileAndConsole "OneNote Win32 is not installed"
exit
}
}
## Checks for backup folder path
$registryPath = "HKCU:\SOFTWARE\Microsoft\Office\16.0\OneNote\Options\Paths"
$backupValueName = "BackupFolderPath"
if (Test-Path $registryPath) {
$registry = Get-ItemProperty -Path $registryPath
if ($registry.PSObject.Properties[$backupValueName]) {
$backupValue = $registry.$backupValueName
writeLogsToFileAndConsole "OneNote Win32 Backup Path Value: $backupValue"
}
}
}
## Updates OneNote for Windows 10 to the latest version available ##
function updateUWPVersion {
$uwpApp = Get-AppxPackage | Where-Object {$_.Name -eq "Microsoft.Office.OneNote"}
if ($null -ne $uwpApp) {
$uwpVersion = $uwpApp.Version
$uwpVersionObject = [System.Version]$uwpVersion
$updatedVersion = "16001.14326.22008.0"
$updatedVersionObject = [System.Version]$updatedVersion
$unsupportedVersion = "16001.14327.10000.0"
$unsupportedVersionObject = [System.Version]$unsupportedVersion
if ($uwpVersionObject -ge $unsupportedVersionObject)
{
writeLogsToFileAndConsole "Unsupported version of OneNote UWP app. Please check the Microsoft Store for updates"
exit
}
if ($uwpVersionObject -lt $updatedVersionObject)
{
writeLogsToFileAndConsole "You must upgrade OneNote UWP to a version higher than 16.0.14326.21802. Please check the Microsoft Store"
exit
}
else
{
writeLogsToFileAndConsole "OneNote UWP will backup and uninstall"
}
}
else
{
writeLogsToFileAndConsole "No OneNote UWP detected therefore no need for migration"
exit
}
}
## Terminates the OneNote for Windows 10 app before executing the rest of the migration script ##
function killProcess {
if (Get-Process -Name "OneNoteIm" -ErrorAction SilentlyContinue)
{
try
{
$uwpProcess = Get-Process -Name "OneNoteIm"
Stop-Process -Id $uwpProcess.Id -Force
Start-Sleep -Seconds 10
}
catch
{
writeLogsToFileAndConsole "An error occurred when killing the current OneNote UWP process: $($_.Exception.GetType().FullName)"
writeLogsToFileAndConsole "$($_.Exception.Message)"
exit
}
writeLogsToFileAndConsole "OneNote UWP process killed"
}
}
function launchBackUp {
try
{
Start-Process "onenote-uwp://backup:"
Start-Sleep -Seconds 60
writeLogsToFileAndConsole "OneNote UWP backup initiated"
}
catch
{
writeLogsToFileAndConsole "An error occurred when starting the backup: $($_.Exception.GetType().FullName)"
writeLogsToFileAndConsole "$($_.Exception.Message)"
exit
}
writeLogsToFileAndConsole "OneNote UWP backup in progress"
}
## Parses the results in the json files to validate that the backup was successful ##
function parseJson {
try
{
$localAppDataPath = [System.Environment]::GetFolderPath('LocalApplicationData')
$jsonPath = "$localAppDataPath\Packages\Microsoft.Office.OneNote_8wekyb3d8bbwe\LocalState\AppData\Local\OneNote\16.0\UWPBackUpStatus.json"
if(!(test-path $jsonPath)){
writeLogsToFileAndConsole "Backup Json file path is not valid"
exit
}
$backupJsonFileContent = Get-Content -Path $jsonPath -Raw | ConvertFrom-Json
$status = $backupJsonFileContent."UWP Backup Status"
if ($status -eq "Completed") {
$jsonPath2 = "$localAppDataPath\Packages\Microsoft.Office.OneNote_8wekyb3d8bbwe\LocalState\AppData\Local\OneNote\16.0\UWPSyncStatus.json"
if(test-path $jsonPath2)
{
$syncStatusJsonContent = Get-Content -Raw -Path $jsonPath2
$syncStatusJsonObject = COnvertFrom-Json $syncStatusJsonContent
foreach ($key in $syncStatusJsonObject.PSObject.Properties)
{
$value = $syncStatusJsonObject.$($key.Name)
if ($value.StartsWith("Contains pending outbounding changes: true,"))
{
if ($backupJsonFileContent."Number of sections Backed up" -eq 0)
{
writeLogsToFileAndConsole "No error occurred when backing up but outbounding changes were not backed up successfully"
exit
}
else
{
break
}
}
}
}
writeLogsToFileAndConsole "OneNote UWP backup is completed and status is saved"
}
elseif ($status -eq "")
{
writeLogsToFileAndConsole "$status"
writeLogsToFileAndConsole "No error occurred but backup did not finish. We cannot continue migration. Consider increasing the Start-Sleep time in line 130 and rerun the script"
exit
}
else
{
writeLogsToFileAndConsole "No error occurred but backup status is $status. We cannot continue migration. Consider increasing the Start-Sleep time in line 130 and rerun the script"
exit
}
}
catch
{
writeLogsToFileAndConsole "An error occurred when finishing the backup: $($_.Exception.GetType().FullName)"
writeLogsToFileAndConsole "$($_.Exception.Message)"
exit
}
}
## Copies the backup files to the local app data folder ##
function moveBackup {
try
{
$localAppDataPath = [System.Environment]::GetFolderPath('LocalApplicationData')
$sourcePath = "$localAppDataPath\Packages\Microsoft.Office.OneNote_8wekyb3d8bbwe\LocalState\AppData\Local\OneNote\16.0\BackUp\"
$destinationPath = [System.Environment]::GetFolderPath('LocalApplicationData') + "\Microsoft\OneNote\16.0\Backup\"
Copy-Item -Path $sourcePath\* -Destination $destinationPath -Recurse -Force
$sourcePath = "$localAppDataPath\Packages\Microsoft.Office.OneNote_8wekyb3d8bbwe\LocalState\AppData\Local\OneNote\16.0"
$fileExtensions = "*.json", "*.txt"
foreach ($fileExtension in $fileExtensions)
{
$files = Get-ChildItem -Path $sourcePath -Filter $fileExtension
foreach ($file in $files) {
Copy-Item -Path $file.FullName -Destination $destinationPath -Force
}
}
}
catch
{
writeLogsToFileAndConsole "An error occurred when moving the backup files: $($_.Exception.GetType().FullName)"
writeLogsToFileAndConsole "$($_.Exception.Message)"
exit
}
writeLogsToFileAndConsole "Backup files copied successfully from $sourcePath to $destinationPath"
}
function uninstallUWP {
$uwpApp = Get-AppxPackage | Where-Object {$_.Name -eq "Microsoft.Office.OneNote"}
if ($null -ne $uwpApp) {
$uwpApp | Remove-AppxPackage
writeLogsToFileAndConsole "OneNote UWP version uninstalled"
}
}
function MainRoutine {
checkOneNoteWin32Install
checkOneNoteUWPInstall
updateUWPVersion
launchBackUp
killProcess
parseJson
moveBackup
uninstallUWP
}
## Executes the main routine ##
MainRoutine
スクリプトで次の関数が実行されていることを確認します。
ユーザー デバイスに OneNote を Windows にインストールします。 詳細については、「デプロイ ガイダンス」セクションを参照してください。
Windows 10 用 OneNote を最新ビルド (最小ビルド 16001.14326.21802.0) に更新して、同期されていないノートの移行中にデータが失われるのを防ぐ重要な機能を組み込みます。
Windows 10 のすべての OneNote プロセスを終了します。
onenote-cmd://backup:
コマンドを使用して、同期されていないノートブックをユーザーのバックアップ フォルダーにバックアップします。- バックアップは
C:\temp\OneNoteMigration
に保存されますが、組織のニーズに合わせてパスを自由に編集できます。 - 各バックアップでは、このパス内に同期されていないセクションを含むノートブックごとに対応するフォルダーが作成されます。
- バックアップは
UWPBackUpStatus.json
を解析するバックアップが成功したことを検証します。- バックアップが失敗した状態でアンインストールすると、データが失われる可能性があります。
OneNote for Windows 10 をアンインストールします。
- OneNote for Windows 10 がデバイスベースではなくユーザーベースでアンインストールされていることを確認します。 このプロセスは、共有デバイスがすべてのアカウントに対して同期されていないメモを削除するシナリオを軽減するのに役立ちます。
移行されたノートへのアクセス
移行後、ユーザーは次の方法でノートを取得できます。
- Windows アプリケーションで新しい OneNote を 開きます。
- 自分のアカウントにサインインします。
- ノートブックを開きます。
メモがない場合は、前の手順で作成したバックアップ フォルダーを確認します。
Windows 上の OneNote を使用してバックアップを確認するには:
- [ファイル] -> [バックアップを開く] に移動します。>バックアップ ファイル のパスに移動します。
トラブルシューティング
バックアップと同期の状態の詳細については、ユーザーのバックアップ フォルダー内の
UWPBackupStatus.json
ファイルとUWPSyncStatus.json
ファイルを確認します。移行中に発生したエラーについては、前に生成したバックアップにあるログ ファイルを参照してください (手順 1.d)。
onenote-cmd://backup:
コマンドが失敗した場合:
- OneNote for Windows 10 アプリが、
onenote-cmd
プロトコルにリンクされている既定のアプリであることを確認します。 - 関連するサポート記事を参照して、OneNote for Windows 10 への正しいプロトコルの添付ファイルを確認してください。
注意
オンラインで見つかったコマンドを使用する場合は注意してください。 制御された環境でコマンドを組織全体に展開する前に、コマンドを常にテストして、Remove-AppxPackage コマンドの結果など、意図しない結果を避けます。
その他のサポートや問い合わせは、Microsoft サポートにお問い合わせください。
OneNote の展開に関する追加情報
OneNote トレーニング リソース
ユーザーが OneNote のユーザー インターフェイスと機能に移行できるように、 無料で共有可能な eBook を提供しています。
OneNote の設定を構成する
グループ ポリシーを使用して、ユーザーの特定の OneNote 設定を構成できます。 グループ ポリシーを使用するには、Microsoft ダウンロード センターから Office 用の最新の管理用テンプレート ファイル (ADMX/ADML) をダウンロードし、Active Directory Domain Services (AD DS) を使用してポリシー設定を実装します。
注:
- グループ ポリシーでは、OneNote を持つデバイスを Active Directory ドメインに参加させる必要があります。
- これらの同じポリシー設定のほとんどは、デバイスをドメインに参加させる必要のない Cloud Policy を使用して適用できます。
- グループ ポリシーは、Microsoft 365 Apps for Business や OneNote for Windows 10 では使用できません。
- クラウド ポリシーは、Microsoft 365 Apps for enterprise でのみ使用できます。
サポートされている言語
OneNote と OneNote for Windows 10 の両方が同じ言語のほとんどで使用できる一方で、いくつかの違いがあります。 サポートされている言語の一覧については、OneNote、OneNote for Windows 10 をご覧ください。
その他のプラットフォーム
OneNote for Mac、iPad、iPhone、Android、および Web ブラウザー用のバージョンもあります。 詳細については、「OneNote バージョンの違い」を参照してください。