Skip to content

Instantly share code, notes, and snippets.

@nampdn
Last active December 23, 2021 07:58
Show Gist options
  • Save nampdn/160baef5f36aac02bbb6720594e1851d to your computer and use it in GitHub Desktop.
Save nampdn/160baef5f36aac02bbb6720594e1851d to your computer and use it in GitHub Desktop.
When mount disk on Windows, it is not display, adjust this settings with the registry will show up the disk in Explorer

https://serverfault.com/questions/51635/how-can-an-unauthenticated-user-access-a-windows-share

Summary of steps:

Adding Everyone, Guest and ANONYMOUS LOGON to the permissions of the share. Open the Group Policy Editor (e.g. by running gpedit.msc) Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> Security Options

  • Accounts: Guest account status: Enabled
  • Network access: Let Everyone permissions apply to anonymous users: Enabled
  • Network access: Restrict anonymous access to Named Pipes and Shares: Disabled
  • Network access: Shares that can be accessed anonymously: YOUR_SHARE_NAME
net use * \\domain.local\<share_name>
REG ADD HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /f /v EnableLinkedConnections /t REG_DWORD /d 00000001
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"ConsentPromptBehaviorAdmin"=dword:00000005
"ConsentPromptBehaviorUser"=dword:00000003
"DSCAutomationHostEnabled"=dword:00000002
"EnableCursorSuppression"=dword:00000001
"EnableFullTrustStartupTasks"=dword:00000002
"EnableInstallerDetection"=dword:00000001
"EnableLUA"=dword:00000001
"EnableSecureUIAPaths"=dword:00000001
"EnableUIADesktopToggle"=dword:00000000
"EnableUwpStartupTasks"=dword:00000002
"EnableVirtualization"=dword:00000001
"PromptOnSecureDesktop"=dword:00000001
"SupportFullTrustStartupTasks"=dword:00000001
"SupportUwpStartupTasks"=dword:00000001
"ValidateAdminCodeSignatures"=dword:00000000
"dontdisplaylastusername"=dword:00000000
"legalnoticecaption"=""
"legalnoticetext"=""
"scforceoption"=dword:00000000
"shutdownwithoutlogon"=dword:00000001
"undockwithoutlogon"=dword:00000001
"EnableLinkedConnections"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\Audit]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\UIPI]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\UIPI\Clipboard]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\UIPI\Clipboard\ExceptionFormats]
"CF_BITMAP"=dword:00000002
"CF_DIB"=dword:00000008
"CF_DIBV5"=dword:00000011
"CF_OEMTEXT"=dword:00000007
"CF_PALETTE"=dword:00000009
"CF_TEXT"=dword:00000001
"CF_UNICODETEXT"=dword:0000000d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment