We have a need to have additional share permissions on the user home folder.
Has anybody got a clue as to how I would go about this. by default when we provision a user the admin group and the user get permissions on the share (not the NTFS perms, they are fine). I have tried to create a script to run just after the folder provisioning to change the share permissions to those of the parent folder (using permcopy, see below), but have not had any success. in essence what I would like to have happen is to give a security group full control share permissions to the newly created user home folder share.
If anyone can shed some light into how to do this with out having to touch each newly created folder by hand i would appreciate it.
here is what i tried to do for my script:
Sub onPostCreate(Request)
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "c:\windows\system32\permcopy.exe \\baraboo2k3 users \\baraboo2k3 %username%"
End Sub
Also tried this:
Set objShell = CreateObject("WScript.Shell")
objShell.Run("permcopy \\baraboo2k3 users \\baraboo2k3 %username%")
Thanks in advance
Has anybody got a clue as to how I would go about this. by default when we provision a user the admin group and the user get permissions on the share (not the NTFS perms, they are fine). I have tried to create a script to run just after the folder provisioning to change the share permissions to those of the parent folder (using permcopy, see below), but have not had any success. in essence what I would like to have happen is to give a security group full control share permissions to the newly created user home folder share.
If anyone can shed some light into how to do this with out having to touch each newly created folder by hand i would appreciate it.
here is what i tried to do for my script:
Sub onPostCreate(Request)
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "c:\windows\system32\permcopy.exe \\baraboo2k3 users \\baraboo2k3 %username%"
End Sub
Also tried this:
Set objShell = CreateObject("WScript.Shell")
objShell.Run("permcopy \\baraboo2k3 users \\baraboo2k3 %username%")
Thanks in advance