AGDLP It seems I have been mildly distracted away from the title of this blog site. It does say AD Admin, but I seem to have been taken away by file system stuff. I have to say, it has all been worthwhile, but it’s probably time I got back to the real heart of what I do. There are probably a million permission assigning advice pages, but I thought I would put another one out there after referring to AGDLP in my last post. So, what is this all about – AGDLP. Well, it is something I learned in my MCSE 2003 studies and has become ingrained into my ideals since. As a contractor, I get to move job often. This enables me to forge opinions on how to configure things in a domain, and more importantly how NOT to configure things. AGDLP is definitely on the to do list…for anyone in any size domain or forest, as it follows some very basic principals. I will explain these whilst I go through what AGDPL stands for. A A is for...
Minor bug?
ReplyDeleteWhen I create a new folder and share, and then add-ntfspermission, my script adds the permission, but the inherited permissions are not included.
The only way I can get these to populate is either from a remote access to the folder to select the security tab, advanced, change permissions and select the "Replace all child permissions....etc" checkbox. Or on the server where the folder's been created, select the folder and when I get the prompt I don't have permissions..."continue?" Select continue and everything fine, permission entries are then populated.
Regards
Ian
can you post your code please? changing the names of anything important of course :) I'll try to emulate your issue
Deletecheers
Hi there
DeleteApologies, just seen your response.
Unfortunately, I've changed the code somewhat and don't have the original. I believe, my workaround was to create the folder first using New-Item as per:-
New-Item -Path \\server\d$\foldername -ItemType Directory
Add-NTFSPermission -path \\server\groups\$folder -object $resourcename -Permission Modify | Out-Null
New-FileShare -name $folder -server servername -path path | Out-Null
Cheers
Ian