yoy - Why-O-Why
» frame |
home
browse
filter
search
|
refresh
|
log on
printed zondag 5 september 2010 12:37:27 from www.yoy.be
Automate creating user's shares
Hi can you help. How do I automate the sharing of a bunch of say 20 folders, each to a different person? I want to put their names into excel, paste the resulting script/ macro code into a DOS batch file or VBA code. What the script must do therefore is : Windows Explorer \ right click on target folder \ sharing and security \ share this folder \ Share name = BobbyJones$ (where bobbyJones = the original name of the folder); user limit _ allow this no. of users = 1. Then I go into "permissions", remove "everyone" , add Name = BobbyCharlesJones (which the computer recognises), with permissions = full control. Thanks!
location:
Opinions >
Computer related
created: 31/03/2010 10:27:48 «
modified: 3/04/2010 17:13:05 (diff)
weight: -100
children, tokens, references
PowerShell
created: 3/04/2010 17:12:28 «
modified: 3/04/2010 17:12:38
weight: -90
WMI script
created: 6/04/2010 8:02:20 «
modified: 6/04/2010 8:02:20
weight: -90