System Turn On or Off Nearby Sharing in Windows 11


  • Staff
Nearby_Sharing_banner.png

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).
See also:

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.

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


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


1 Select file(s) you want to share or not.

2 Right click or press and hold on the selected file(s), and click/tap on Show more options. (see screenshot below)

Show_more_options.png

3 Click/tap on Share. (see screenshot below)

Share.png

4 Select My devices, My Family, Everyone, or Sharing off (default) for what you want in the Nearby sharing drop menu. (see screenshot below)

Nearby_sharing_menu.jpg




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: 48
  • Turn_OFF_Nearby_Sharing.bat
    571 bytes · Views: 97
  • Turn_ON_Nearby_Sharing_for_Everyone_nearby.bat
    574 bytes · Views: 88
  • Turn_ON_Nearby_Sharing_for_My_devices_only.bat
    574 bytes · Views: 98
  • Turn_ON_Nearby_Sharing_for_My_Family.bat
    570 bytes · Views: 42
Last edited:

rsoyxihnark

New member
Local time
1:44 PM
Posts
12
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
 

My Computer

System One

  • OS
    Windows 11

Brink

Administrator
Staff member
MVP
Thread Starter
Local time
5:44 AM
Posts
4,847
OS
Windows 11 Pro for Workstations
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
    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

Brink

Administrator
Staff member
MVP
Thread Starter
Local time
5:44 AM
Posts
4,847
OS
Windows 11 Pro for Workstations

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