header
header Register : : Login header
header
divider
menuleft
menuright
submenu
left

[August 25th, 2008] Check the home page regarding PowerShell related news from a brand new sponsor: Idera

Set permissions on DNS Zone objects
Last Post 03 Jul 2008 03:12 PM by bsonposh. 7 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Marsh1977User is Offline
New Member
New Member
Posts:3

--
01 Jul 2008 12:29 AM  

Hi

Got a strange one. It seems that Reverse Lookup up zones can be found in 3 locations in AD:

CN=MicrosoftDNS,CN=System,DC=pc,DC=internal,DC=macquarie,DC=com

CN=MicrosoftDNS,DC=ForestDNSZones,DC=pc,DC=internal,DC=macquarie,DC=com
CN=MicrosoftDNS,DC=DomainDNSZones,DC=pc,DC=internal,DC=macquarie,DC=com

We have in excess of 300 reverse lookup zones that are spread between these three locations. Permissions on the later two locations are incorrect which has resulted in inherited permissions being incorrect on the zones located therein. This is fine because I can manually add Full Control permissions for the DNSAdmins group and this will be inherited by the zones below.

Unfortunately, admins have made manual changes on various zones adding their personal accounts with Full Control access. I want to clean this up but don't feel like going through the 300 odd entries to manually remove explicitly assigned permissions.

Is there a way to run a script to remove explicitly assigned permissions on the child "zone" objects leaving just any inherited permissions?

Thanks

Keith

 

 

 

 

 

 

bsonposhUser is Offline
Basic Member
Basic Member
Posts:388

--
01 Jul 2008 02:19 PM  
You have two ways to do this. You can do via Set-ADACL on my site http://bsonposh.com/archives/289 if you use this you will need to get the default ACL from the schema and then apply it to the container.

or in this case the easiest way is to use dsacls.exe
dsacls.exe /resetDefaultDACL

you can wrap that in foreach.
Marsh1977User is Offline
New Member
New Member
Posts:3

--
02 Jul 2008 06:51 AM  

Thanks Brandon

FYI dsacls /resetDefaultDACL is only available for ADAM

dsacls /N /S does the same thing. I am going to use a FOR command with an input file to run through them all.

Thanks for your help

 

bsonposhUser is Offline
Basic Member
Basic Member
Posts:388

--
02 Jul 2008 01:15 PM  
that is catagorically untrue. I have used resetDefaultDACL for years.
bsonposhUser is Offline
Basic Member
Basic Member
Posts:388

--
02 Jul 2008 01:32 PM  
btw... if this 2003 I would move all your DNS zones to app partitions and remove them from the systems container. You will get more control over replication (including to other domains) and your not shipping your dns crap to DCs that do not need it (unless all your DCs are DNS servers.)
Marsh1977User is Offline
New Member
New Member
Posts:3

--
02 Jul 2008 11:41 PM  

Thanks for that but all our DCs are DNS servers.

Regarding /resetDefaultDACL - have a look at this post http://www.fixya.com/support/t26213-corrupted_object_in_ad

I tried to use it and it is not recognised. It is not even displayed when running  dsacls /?

 

bsonposhUser is Offline
Basic Member
Basic Member
Posts:388

--
03 Jul 2008 12:21 AM  
I ran this in 2008 and 2003... both worked for me.

I know Dmitri so I sent him an email to clarify this.
bsonposhUser is Offline
Basic Member
Basic Member
Posts:388

--
03 Jul 2008 03:12 PM  
Ok Spoke to Dmitri and here is the whole story in one post :) Summarized for brievity

Marsh1977 Posts: I want like to reset some objects to default ACL

BS (Thinks): I know I have done this before using dsacls. Let me look at the help (on 2k8). OH! there it is /resetDefaultDACL. Lets try it. Worked (on 2k8!) Post the answer.

BS (replies): try dsacls.exe /resetDefaultDACL

Marsh1977 (replies): FYI dsacls /resetDefaultDACL is only available for ADAM... dsacls /N /S does the same thing.

BS (thinks): That has to be wrong (resetDefaultDACL)... I literally JUST used it and I know I have used this functionality a dozens of times in the past couple of years.

BS (replies): that is catagorically untrue. I have used resetDefaultDACL for years. (side note) move your zones.

Marsh1977: have a look at this post http://www.fixya.com/support/t26213-corrupted_object_in_ad

BS (reads/thinks): Hey.. I know Dmitri and he is likely the writer of dsacls... let me ask him. It is QUIET often that MS says not supported when it works.

BS replies: I will talk to Dmitri.

BS (emails back and forth Dmitri): Concensus is that while dsacls in 2k3 might have worked (depending on build,) it was not ment to. I most likely used /S in the past and just thought it was /resetDefaultDACL because they effectively do the same thing. resetDefaultDACL does it on Server and /S does it on client (not user /N is needed. I think it is implied with /S.)
You are not authorized to post a reply.

Active Forums 4.1
right
   
footer Sponsored by Quest Software • SAPIEN Technologies • ShellTools, LLC • Microsoft Windows Server 2008 footer
footer