This tutorial will show you how to remove the Cast to Device context menu from files and folders for all users in Windows 11. This can be handy if you don't use or want the context menu.
Cast to Device is a feature that allows you to directly (wired or wirelessly) stream media from your PC or tablet to a Miracast or DLNA supported device (ex: TV or Xbox) on your home network.
The Cast to Device context menu is available on media files (music, photos, videos, etc...) and folders that are supported for this feature. Cast to Device is also available as an option in supported apps, such as Microsoft Edge and Movies & TV.
You must be signed in as an administrator to add or remove the context menu.
EXAMPLE: "Cast to Device" context menu
Here's How:
1 Do step 2 (remove) or step 3 (add) below for what you would like to do.
2 To Remove "Cast to Device" Context Menu
A) Click/tap on the Download button below to download the BAT file below, and go to step 4 below.
Remove_Cast_to_Device_context_menu.bat
(Contents of BAT file for reference)
Code:
@echo off
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /V {7AD84985-87B4-4a16-BE58-8B72A5B390F7} /T REG_SZ /D "Play to Menu" /F
taskkill /f /im explorer.exe
start explorer.exe
3 To Add "Cast to Device" Context Menu
This is the default setting.
A) Click/tap on the Download button below to download the BAT file below, and go to step 4 below.
Add_Cast_to_Device_context_menu.bat
(Contents of BAT file for reference)
Code:
@echo off
REG Delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /V {7AD84985-87B4-4a16-BE58-8B72A5B390F7} /F
taskkill /f /im explorer.exe
start explorer.exe
4 Save the .bat file to your desktop.
5 Unblock the .bat file.
6 Right click or press and hold on the .bat file, and click/tap on Run as administrator.
7 When prompted by UAC, click/tap on Yes to approve.
8 You will now notice your screen flicker and a command prompt quickly open and close as the explorer process is restarted to apply the registry changes.
9 When finished, you can delete the downloaded .bat file if you like.
That's it,
Shawn Brink
Attachments
Last edited: