Skip to content

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

License

Notifications You must be signed in to change notification settings

aaronparker/secure-shares

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks