Published by


Brink's Avatar
Administrator

Posts: 32,250

Show Printable Version 


How to Backup and Restore AutoPlay Settings in Windows 10


AutoPlay lets you choose an action for different kinds of media when you plug in a device or insert media. You can set AutoPlay to open different kinds of content, such as photos, music, and video on different kinds of media, such as drives, CDs, DVDs, cameras, and phones. For example, you can use AutoPlay to select an app that will automatically open photos on a removable drive when you plug it into your PC. With AutoPlay, you don't have to open the same app or reselect preferences every time you plug in a certain device.

Once you have AutoPlay set how you want, you may want to backup your settings to be able to quickly restore your settings as needed to any account on any Windows 10 PC.

This tutorial will show you how to backup your AutoPlay settings and restore as needed to any account on any Windows 10 PC.


 CONTENTS:



EXAMPLE: AutoPlay settings in Windows 10
Name:  AutoPlay_in_Control_Panel-1.png
Views: 172
Size:  51.5 KB Name:  AutoPlay_in_Control_Panel-2.png
Views: 177
Size:  45.5 KB Name:  AutoPlay_in_Settings.jpg
Views: 199
Size:  67.9 KB






Backup and Restore AutoPlay Settings in Windows 10 OPTION ONE Backup and Restore AutoPlay Settings in Windows 10
To Backup AutoPlay Settings using a BAT file

1. Sign in or switch user to the user account you want to backup its AutoPlay settings.

2. Click/tap on the Download button below to download the .bat file below.

Backup_AutoPlay_settings.bat

download

Contents of .bat file for reference:

Code:
:: To create "AutoPlay Settings Backup" folder on your desktop.
mkdir "%userprofile%\Desktop\AutoPlay Settings Backup"


:: To export these two registry keys to .reg files into the "AutoPlay Settings Backup" folder on your desktop.
REG EXPORT HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection "%userprofile%\Desktop\AutoPlay Settings Backup\EventHandlersDefaultSelection.reg"

REG EXPORT HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers "%userprofile%\Desktop\AutoPlay Settings Backup\UserChosenExecuteHandlers.reg"

3. Save the .bat file to your desktop.

4. Unblock the .bat file.

5. Run the .bat file.

6. A AutoPlay Settings Backup folder has now been created on your desktop that contains the EventHandlersDefaultSelection.reg and UserChosenExecuteHandlers.reg files as your AutoPlay settings backup. You can move this folder to where you want to keep it saved at.






Backup and Restore AutoPlay Settings in Windows 10 OPTION TWO Backup and Restore AutoPlay Settings in Windows 10
To Restore AutoPlay Settings

1. Sign in or switch user to the user account you want to restore a backup of AutoPlay settings to.

2. Open the AutoPlay Settings Backup folder created from Option One. (see screenshot below)

Name:  AutoPlay_Settings_Backup.jpg
Views: 176
Size:  48.5 KB

3. Double click/tap on the EventHandlersDefaultSelection.reg file to merge it.

4. When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

5. Double click/tap on the UserChosenExecuteHandlers.reg file to merge it.

6. When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.


That's it,
Shawn