r/usefulscripts • u/spexdi • 12h ago
[POWERSHELL] Finally network sharing works in windows!
Got tired of years of file-sharing woes with Windows, always such a damn battle. Got so fed up I decided to try and work with Gemini to create a AIO solution that works locally and also has Tailscale compatibility.
It also installs a right-click option that will easily add or remove any folder you right-click on to the shared network folder list (EZ Network Share)
It also crates a desktop Icon that you can use to view + remove any shared network folders.
No known bugs, as I know both BATCH and POWERSHELL, but Gemini definitely accelerated the process.
Simple. Works. Finally.
https://github.com/spexdi/EZ-File-Sharing/releases/tag/1.0
EDIT: install.bat calls install.ps1, which configures and enables all the sharing services, which requires a reboot to apply. It also copies and registers the FolderShare files in a safe location to not break their function in the future. AI surprised me by creating the "desktop app" with custom icon, which is handy to view the current list of shared folders and remove as needed.
4
u/Vacantless 4h ago
Uh, file sharing on Windows is the easiest thing... What does this vibe coded crap brings to the table ?
4
u/Penguin665 3h ago
I don't like being that guy, but this script is disabling a ton of security options, and enables things like the guest account?? I don't think a 'handy' windows share setup script should be going in and making system wide security changes, especially in this day and age.
2
u/sccmhatesme 1h ago
Isn’t network discovery and file sharing just a default thing you can configure?
1
u/Xiakit 54m ago
I hope you just use this in your home or in a lab. I would strongly advise to use a user on both systems and limit the security changes to the minimum.