System Turn On or Off Nearby Sharing in Windows 11


  • Staff
Nearby_Sharing_banner.png

This tutorial will show you how to turn on or off nearby sharing for your account in Windows 11.

Nearby sharing in Windows lets you share documents, photos, links to websites, and more with nearby devices by using Bluetooth or Wi-Fi.

You can choose to turn on nearby sharing for My devices only or Everyone nearby.

If you choose Everyone nearby, the Bluetooth MAC address and name of your PC are made available to other devices around you so you can share with other PCs nearby. This info could be used to link your PC to you.


To use nearby sharing, both PCs—the one you’re sharing from and the one you're sharing to—must have:
  • Nearby sharing turned on.
  • Bluetooth 4.0 (or later) and must be running Windows 11 or Windows 10 (version 1803 or later).
References:

Starting with Windows 11 build 22622.436 and build 25163, the discovery of devices under nearby share when sharing a local file from the desktop, File Explorer, Photos, Snipping Tool, Xbox, and other apps that use the built-in Windows share window has been enhanced by using UDP (Network needs to be set to private) along with Bluetooth to discover nearby devices. You will now be able to discover and share to more devices including desktop PCs. When sharing a local file from the desktop, File Explorer, Photos, Snipping Tool, Xbox, and other apps that use the built-in Windows share window, you can choose OneDrive as a target to directly upload the file to OneDrive and share it further along with access control options. All this can be done right from sharing local files in File Explorer without any context switches or opening the OneDrive app.

Starting with Windows 11 build 22631.3374, affects how Nearby Share turns on and off. You can use quick settings or the Settings app to turn on Nearby Share. If you do and Wi-Fi and Bluetooth are off, Wi-Fi and Bluetooth will turn on to make Nearby Share work as you expect. If you turn off Wi-Fi or Bluetooth, Nearby Share turns off as well.


Contents

  • Option One: Turn On or Off Nearby Sharing from Share Context Menu
  • Option Two: Turn On or Off Nearby Sharing in Quick Settings
  • Option Three: Turn On or Off Nearby Sharing in Settings
  • Option Four: Turn On or Off Nearby Sharing using BAT file


EXAMPLE: Nearby Sharing

Nearby_sharing.jpg
Sharing_from.png
Sharing_to.png





Option One

Turn On or Off Nearby Sharing from Share Context Menu


This will turn on nearby sharing for Everyone nearby.

Starting with Windows 11 version 22H2 KB5030310 Build 22621.2361, instead of a dropdown menu in the Windows share window, there is a button to turn on nearby sharing.


1 Right click on the file(s) you want to share, and click/tap on Share. (see screenshot below)

Share_context_menu-1.png

2 Click/tap on the Turn on button under Nearby Share. (see screenshot below)

Share_context_menu-2.png




Option Two

Turn On or Off Nearby Sharing in Quick Settings


1 Open Quick Settings (Win+A).

2 Click/tap on the Nearby sharing quick setting button to toggle On or Off (default) for what you want. (see screenshots below)

On will be for My devices only or Everyone nearby depending on what you have set in nearby sharing settings.


Nearby_sharing_Quick_Settings-1.png
Nearby_sharing_Quick_Settings-2.png





Option Three

Turn On or Off Nearby Sharing in Settings


1 Open Settings (Win+I).

2 Click/tap on System on the left side, and click/tap on Nearby sharing on the right side. (see screenshot below)


Nearby_sharing_Settings-1.png

3 Under Nearby sharing, select Off (default), My devices only, My Family, or Everyone nearby for what you want. (see screenshot below)

Nearby_sharing_Settings-2.png

4 You can now close Settings if you like.




Option Four

Turn On or Off Nearby Sharing using BAT file


1 Do step 2 (on - Everyone nearby), step 3 (on - My devices only), step 4 (on - My Family), or step 5 (off) below for what you want.


2 Turn On Nearby Sharing for "Everyone nearby"

A) Click/tap on the Download button below to download the BAT file below, and go to step 6 below.​

Turn_ON_Nearby_Sharing_for_Everyone_nearby.bat


(Content of BAT file for reference)
Code:
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\CDP" /V NearShareChannelUserAuthzPolicy /T REG_DWORD /D 2 /F
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\CDP\SettingsPage" /V NearShareChannelUserAuthzPolicy /T REG_DWORD /D 2 /F
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\CDP" /V CdpSessionUserAuthzPolicy /T REG_DWORD /D 2 /F


taskkill /f /im explorer.exe
start explorer.exe

3 Turn On Nearby Sharing for "My devices only"

A) Click/tap on the Download button below to download the BAT file below, and go to step 6 below.​

Turn_ON_Nearby_Sharing_for_My_devices_only.bat


(Content of BAT file for reference)
Code:
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\CDP" /V NearShareChannelUserAuthzPolicy /T REG_DWORD /D 1 /F
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\CDP\SettingsPage" /V NearShareChannelUserAuthzPolicy /T REG_DWORD /D 1 /F
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\CDP" /V CdpSessionUserAuthzPolicy /T REG_DWORD /D 1 /F


taskkill /f /im explorer.exe
start explorer.exe

4 Turn On Nearby Sharing for "My Family"

A) Click/tap on the Download button below to download the BAT file below, and go to step 6 below.​

Turn_ON_Nearby_Sharing_for_My_Family.bat


(Content of BAT file for reference)
Code:
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\CDP" /V NearShareChannelUserAuthzPolicy /T REG_DWORD /D 3 /F
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\CDP\SettingsPage" /V NearShareChannelUserAuthzPolicy /T REG_DWORD /D 3 /F
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\CDP" /V CdpSessionUserAuthzPolicy /T REG_DWORD /D 3 /F

taskkill /f /im explorer.exe
start explorer.exe

5 Turn Off Nearby Sharing

This is the default setting.


A) Click/tap on the Download button below to download the BAT file below, and go to step 6 below.​

Turn_OFF_Nearby_Sharing.bat


(Content of BAT file for reference)
Code:
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\CDP\SettingsPage" /V BluetoothLastDisabledNearShare /T REG_DWORD /D 0 /F
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\CDP" /V NearShareChannelUserAuthzPolicy /T REG_DWORD /D 0 /F
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\CDP" /V CdpSessionUserAuthzPolicy /T REG_DWORD /D 1 /F

taskkill /f /im explorer.exe
start explorer.exe

6 Save the .bat file to your desktop.

7 Unblock the .bat file.

8 Run the .bat file.

9 You will now notice your screen flicker and a command prompt quickly opens and closes as explorer is restarted to apply the registry changes.

10 You can delete the downloaded .bat file if you like.


That's it,
Shawn Brink


 

Attachments

  • Nearby_Sharing.png
    Nearby_Sharing.png
    2.5 KB · Views: 105
  • Turn_OFF_Nearby_Sharing.bat
    571 bytes · Views: 292
  • Turn_ON_Nearby_Sharing_for_Everyone_nearby.bat
    574 bytes · Views: 266
  • Turn_ON_Nearby_Sharing_for_My_devices_only.bat
    574 bytes · Views: 251
  • Turn_ON_Nearby_Sharing_for_My_Family.bat
    570 bytes · Views: 199
Last edited:
hey, shouldn't the value of CdpSessionUserAuthzPolicy here be 0 instead of 1?


Turn_OFF_Nearby_Sharing.bat
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\CDP" /V CdpSessionUserAuthzPolicy /T REG_DWORD /D 1 /F
 

My Computer

System One

  • OS
    Windows 11
hey, shouldn't the value of CdpSessionUserAuthzPolicy here be 0 instead of 1?


Turn_OFF_Nearby_Sharing.bat
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\CDP" /V CdpSessionUserAuthzPolicy /T REG_DWORD /D 1 /F

Hello, :-)

The value of CdpSessionUserAuthzPolicy is "1" whether Nearby Sharing is on or off, unless for everyone then "2". I only included it since it's required.
 

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

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 Support Threads

Back
Top Bottom