Ok, last week or so, I troubleshooted like a few dozen of Windows systems, on top of my VM-Bridge-Promiscuous network I made for testing.
These are conclusions thus far:
1. Do not force Kerberos on both Host and Guest machines. This is like 90% of issues on newer Windows (tested on Win10 and 11) - and it should be applied to both host and guest machine to make sure all works; so go to:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers\RPC]
"RpcUseNamedPipeProtocol"=dword:00000001
"RpcProtocols"=dword:00000007
"ForceKerberosForRpc"=dword:00000000
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print]
"RpcAuthnLevelPrivacyEnabled"=dword:00000000
2. Something can be weird with the various network settings. I clanked the issues, and made a huge list of registry changes that should be "last resort troubleshooter" for most of severe cases, though I am warning you about it causing
certain SMB variabilities - reason the sharing problems came with some updates: The full reg key is:
Windows Registry Editor Version 5.00
; 10 Suggested by "crypticus" from NTLite forums
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device]
"DevicePasswordLessBuildVersion"=dword:00000000
; 20 UAC Remote Restrictions
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"LocalAccountTokenFilterPolicy"=dword:00000001
; 30 Disable Point and Print Restrictions for driver installation
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers\PointAndPrint]
"RestrictDriverInstallationToAdministrators"=dword:00000000
"UpdatePromptSettings"=dword:00000000
"InprocInstallPromptSettings"=dword:00000000
"NoWarningNoElevationOnInstall"=dword:00000001
; 40 Revert Print Spooler RPC Bindings to legacy Named Pipes, fixes KerberosForRpc
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers\RPC]
"ForceKerberosForRpc"=dword:00000000
"RpcProtocols"=dword:00000007
"RpcUseNamedPipeProtocol"=dword:00000001
"RpcTcpPort"=dword:00000259
; 45 In case of very old XP versions (SP1 and prior) two first dwords should be set to 00000000, minor futureproofing for Oct2026
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0]
"NtlmMinServerSec"=dword:20000000
"NtlmMinClientSec"=dword:20000000
"BlockNtlmv1SSO"=dword:00000000
; 50 Relax LSA & NTLM parameters to allow Windows XP connections & blank passwords (via LocalPort)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
"auditbasedirectories"=dword:00000000
"auditbaseobjects"=dword:00000000
"disabledomaincreds"=dword:00000000
"EveryoneIncludesAnonymous"=dword:00000000
"ForceGuest"=dword:00000000
"LimitBlankPasswordUse"=dword:00000000
"NoLmHash"=dword:00000001
"LmCompatibilityLevel"=dword:00000003
"LsaCfgFlags"=dword:00000000
"RestrictAnonymous"=dword:00000000
"RestrictAnonymousSAM"=dword:00000000
"RunAsPPL"=dword:00000000
"RunAsPPLBoot"=dword:00000000
; 60 Disable RPC Binding Privacy (Fixes 0x0000011b)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print]
"RpcAuthnLevelPrivacyEnabled"=dword:00000000
"ThrowDriverException"=dword:00000001
; 70 Solves Universal Image Restore SID issue - important if all machines come from same image, or are ones where manufacturer pre-deploys an OS
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Policies\Microsoft\FeatureManagement\Overrides]
"1517186191"=dword:00000000
; 80 Enable Insecure Guest Auth & Disable SMB Signing Requirement
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters]
"EnableSecuritySignature"=dword:00000001
"RequireSecuritySignature"=dword:00000000
"restrictnullsessaccess"=dword:00000000
"SMB2"=dword:00000001
"SMB1"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters]
"AllowInsecureGuestAuth"=dword:00000001
"EnablePlainTextPassword"=dword:00000000
"RequireSecuritySignature"=dword:00000000
"EnableSecuritySignature"=dword:00000001
3. For Windows 7, XP and other incompatible systems? Just - use
LDP\LPR (
Optional Features->Print and Document services). It circumvents all the Windows network security issues introduced. Just install it via "Optional Features" - pretty sure instructions can be found easily. Because while I once managed to hit a magic setting that enabled printer to be shared on Windows 7 from network, I never found this for XP.
Few notes:
The "Local Port" trick on guest machine where you set the \\HOSTNAME\Printer or \\HOST_IP\Printer had questionable outcomes, as it would sometimes work, and sometimes it would not. Not sure what exact update, setting or something else could be causing this inconsistency, so I dropped it.
Strangely few times I hit a perfect setting that worked on everything except WinXP, and I cannot recreate it. If I ever manage to do so, I will re-edit this post. Could be that the PowerShell commands are the part of solution, and I will do more testings later.