Solved

Powershell files permission question

Posted on 2014-03-17
2
409 Views
Last Modified: 2014-03-17
Hi,

I'm trying to create a powershell script that creates and assigns various permissions to folders/shares.

I'm using the the 'system.security.accesscontrol.filesystemaccessrule' command to assign permissions but I'm unable to find the value for the 'Create folder/append data' permission.

can anyone let me know what value i should use here ***** i can't find a list of potentional values anywhere but I'm probally looking in the wrong place

$Ar = New-Object  system.security.accesscontrol.filesystemaccessrule("Authenticated Users","***************","ObjectInherit", "None", "Allow")
$Acl.SetAccessRule($Ar)

thanks
0
Comment
Question by:Z1ggy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

by:
Raheman M. Abdul earned 500 total points
ID: 39933950
User AppendData  in your case in place of ***********

Try this to give Create Folder / Append Data permission to the folder c:\testFolder
\-------------------
$folder = "c:\testFoler"
$myGroup = "albg\stftuser"
$acl = Get-Acl $folder

$rule = New-Object System.Security.AccessControl.FileSystemAccessRule("$myGroup", "AppendData", "ContainerInherit, ObjectInherit", "None", "Allow")

$acl.AddAccessRule($rule)
Set-Acl $folder $acl
0
 

Author Closing Comment

by:Z1ggy
ID: 39934323
:) thanks thats exactly what i was looking for !
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question