When the printer is not shared / HOW? This is way to//
Most USB sharing issues are resolved by updates.
If you can't share your printer intermittently, try this.
Windows Explorer
Running CMD
Typing below.
REG ADD HKLM\System\CurrentControlSet\Control\Print /v RpcAuthnLevelPrivacyEnabled /t REG_DWORD /d 0 /f && net stop spooler && net start spooler