次の方法で共有


OneNote の展開ガイド

重要

OneNote for Window 10 は 2025 年 10 月にサポートが終了します。すべてのエンタープライズのお客様は、OneNote for Windows 10 から Windows 上の OneNote に切り替え、Microsoft Store と Microsoft 365 サブスクリプションで利用することをお勧めします。 Windows 上の OneNote では、新しい機能と更新プログラムが提供され、グループ ポリシーを使用してユーザー設定をカスタマイズできます。

OneNote は、Microsoft 365 アプリ、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 バージョンを展開すると、[コントロール パネル> プログラムと機能]> に移動すると、OneNote は Microsoft OneNote Home and Student 2016 というスタンドアロン エントリとして表示されます。

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 2024  ######################
######   Migration Script v1.6.4  ###########
#############################################

$localAppDataPath = [System.Environment]::GetFolderPath('LocalApplicationData')
$outputFile = "C:\temp\OneNoteMigration\UWPBackUpResult.log"

function writeLogsToFileAndConsole {
    Param ([string]$logstring)
    Add-content $outputFile -value "$logstring"
    Write-Host "$logstring"
}

## Check if OneNote UWP is installed ##
function checkOneNoteUWPInstalled {
    $uwpApp = Get-AppxPackage | Where-Object {$_.Name -eq "Microsoft.Office.OneNote"}
    if ($null -ne $uwpApp) {
        writeLogsToFileAndConsole "OneNote UWP App is installed"
    }
    else {
        writeLogsToFileAndConsole "OneNote UWP App is not installed"
    }
}

function getWin32RegKeys {
    $registryPath = "HKCU:\SOFTWARE\Microsoft\Office\16.0\OneNote"
    $bootValueName = "FirstBootStatus"

    # check if OneNote Win32 is installed or not
    try
    {
        Start-Process -FilePath "onenote.exe"
        Stop-Process -Name "onenote"
    }
    catch
    {
        Write-Host "You must first install OneNote Win32. Please refer to the deployment guide"
        exit
    }
    $outputDir = "C:\temp\OneNoteMigration\"
    if(!(test-path $outputDir)){new-item -path "C:\temp\OneNoteMigration\" -ItemType directory -name OneNoteUWPBackup|out-null}
    new-item -path $outputDir -name UWPBackupResult.log -Type File -Force

    $registry = Get-ItemProperty -Path $registryPath
    # get FRE status
    if ($registry.PSObject.Properties[$bootValueName]) {
        $bootValue = $registry.$bootValueName
        writeLogsToFileAndConsole "OneNote Win32 FRE Value: $bootValue"
    }

    # get client version and audience data
    $registryPath = "HKLM:\SOFTWARE\Microsoft\Office\ClickToRun\Configuration"
    $versionValueName = "ClientVersionToReport"
    $audienceValueName = "AudienceData"
    $registry = Get-ItemProperty -Path $registryPath
    if ($registry.PSObject.Properties[$versionValueName]) {
        $versionValue = $registry.$versionValueName
        writeLogsToFileAndConsole "OneNote Win32 Version Value: $versionValue"
    }
    if ($registry.PSObject.Properties[$audienceValueName]) {
        $audienceValue = $registry.$audienceValueName
        writeLogsToFileAndConsole "OneNote Win32 Audience Value: $audienceValue"
    }

    # get backup folder path if existed
    $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"
        }
    }
    # get uwp version
    $uwpApp = Get-AppxPackage | Where-Object {$_.Name -eq "Microsoft.Office.OneNote"}
    $uwpVersion = $uwpApp.Version
    $uwpVersionObject = [System.Version]$uwpVersion
    writeLogsToFileAndConsole "UWP OneNote app version: $uwpVersion"
}

## Update 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.21802.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 version up to date"
        }
    }
    else
    {
        writeLogsToFileAndConsole "No OneNote UWP detected. No need for migration"
        exit
    }
}
## Terminate 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
    {
        $OneNoteUWPLaunch = (Get-AppxPackage -Name Microsoft.Office.OneNote).InstallLocation + "/onenoteim.exe"
        Start-Process "onenote-cmd://backup:" -filepath $OneNoteUWPLaunch
        #Start-Process "onenote-cmd://backup:"## used for standard user devices ##
        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 started"
}

## Parse the results in json files to read if backup was successful; if so and there were outbounding changes if files were backed up and migration can continue ##
 function parseJson {
    try
    {
        killProcess

        $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
    }
}

## Copy backed up sections and migration result files to the output folder path determined above ##
 function moveBackup {
    try
    {
        $localAppDataPath = [System.Environment]::GetFolderPath('LocalApplicationData')
        $sourcePath = "$localAppDataPath\Packages\Microsoft.Office.OneNote_8wekyb3d8bbwe\LocalState\AppData\Local\OneNote\16.0\BackUp"
        $destinationPath = "C:\temp\OneNoteMigration\"

        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 {
    checkOneNoteUWPInstalled
    getWin32RegKeys
    launchBackUp
    parseJson
    moveBackup
    updateUWPVersion
    killProcess
    uninstallUWP
}

# Execute 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 がデバイスベースではなくユーザーベースでアンインストールされていることを確認します。 これにより、共有デバイスですべてのアカウントに対して同期されていないメモが削除されるシナリオを軽減できます。

移行されたノートへのアクセス

移行後、ユーザーは次の方法でノートを取得できます。

  1. Windows アプリケーションで新しい OneNote を 開きます。
  2. 自分のアカウントにサインインします。
  3. ノートブックを開きます。

メモがない場合は、前の手順で作成したバックアップ フォルダーを確認します。

Windows 上の OneNote を使用してバックアップを確認するには:

  • [ ファイル] -> [バックアップを開く] の順に移動します。> バックアップ ファイル のパスに移動します。

トラブルシューティング

  • バックアップとUWPSyncStatus.json同期のUWPBackupStatus.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 の両方が同じ言語のほとんどで使用できる一方で、いくつかの違いがあります。 サポートされている言語の一覧については、OneNoteOneNote for Windows 10 をご覧ください。

その他のプラットフォーム: OneNote for Mac、iPad、iPhone、Android、および Web ブラウザー用のバージョンもあります。 詳細については、「OneNote バージョンの違い」を参照してください。