.Net / programming question

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Alexander Johansson Alexander Johansson 1 year, 9 months ago.

  • Author
    Posts
  • #28837
    Profile photo of Windows LiveUser93
    Windows LiveUser93
    Participant

    Hi

    Not a programmer but i was looking for a resource to have the ability to look up .NET / programming type formats.

    I have a script in powershell that sets and looks at ACLs on folders. I have a pice that i found on the net that is new-object System.Security.AccessControl.FileSystemAccessRule ("$Usr", "FullControl", "ContainerInherit, ObjectInherit", "None", "Allow")

    My question is where can i look up and wat are the items called within the ( ). I have seen this for other .net pieces but not sure what they were called so i could look them up and know how any there were and what the values were that needed to be put in.

    Thank You

    John

  • #28841
    Profile photo of Alexander Johansson
    Alexander Johansson
    Participant

    Hello,

    Here is a link to the class at msdn:
    https://msdn.microsoft.com/en-us/library/system.security.accesscontrol.filesystemaccessrule(v=vs.110).aspx

    You should also look at "cacls.exe" or "icacls.exe" if you are using win8 or higher.
    I like to use those command line utilities in scripts.

    /Alexander

You must be logged in to reply to this topic.