Solved

Powershell files permission question

Posted on 2014-03-17
2
407 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
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 …

730 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