Using CSVDE to create a full mailbox-enabled user...

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Tom (PDAAddress_at_yahoo.com)
Date: 09/29/04


Date: 29 Sep 2004 05:27:51 -0700

Hello -

I have seen various posts regarding this all over the Internet and on
Groups but they all seem to miss giving ALL the information necessary
so I am wondering what I am missing. Please, would one of you nice
knowledgable people please inform me.

I am trying to create a group of users using a CSV file. Here is an
example of my two line test file:

cn,objectClass,sAMAccountName,DN,sn,givenName,distinguishedName,displayName,homeMDB,mailNickname,name,userAccountControl,mail,msExchHomeServerName,memberOf,homeDirectory,homeDrive,scriptPath,physicalDeliveryOfficeName,department
"Peters, Betty",user,DPeters,"CN=Peters\\,
Betty,CN=Users,DC=res,DC=ures,DC=com",Peters,Betty,"CN=Peters\\,
Betty,CN=Users,DC=res,DC=ures,DC=com","Peters, Betty","CN=Mailbox
Store (UCEXCH),CN=First Storage
Group,CN=InformationStore,CN=UCEXCH,CN=Servers,CN=uscomp,CN=Administrative
Groups,CN=US Company,CN=Microsoft
Exchange,CN=Services,CN=Configuration,DC=corp,DC=uscomp,DC=com",BPeters,"Peters,
Betty",512,BPeters@ures.com,"/O=U.S. Equities Realty,
Inc./OU=Company/cn=Configuration/cn=Servers/cn=UCEXCH","CN=Resident
Assistants,CN=Users,DC=res,DC=ures,DC=com",\\\\UCFile\\BPeters,H:,logon.bat,DeGault,RA

After doing this I plan on using a batch file to do a dsmod to change
(create) the account's passwords, create the user's home directory,
xcacls to set the permissions on this, and do a rmtshare to create
their home share on the file server.

Ok, that said, I am having major issues with the CSVDE import. When I
run the import I get the following error.

C:\Software\Batch\MKUser>CSVDE -i -f test.csv
Connecting to "domain.ucres.com"
Logging in as current user using SSPI
Importing directory from file "test.csv"
Loading entries.
Add error on line 2: Unwilling To Perform
The server side error is "Access to the attribute is not permitted
because the attribute is owned by the Security Accounts Manager
(SAM)."
0 entries modified successfully.
An error has occurred in the program
No log files were written. In order to generate a log file, please
specify the log file path via the -j option.

I have chosen the above route for creating users because:
1. My company is too cheap to purchase a 3rd party product.
2. DSAdd (as far as I have read) will not create mail or
mailbox-enabled users.
3. CSVDE formatting is easier to create over LDIFDE.

The posts I have seen on the web talk about creating a user and then
mail-enabling them, I would much rather do this in one fell swoop.

Any information you can provide to point me in the correct direction
would be greatly appreciated.

Thanks

Tom



Relevant Pages

  • Using CSVDE to create a full mailbox-enabled user...
    ... I have seen various posts regarding this all over the Internet and on ... their home share on the file server. ... specify the log file path via the -j option. ... CSVDE formatting is easier to create over LDIFDE. ...
    (microsoft.public.exchange2000.admin)
  • Using CSVDE to create a full mailbox-enabled user...
    ... I have seen various posts regarding this all over the Internet and on ... their home share on the file server. ... specify the log file path via the -j option. ... CSVDE formatting is easier to create over LDIFDE. ...
    (microsoft.public.win2000.active_directory)
  • Using CSVDE to create a full mail-enabled user...
    ... I have seen various posts regarding this all over the Internet and on ... specify the log file path via the -j option. ... DSAdd will not create mail-enabled users. ... CSVDE formatting is easier to create over LDIFDE. ...
    (microsoft.public.exchange2000.active.directory.integration)
  • RE: file i/o in multithreaded apps
    ... I'm seeing gaps in the log file using the code I posted - ... the output to a file and that doesn't seem to be missing lines. ... what to lock. ... Get notification to my posts through email? ...
    (microsoft.public.dotnet.framework)
  • Slow browsing thru My Network Places
    ... very slow each time the navigate thru a folder tree on ... the file server. ... I have checked many posts and have not found a solution even though ...
    (microsoft.public.windows.server.sbs)