Regarding Shared folder creation

This topic contains 4 replies, has 3 voices, and was last updated by Profile photo of BIJO DEV BIJO DEV 1 week ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #54380
    Profile photo of BIJO DEV
    BIJO DEV
    Participant

    Hello Guys,
    I want to create a sharedfolder for 20 users on remote server + need to provide the ntfs permissions using powershell.
    1) In Each shared folder – share permissions (everyone – full control)
    2) Under Security Tab – User(Modify access), Domain admin(Modifty) and administrator(Full control) should only be there.
    Please provide any suggestion
    any help would be appreciated.

    #54388
    Profile photo of Rob Simmers
    Rob Simmers
    Participant

    Have you done any research? A quick search I found this: http://windowsitpro.com/powershell/managing-file-shares-windows-powershell
    There are many examples and scripts for managing permission. Try to put something together with these examples and if you have issues let us know.

    #54418
    Profile photo of BIJO DEV
    BIJO DEV
    Participant

    Thank you for your rply @Rob Simmers. I have checked into it, but I tried to do on my local machine first. but somehow I am unable to do it.

    #54421
    Profile photo of Daniel Krebs
    Daniel Krebs
    Participant

    Please post code snippets of what you've tried with the error messages you've received. Please also let us know which operating systems you're running on your local machine and the remote server you want to configure.

    #54505
    Profile photo of BIJO DEV
    BIJO DEV
    Participant

    Thank you for your time @daniel Krebs.

    I got this code from some source
    I first want to run this on my local system instead of running on the remote server

    $Perm = Get-Acl "D:\Scripts\testfolder"
    $User_perm = "BIJODEV","FullControl","Allow"
    $Objects = New-Object System.Security.AccessControl.FileSystemAccessRule $User_perm
    $Perm.SetAccessRule(Objects)
    $Perm | Set-Acl "D:\Scripts\testfolder"

    "I am trying to run this command over my local system it's win7"

    "In Office we are using Windows 2008 server."

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.