Re: Folder share with disk quota using commands.

From: Burtsev Dmitry (burtsev_at_removethispart.km.ru)
Date: 09/02/04


Date: Thu, 2 Sep 2004 09:55:15 +0400

Please, read more about scripting on
http://www.microsoft.com/technet/scriptcenter/default.mspx

-- 
Dmitry Burtsev [burtsev@removethis.km.ru]
"Samuel" <anonymous@discussions.microsoft.com> wrote in message
news:480501c49099$06fe6d70$a501280a@phx.gbl...
> I wonder how to run the below script as I don't think i
> can run it blindly.. and how if many user is involve??
>
> >-----Original Message-----
> >I think you need a good plan for your file server.
> >
> >Create top level folders for departments. Set RX
> permissions for
> >corresponding department groups.
> >In this folder create personal directory and don't
> propogate permissions
> >from parent. Set modify permission for user.
> >Create one public folder for file sharing in department.
> Set Modify
> >permission for department group.
> >
> >In this situation users can keep their files in own
> directory and only they
> >can read and modify it.
> >
> >
> >Dim groupDir, userDir, strGroupLogin, strLogin
> >groupDir = "d:\samuel"
> >userDir = "d:\samuel\huh"
> >strGroupLogin = "Group"
> >strLogin  = "User"
> >
> >'create group directory
> >Set dirObj = CreateObject("Scripting.FileSystemObject")
> >dirObj.CreateFolder(groupDir)
> >dirObj.CreateFolder(userDir)
> >
> >'Edit ACL on departments directory for group account.
> Give him Read&Execute.
> >
> >Set WshShell = Wscript.CreateObject("Wscript.Shell")
> >WshShell.Run("c:\winnt\system32\cacls.exe " & groupDir
> & " /t /e /p " &
> >strGroupLogin & ":r")
> >
> >'Edit ACL on home directory for user account. Give him
> Full Control
> >
> >WshShell.Run("c:\winnt\system32\cacls.exe " & userDir
> & " /t /e /p " &
> >strLogin & ":f")
> >
> >Set WshShell = Nothing
> >Set dirObj = Nothing
> >
> >-- 
> >Dmitry Burtsev [burtsev@removethis.km.ru]
> >
> >
> >
> ><anonymous@discussions.microsoft.com> wrote in message
> >news:3f7b01c48ff5$2e95df70$a301280a@phx.gbl...
> >> For example i need to create
> >> d:\samuel
> >> then in samuel yet another directory named hun
> >> both with permission setting and samuel is for all and
> hun
> >> is only for few person??
> >>
> >> >-----Original Message-----
> >> >You can do it with scripts. Check
> >> http://microsoft.com/technet/scriptcenter
> >> >
> >> >For example:
> >> >
> >> >Dim userDir,strLogin
> >> >userDir = "d:\New"
> >> >strLogin = "Group"
> >> >
> >> >Set dirObj = CreateObject("Scripting.FileSystemObject")
> >> >dirObj.CreateFolder(userDir)
> >> >
> >> >'Edit ACL on home directory for user account. Give him
> >> Full Control.
> >> >
> >> >Set WshShell = Wscript.CreateObject("Wscript.Shell")
> >> >WshShell.Run("c:\winnt\system32\cacls.exe " & userDir
> >> & " /t /e /p " &
> >> >strLogin & ":f")
> >> >Set WshShell = Nothing
> >> >Set dirObj = Nothing
> >> >
> >> >
> >> >-- 
> >> >Dmitry Burtsev [burtsev@removethis.km.ru]
> >> >
> >> >
> >> >
> >> >"Samuel Hung" <anonymous@discussions.microsoft.com>
> wrote
> >> in message
> >> >news:3eb001c48fe7$3c602dd0$a301280a@phx.gbl...
> >> >> Is there any way that I can use command to add in all
> >> the
> >> >> users that I have to the share folder that I created
> on
> >> >> the AD.
> >> >> I have many folder as I need to add users into and
> it is
> >> >> quite difficult to click some many users.
> >> >
> >> >
> >> >.
> >> >
> >
> >
> >.
> >