Solved

Rollback changes with LDIFDE (Urgent)

Posted on 2011-03-03
6
337 Views
Last Modified: 2012-05-11
Hi there

I have executed a series of changes in AD and I want the same to be rolledback. I have used the following command: ldifde -i -f file_to_import.ldf

Inside that file some changes are as follow:

dn: CN=34weasdasd-de44-4fc3-a8e6-fda0fd23423491.3434.0023404,CN=SERVER1,CN=RpcServices,CN=System,DC=domain,DC=com
changetype: add
objectClass: top
objectClass: leaf
objectClass: connectionPoint
objectClass: rpcEntry
objectClass: rpcServerElement
rpcNsBindings: ncacn_ip_tcp:SERVER1
rpcNsInterfaceID: 3cc90b05-asd-4fc3-a8e6-asdasd.0234.0004
rpcNsTransferSyntax: 8a885d04-1ceb-11c9-9fe8-asdasdasd.0002.0000

Please I need help urgently
Thanks!
0
Comment
Question by:M7K
  • 4
  • 2
6 Comments
 
LVL 11

Expert Comment

by:Tasmant
ID: 35026491
but do you know what were the values before?
else you need to do an authoritative restore of the objects you have modified
this guilde will help: http://technet.microsoft.com/en-us/library/cc779573%28WS.10%29.aspx
0
 

Author Comment

by:M7K
ID: 35026524
Hi Tasman
This changes were made on a new test domain, so we can remove them as they are made for a particular application.
In that case, should I use ADSI edit and look for the entries manually? or is it there any other easy way to achieve the removal of all the changes I made?

Thanks a mil.
0
 
LVL 11

Expert Comment

by:Tasmant
ID: 35026677
you can use LDIFDE as well as you did the first time.
to clear attributes:
------
dn: CN=34weasdasd-de44-4fc3-a8e6-fda0fd23423491.3434.0023404,CN=SERVER1,CN=RpcServices,CN=System,DC=domain,DC=com
changetype: modify
objectClass: top
objectClass: leaf
objectClass: connectionPoint
objectClass: rpcEntry
objectClass: rpcServerElement
delete: rpcNsBindings
delete: rpcNsInterfaceID
delete: rpcNsTransferSyntax
-

-----
0
 

Author Comment

by:M7K
ID: 35027407
Tasman thats great, one last question, should I remove the objectClass like objectClass: connectionPoint ? if so, how the syntax will be?

Thanks  very much
0
 
LVL 11

Expert Comment

by:Tasmant
ID: 35027639
This should work:

------
dn: CN=34weasdasd-de44-4fc3-a8e6-fda0fd23423491.3434.0023404,CN=SERVER1,CN=RpcServices,CN=System,DC=domain,DC=com
changetype: modify
delete: objectClass
objectClass: connectionPoint
delete: rpcNsBindings
delete: rpcNsInterfaceID
delete: rpcNsTransferSyntax
-

-----
0
 
LVL 11

Accepted Solution

by:
Tasmant earned 500 total points
ID: 35027649
but i cannot answer to your question about removing or not the objectclass attribute.
but if you performed the "add", you should then clean it.
0

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Deleting objects from AD 3 35
Windows 2012 R2 DHCP Policies 10 63
automatic login 1 12
OID and Active Directory Attributes 9 38
Mapping Drives using Group policy preferences Are you still using old scripts to map your network drives if so this article will show you how to get away for old scripts and move toward Group Policy Preference for mapping them. First things f…
Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now