21 novembre 2010

How to Handle NTFS Folder Permissions, Security Descriptors and ACLs in PowerShell

1. Overview Some time ago, I was automating a few tasks with PowerShell and needed to set NTFS permissions on a folder. I was tempted to use the good old ICACLS.EXE command line, but I wanted to keep it all within PowerShell. While there are a number of different permissions you could want to set for a folder, my specific case called the following: -          Create a new folder -          Check the default permissions on the new folder - ... [Lire la suite]
Posté par jcdemarque à 19:13 - - Commentaires [0] - Permalien [#]
Tags : , , , , , ,