2-8: Script the Creation of an SMB Share
Solution overview
Type of solution | Script |
Features and tools | VBScript, PSExec, net share |
Solution summary | Customize and use the Share_Create.vbs script to script the creation of an SMB share, including all of its properties. |
Benefits | Increased manageability of shared folder security |
Introduction
Because the Shared Folder user interfaces apply default share permissions and caching settings that are not desirable in most situations, I recommend creating a script that can be used to deploy shared folders based on your specifications.
Using Share_Create.vbs
The Share_Create.vbs script, in the Scripts folder of the companion media, creates a share and assigns the Everyone::Allow::Full Control permission. The usage of the ...
Get Windows Administration Resource Kit: Productivity Solutions for IT Professionals now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.