aaronparker / secure-shares

Scripts to configure secure permissions on shares for folder redirection and home drives etc.

Home Page:https://stealthpuppy.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scripts to Dynamically Create Security-enhanced Shares

License

Scripts to configure secure permissions on shares for folder redirection and home drives etc.

For home drives, redirected folders, user profiles etc. it’s important to ensure folder permissions are set correctly. These permissions can be scripted for easy creation of these shares.

Based on recommendations set out in these articles:

New-SecureShare.cmd

Batch file that demonstrates using ICACLS and NET SHARE commands to create a folder with secure permissions and share it.

New-SecureShare.ps1

PowerShell approach to creating a folder with secure permissions and sharing the folder. Currently this script works locally, with remote support intended for a future release.

Examples

Create a secure share for the folder E:\Home named Home, with Offline Settings set to automatic.

.\New-SecureShare.ps1 -Path "E:\Home" -CachingMode Documents

Create a secure share for the folder E:\Profiles named Profiles, with Offline Settings set to none and sets a custom description.

.\New-SecureShare.ps1 -Path "E:\Profiles" -Description "User roaming profiles"

About

Scripts to configure secure permissions on shares for folder redirection and home drives etc.

https://stealthpuppy.com

License:MIT License


Languages

Language:PowerShell 88.1%Language:Batchfile 11.9%