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


  • Staff
Cast_to_Device_banner.png

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

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: 132
  • Add_Cast_to_Device_context_menu.bat
    364 bytes · Views: 383
  • Remove_Cast_to_Device_context_menu.bat
    391 bytes · Views: 401
Last edited:
Hi,
You the man :thumbsup:
 

My Computer

System One

  • OS
    Win-7-10-11Pro's
    Computer type
    PC/Desktop
    Manufacturer/Model
    Acer 17" Nitro 7840sn/ 2x16gb 5600c40/ 4060/ stock 1tb-os/ 4tb sn850x
    CPU
    10900k & 9940x & 5930k
    Motherboard
    z490-Apex & x299-Apex & x99-Sabertooth
    Memory
    Trident-Z Royal 4000c16 2x16gb & Trident-Z 3600c16 4x8gb & 3200c14 4x8gb
    Graphics Card(s)
    Titan Xp & 1080ti FTW3 & evga 980ti gaming
    Sound Card
    Onboard Realtek x3
    Monitor(s) Displays
    1-AOC G2460PG 24"G-Sync 144Hz/ 2nd 1-ASUS VG248QE 24"/ 3rd LG 43" series
    Screen Resolution
    1920-1080 not sure what the t.v is besides 43" class scales from 1920-1080 perfectly
    Hard Drives
    2-WD-sn850x 4tb/ 970evo+500gb/ 980 pro 2tb.
    PSU
    1000p2 & 1200p2 & 850p2
    Case
    D450 x2 & 1 Test bench in cherry Entertainment center
    Cooling
    Custom water loops x3 with 2x mora 360mm rads only 980ti gaming air cooled
    Keyboard
    G710+x3
    Mouse
    Redragon x3
    Internet Speed
    xfinity gigabyte
    Browser
    Firefox
    Antivirus
    mbam pro

My Computers

System One System Two

  • OS
    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
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    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,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium

Latest Tutorials

Back
Top Bottom