SS Technology Forum

SS Technology Forum

Computer Migration - Things to Consider

Here are a few points which you can consider while doing computer migration. These points are applicable to all migrations irrespective of the migration tool (ADMT, NetIQ, Quest etc)

Active Directory User Migration

Here is a graphical representation of the high level steps involved in an Active Directory migration using ADMT

User Migration and Merging Using Quest Migration Manager

Pre-creating user account in the target domain is a common scenario these days due to single-sign-on solution, HR management procedure etc

Microsoft Right Management Service (RMS)

Rights Management Service (RMS) is an add-on to many RMS aware applications. In this article my main focus is to explain how we can utilize RMS technology with Exchange 2003 and how we can take advantage of RMS technology to increase the email security

Microsoft ISA Server

I am sure we have all either encountered or heard of this "problem" one time or another if the ISA Server is part of the Active Directory Domain. Is it a problem?

Showing posts with label LDIFDE. Show all posts
Showing posts with label LDIFDE. Show all posts

Tuesday, June 14, 2011

Searching Active Directory Using DSQUERY and LDAP Query

Here are some useful DSQUERY and LDAP query commands to search Active Directory.  

The following query lists all users with dial-In access permission (allow) in Active Directory: 

Using LDAP custom query - (&(objectClass=User)(objectCategory=Person)(msNPAllowDialin=TRUE))

image

Using DSQUERY command:

Dsquery * -filter ("&(objectClass=User)(objectCategory=Person)(msNPAllowDialin=TRUE)") -attr name

image

The following query lists all enabled user account that have never been logged into before: 

LDAP Query - (&(objectCategory=person)(objectClass=user)(!userAccountControl:1.2.840.113556.1.4.803:=2)(!lastLogonTimeStamp>=1))

image

Using DSQUERY Command:

dsquery * -filter ("&(objectCategory=person)(objectClass=user)(!userAccountControl:1.2.840.113556.1.4.803:=2)(!lastLogonTimeStamp>=1))" –limit 0 -attr name description

image

Tuesday, November 17, 2009

Testing Exchange Recipient Policy Filter using LDIFDE

Here is procedure which I used to test the Exchange Recipient Policy Filter manually. I have used the Ldifde.exe tool to perform this task.

Here is the syntax I used:

Ldifde -s <DC Name> -r "<Paste your Filter here>" -f <Output File Name> -l samaccountname

Also, you can see the ldifde syntax and details in the following KB article:

http://support.microsoft.com/kb/237677

Thursday, September 13, 2007

How to Import and Export Directory Objects Using LDIFDE command

You can use the Ldifde.exe utility to export all directory objects to an .ldf file. The following command searches Houston OU and creates a file called exportdirectory.ldf containing those objects and its attributes:

Export Command ldifde -m -f c:\exportdirectory.ldf -d "OU=Houston,dc=Sivarajan,dc=Lab"

This command will export all the directory objects inside Houston OU to exportdirectory.ldf file.

The reason I used "-m" switch is, it will automatically strip all system-owned attributes when exporting the objects.   If you don't use "-m" or filter using "-r" or "-o" option, you will get the following error message when you try to import the objects into Active Directory

"Unwilling to perform. The modification was not permitted for security reasons"

Import Command

ldifde -i -f c:\exportdirectory.ldf

Also, you can use CSVDE command to import and export Active Directory objects.

Export Using CSVDE command

csvde -f c:\exportdirectory.csv -d "OU=Houston,dc=Sivarajan,dc=Lab"

Import Using CSVDE command

csvde -i -f c:\exportdirectory.csv

Popular Posts

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More