Script to share a folder with local user permissions (no AD)

ddrueding

Fixture
Joined
Feb 4, 2002
Messages
19,511
Location
Horsens, Denmark
There is a local drive on a Win7 computer that is TrueCrypt encrypted. Because of this, the share breaks every time the machine is rebooted.

Once the drive is mounted, I need to share the drive (U:) as "U" with full access to a local user group "company users"

I tried the "net share" command but must be getting some of the syntax wrong. I'd share what I have but am not at the site at the moment.
 

Mercutio

Fatwah on Western Digital
Joined
Jan 17, 2002
Messages
21,564
Location
I am omnipresent
net share music=c:\users\username\music /grant:"company users",change /users=5

Share your personal Music folder as \\localhost\music, granting the Company Users group ("Everyone" is probably also a safe choice if you have NTFS permissions in place) with Change rights (instead of read or full), with a maximum of five simultaneous share accesses.
 
Top