|
|
|
|
|
|
|
Browse Blog Posts by Tags
-
In my previous post in this series, I showed how easy it is to work with enumerations in PowerShell. Here's the code I've been walking through in this series: $dacl = (dir foo.txt).GetAccessControl() $newRule = New-Object Security.AccessControl.FileSystemAccessRule "keith", Modify, Allow $modified =...
-
In part 3 , I walked through the following line of code: $newRule = New-Object Security.AccessControl.FileSystemAccessRule "keith", Modify, Allow I pointed out how the "Modify" was automatically converted into an enumeration value, promising that I'd talk more about enumerations later. Well, this value...
-
In my last post , I showed how to retrieve a file system ACL (well, technically a security descriptor ) via PowerShell. Today I'll show you how to tweak that ACL using System.Security.AccessControl. $newRule = New-Object Security.AccessControl.FileSystemAccessRule "keith", Modify, Allow This next line...
-
In my last post , I introduced a short little script that adjusts the security settings on a file. There are a number of fine points about PowerShell syntax and Windows security concepts that this little script relies upon, and I'm going to walk through them a little bit at a time so that you really...
-
2007 marked the year that I switched shells. I used to use the Hamilton C Shell , which was powerful and integrates exceptionally well with Windows, but I found myself constantly having to relearn the script syntax whenever I'd want to do something. So when PowerShell came along, I bought Bruce's book...
|
|
|
|
|
|