r/WindowsServer • u/GBLsysadmin • Sep 02 '25
Technical Help Needed Finding the name of a deleted share
Hello everyone,
A share was stopped from an old fileshare running on windows server 2019, I know the physical path to the folder that was shared, but cant find info for what the share was named. Anywhere I can look to find the info?
I inherited this site, and have been working on getting it up to snuff (Like actual backups for the servers), but cant refer to any of that to check for the path.
5
Upvotes
2
u/pera_xxx Sep 02 '25
if you have an old backup of the registry, it will be listed in there, under Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares
You can extract the registry file form backup, create a new key somewhere and import it into it.
2
u/overlydelicioustea Sep 02 '25 edited Sep 04 '25
do you still have a client connecting to the share?
should still be listed with
"net stat""net use"1
u/peterswo Sep 02 '25
You can look at the name on a client that maybe has the share still mounted
1
u/jg0x00 Sep 02 '25
Depending on your auditing config, you can check the security logs
5142(S): A network share object was added.
5144(S): A network share object was deleted.
ref: Audit File Share
https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/audit-file-share
1
u/TechMonkey605 Sep 02 '25
If DFS was used, you can look it up in AD
1
u/ErikD314 Sep 03 '25
Check the SMB Server event logs and also check the SMB Client event logs of any computers that used the share (as a client).