Network and Internet Add or Remove Cast to Device context menu in Windows 11

  • Staff
Cast_to_Device_banner.png

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.

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.


You must be signed in as an administrator to add or remove the context menu.



EXAMPLE: "Cast to Device" context menu

Cast_to_Device_context_menu.png



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

  • Cast_to_Device.png
    Cast_to_Device.png
    3.4 KB · Views: 4
  • Add_Cast_to_Device_context_menu.bat
    364 bytes · Views: 6
  • Remove_Cast_to_Device_context_menu.bat
    391 bytes · Views: 10
Last edited:

ThrashZone

Active member
Member
VIP
Local time
7:34 AM
Posts
261
Hi,
You the man :thumbsup:
 

My Computer

System One

  • Operating System
    Win-7-10-11 Linux-Mint Cinnamon 20.2
    Computer type
    PC/Desktop
    Manufacturer/Model
    asus/ one old acer
    CPU
    10900k & 9940x & 5930k & q9550
    Motherboard
    z490-Apex & x299-Apex & x99-Sabertooth & Acer WG43M
    Memory
    2x8gb & 4x8gb 3600c16 & 4x8gb 3200c14 & 4x2gb
    Graphics Card(s)
    Titan Xp & 1080ti FTW3 & evga 980ti
    Sound Card
    Onboard Realtek
    Monitor(s) Displays
    1-AOC G2460PG 24"G-Sync 144Hz/ 2nd 1-ASUS VG248QE 24"/ 3rd LG 43" series
    Screen Resolution
    1080-1920 not sure what the t.v is besides 43" class
    Hard Drives
    To many to list
    PSU
    1000p2 & 1200p2 & 850p2 & 750p2
    Case
    D450x2 & Test benchx2
    Cooling
    Custom water loops x3
    Keyboard
    G710+x3
    Mouse
    Redragon x3
    Internet Speed
    giga xfinity
    Browser
    Firefox
    Antivirus
    mbam pro

Brink

Administrator
Staff member
MVP
Thread Starter
Local time
7:34 AM
Posts
1,424

My Computers

System One System Two

  • Operating System
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 980 PRO M.2,
    1TB Samsung 970 EVO Plus M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Motorola MB8611 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S20 Ultra 5G phone
  • Operating System
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1
    CPU
    i7-1065G7 3.9 GHz
    Memory
    16 GB LPDDR4-3200
    Graphics card(s)
    Intel Iris Plus
    Sound Card
    Intel SST
    Monitor(s) Displays
    13.3" 4K UWVA AMOLED multitouch
    Screen Resolution
    3840 x 2160
    Hard Drives
    512 GB PCIe NVMe M.2 SSD
    Browser
    Google Chrome
    Antivirus
    Windows Defender and Malwarebytes Premium
Top Bottom