Everyone was still invited
The complaint
Nobody complained this time either. Case 4 had locked the front door: The Guest account was off on every PC, so nothing could open a shared folder without signing in. Every share opened for Keith from any PC, and nobody else was asking. But a locked front door only decides who gets into the house. It says nothing about which rooms they can walk into once they're inside.
I have some share issues on my LAN when it comes to security. Can you help me fix them?— Keith
The clues
What FleetSight looked at
Every FleetSight run already reads each shared folder's permissions: Who may open it over the network, and what they may do. Nobody had asked it this question before, but the answer was sitting in the last scan's results.
Everyone: Read. Fifteen also listed Keith's own account (here called Sam) with full control. Four listed Everyone and nobody else: Three on DESK-02 and the one on OFFICE-PC.Nobody chose that. It's Windows' own default: When you share a folder or a drive, Windows starts its permissions at Everyone: Read, and most people never open that box again.
| PC | Shared drives | Before | After |
|---|---|---|---|
| DESK-02 | 4 | Everyone: Read3 of them Everyone only | Sam: Full |
| DEN-PC | 7 | Everyone: Read, Sam: Full | Sam: Full |
| OFFICE-PC | 1 | Everyone: ReadEveryone only | Sam: Full |
| LAPTOP-01 | 2 | Everyone: Read, Sam: Full | Sam: Full |
| STUDIO-PC | 5 | Everyone: Read, Sam: Full | Sam: Full |
The cause and the fix
The red herring
The fix
Keith knew what he wanted: His account, Sam, able to open anything, anywhere on the network, and everyone else left out.
That way, if anyone does manage to get in, we will have made it at least more difficult for them to do any damage.— Keith
The script, Fix-ShareAccess.ps1, was written and tested from FleetSight's own scan results before it touched a single PC. It shows its whole plan first, share by share: What each one has now, and what it will do. It asks for a Y.
Before changing anything, it writes an undo script that puts every permission back exactly as it was. Then it gives Sam full control first, so you can never lock yourself out, takes Everyone off, reads each share's permissions back, and opens each one from the PC it's running on to prove it still works. It leaves the PC's own files and folders alone: Only who may open them over the network changes.
One hitch: The first time, OFFICE-PC couldn't be reached at all. It had gone to sleep, or dropped off the network when it did. The script left it alone and said so, rather than half-fixing it. Once it was awake, it got the same treatment.
The verdict
All 19 shared drives on all five PCs list only Sam, and every one of them still opened for him on the check. The next FleetSight run's Security view answered Shared folders closed to Everyone? with Yes, on every device, and the Shared folders page shows each PC's drives allowed for Sam on every other PC, and nobody else.
This means that FS is empowering in an entirely new way. It lets me interrogate my own network in novel ways.— Keith
What FleetSight learned
The data a tool collects can answer questions nobody wrote it to ask. Who-can-open-what was there in every scan; it took one question to turn it into a fix, and the fix is now a question in the Security view, checked on every run. Because Windows starts every new share at Everyone: Read, sharing a new drive quietly reopens the hole. The next run will show it, and running Fix-ShareAccess.ps1 again closes it.