Second, network drives make for shorter paths. Map drive N: to \\Xander\
Desktop, and the file \\Xander\Desktop\carrots.xlsx can now be found at N:\
carrots.xlsx. The latter is certainly easier to type, which is a real concern when
working with the Command Prompt.
506 | Chapter 8: Users and Security
By default, every hard disk on your PC is shared. That??™s right, the whole
thing.
What??™s worse is that the shares are hidden, which means they don??™t show
up in the Network folder in Windows Explorer, and thus most users don??™t
know their drives are being shared.
You can hide any network share by adding the $ character to the end of the
share name, like this: Desktop$. Then, to access the share, type the UNC
path into Windows Explorer??™s address bar (e.g., \\Xander\Desktop$) and
press Enter to open it.
To test your PC, open Windows Explorer and type the name of your own
PC into the address bar, followed by the administrative share name for drive
C:, like this:
\\your_pc_name\c$
and then press Enter. If you see the contents of your hard disk, then administrative
shares are enabled on your PC.
Now, it??™s not just a matter of unsharing the drives; you??™ve got to disable the
mechanism that shares them automatically each time your PC starts. If
administrative shares are enabled on your PC, here??™s how to turn them off:
1. Open the Registry Editor (see Chapter 3).
2. Expand the branches to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\lanmanserver\parameters.
Pages:
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704