To fix SMB shares not being accessible through Zerotier on Windows 11
Automated One-Liner (Click Me)
Copy and paste the following into your Windows 11 Terminal or Powershell with admin priviledges:
irm https://raw.githubusercontent.com/8mpty/Win-11-ZerotierFix/main/Win-11-Zerotier-SMBFix.ps1 | iex
Manual Commands (Click Me)
Commands:-
Open Terminal/Powershell on your Windows 11 PC with Admin Priviledges.
-
Copy and paste the following code into the command line and click enter:
Get-NetConnectionProfile | Where-Object "InterfaceAlias" -like "Zero*"
And check if the network catergory is Public.
-
If the
NetworkCategory
isPublic
, then copy and paste this code into the command line:Get-NetConnectionProfile | Where-Object "InterfaceAlias" -like "Zero*" | Set-NetConnectionProfile -NetworkCategory Private
Which is to set the
NetworkCategory
toPrivate
in order for SMB shares on Windows 11 to work with Zerotier. -
If your
NetworkCategory
is alreadyPrivate
and not working, that means you have another problem with Zerotier which could be a bunch of factors for you to figure out.