Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ADMT – Scripting the Users fr om a TXT file – Syntax needed

481 views
Skip to first unread message

Tom Kramlik

unread,
Aug 27, 2003, 4:21:13 PM8/27/03
to
Hey All!

We are in the process of migrating from NT4 to WS03, and we are in the
lab crunching on the ADMT. The GUI is working fine, and we have hit a
challenge with the scripting of the ADMT.

We are trying to get the line below to work importing the names from a
TXT file.
'Migrate specified user objects.
objUserMigration.Migrate admtData, Array(" user name1" ," user
name2" )

Q1) What is the correct format of the TXT file, and what does it need
to contain?

Q2) Who has a valid "objUserMigration.Migrate admtData" line they can
share that pulls their TXT file successfully.


Reference: http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/windowsserver2003/proddocs/deployguide/dssbh_rera_dkpk.asp


Thank You!
Tom

Joe Wu [MSFT]

unread,
Aug 28, 2003, 2:21:46 AM8/28/03
to
Dear Tom,

Thank you for your post.

Just want to let you know that I am currently performing research on this
problem and will get back to you tomorrow. If the issue is urgent, please
let me know.

Thanks!

Regards,
Joe Wu
Product Support Services
Microsoft Corporation

Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
|From: thomas....@visalign.com (Tom Kramlik)
|Newsgroups: microsoft.public.windows.server.migration
|Subject: =?ISO-8859-1?Q?ADMT_=96_Scripting_the_Users_fr?=
| =?ISO-8859-1?Q?om_a_TXT_file_=96_Syntax_needed?=
|Date: 27 Aug 2003 13:21:13 -0700
|Organization: http://groups.google.com/
|Lines: 24
|Message-ID: <300655e7.03082...@posting.google.com>
|NNTP-Posting-Host: 209.71.21.49
|Content-Type: text/plain; charset=ISO-8859-1
|Content-Transfer-Encoding: 8bit
|X-Trace: posting.google.com 1062015674 7794 127.0.0.1 (27 Aug 2003
20:21:14 GMT)
|X-Complaints-To: groups...@google.com
|NNTP-Posting-Date: 27 Aug 2003 20:21:14 GMT
|Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!newsfeed.icl.net!newsfeed.fjserv.net!news-out1.nntp.be!propagator2-ster
ling!news-in-sterling.newsfeed.com!tdsnet-transit!newspeer.tds.net!sn-xit-02
!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!postnews1.google.com!not-for-ma
il
|Xref: cpmsftngxa06.phx.gbl microsoft.public.windows.server.migration:2993
|X-Tomcat-NG: microsoft.public.windows.server.migration

Calebb [MSFT]

unread,
Aug 28, 2003, 12:22:21 PM8/28/03
to
hi,

in the admt install dir there is a templatescript.vbs there is an example.

script line will look like
objUserMigration.Migrate admtFile, "c:\users.txt"

the text file contains a list of user names,each on a new line. The valid
formats are username, domainName\username, user rdn if a source ou is
specified.
so for example

user1
dom\user2
cn=user3


"Tom Kramlik" <thomas....@visalign.com> wrote in message
news:300655e7.03082...@posting.google.com...


> Hey All!
>
> We are in the process of migrating from NT4 to WS03, and we are in the
> lab crunching on the ADMT. The GUI is working fine, and we have hit a
> challenge with the scripting of the ADMT.
>
> We are trying to get the line below to work importing the names from a
> TXT file.
> 'Migrate specified user objects.
> objUserMigration.Migrate admtData, Array(" user name1" ," user
> name2" )
>
> Q1) What is the correct format of the TXT file, and what does it need
> to contain?
>
> Q2) Who has a valid "objUserMigration.Migrate admtData" line they can
> share that pulls their TXT file successfully.
>
>
> Reference:

Tom Kramlik

unread,
Aug 28, 2003, 3:31:38 PM8/28/03
to
Hey Joe! Thanks for your follow-up - I look forward to your reply.
I'm working with MCS, and some internal MS folks said there is
documentation due out on the ADMT in the November timeframe.

This is the actual line I need to modify:
objGroupMigration.Migrate admtFile, "C:\Groups.txt",
Array("begins_with*","*contains*","*ends_with")

I am unfamiliar with, and cant find any documentation on, the admtFile
and Array command.

Any help you can provide would be GREATLY appreciated.
Tom

------------------------


jo...@online.microsoft.com (Joe Wu [MSFT]) wrote in message news:<2Re80ySb...@cpmsftngxa06.phx.gbl>...

Joe Wu [MSFT]

unread,
Aug 29, 2003, 1:23:38 AM8/29/03
to
Dear Tom,

Thank you for your patience.

The text input file simply contains an object (account name) one per line
as Caleb has shown using one of the name formats discussed below.

If migrating objects from a NT4 domain just the account name is usually
specified.

If migrating objects from an Active Directory domain the following name
formats are supported. The following is an excerpt from Chapter 11 of
Microsoft Windows Server 2003 Deployment Kit.

To specify names of users, groups, or computers, use one of the following
conventions:

l The SAM account name. Note that to specify a computer name in this
format, you must append a $ to the computer name. For example, to specify a
computer with the name Workstation01, use Workstation01$.
l The Windows NT account name. This includes the domain name and the SAM
account name. For example, the Windows NT account name of a computer named
Workstation01 that is in the Asia domain is Asia\Workstation01$.
l The relative distinguished name (also known as RDN). For example, cn=
Workstation01.
l The canonical name. This can be specified as DNS domain
name/ou_path/object_name, or ou_path/object_name; for example,
Asia.trccorp.treyresearch.net/Computers/ Workstation01 or
Computers/Workstation01.

ADMT scripting information may be found in the following chapters which are
part of the deployment kit. The deployment kit also includes sample scripts
for performing various migration tasks which are contained in the Job Aids.

Microsoft Windows Server 2003 Deployment Kit

http://www.microsoft.com/windowsserver2003/techinfo/reskit/deploykit.mspx

Designing and Deploying Directory and Security Services

http://go.microsoft.com/fwlink/?LinkId=15308

Ch 10: Restructuring Windows NT 4.0 Domains to an Active Directory Forest
Ch 11: Restructuring Active Directory Domains Between Forests
Ch 12: Restructuring Active Directory Domains Within a Forest

Job_Aids_Designing_and_Deploying_Directory_and_Security_Services.zip

http://download.microsoft.com/download/5/2/f/52f23d76-7d56-44d6-ad25-a95bf0b
e5516/Job_Aids_Designing_and_Deploying_Directory_and_Security_Services.zip

There is also a TemplateScript.vbs file installed in the ADMT installation
folder which documents the script interfaces.

Note that in the example below that the third parameter is used to exclude
objects that have names matching one of the patterns therefore the third
parameter is usually not specified.

objUserMigration.Migrate admtFile, "C:\Users.txt",

Array("begins_with*","*contains*","*ends_with")

Please let us know if anything is unclear. Thanks, and have a nice day!

Regards,
Joe Wu
Product Support Services
Microsoft Corporation

Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
|From: "Calebb [MSFT]" <cal...@online.microsoft.com>
|References: <300655e7.03082...@posting.google.com>
|Subject: Re: ADMT - Scripting the Users from a TXT file - Syntax needed
|Date: Thu, 28 Aug 2003 09:22:21 -0700
|Lines: 47
|X-Priority: 3
|X-MSMail-Priority: Normal
|X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
|X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300
|Message-ID: <et7wWCYb...@tk2msftngp13.phx.gbl>
|Newsgroups: microsoft.public.windows.server.migration
|NNTP-Posting-Host: tide104.microsoft.com 207.46.225.252
|Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
|Xref: cpmsftngxa06.phx.gbl microsoft.public.windows.server.migration:3027
|X-Tomcat-NG: microsoft.public.windows.server.migration

Tom Kramlik

unread,
Aug 29, 2003, 9:58:23 AM8/29/03
to
Calebb \ Joe,

With your help, I got my answer and I am scripting users though like a
champ!

Here is the line from the script file that now runs:
objUserMigration.Migrate admtFile, "d:\Support\admt scripts\ADMT
templates\users.txt", Array("begins_with*","*contains*","*ends_with")

And the USERS.TXT file is a plain file with only user names in it.

Thanks for your help with this!!
Tom


-------------------
jo...@online.microsoft.com (Joe Wu [MSFT]) wrote in message news:<8yh452eb...@cpmsftngxa06.phx.gbl>...

Joe Wu [MSFT]

unread,
Aug 29, 2003, 10:43:20 AM8/29/03
to
Dear Tom,

I am glad to hear that it helps. We look forward to helping you in the
future.

You are always welcome! ^_^

Regards,
Joe Wu
Product Support Services
Microsoft Corporation

Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------


|From: thomas....@visalign.com (Tom Kramlik)
|Newsgroups: microsoft.public.windows.server.migration

|Subject: Re: ADMT - Scripting the Users from a TXT file - Syntax needed

|Date: 29 Aug 2003 06:58:23 -0700
|Organization: http://groups.google.com/
|Lines: 167
|Message-ID: <300655e7.03082...@posting.google.com>
|References: <300655e7.03082...@posting.google.com>
<et7wWCYb...@tk2msftngp13.phx.gbl>
<8yh452eb...@cpmsftngxa06.phx.gbl>
|NNTP-Posting-Host: 12.111.220.126


|Content-Type: text/plain; charset=ISO-8859-1
|Content-Transfer-Encoding: 8bit

|X-Trace: posting.google.com 1062165504 29528 127.0.0.1 (29 Aug 2003
13:58:24 GMT)
|X-Complaints-To: groups...@google.com
|NNTP-Posting-Date: 29 Aug 2003 13:58:24 GMT
|Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-
xit-09!supernews.com!postnews1.google.com!not-for-mail
|Xref: cpmsftngxa06.phx.gbl microsoft.public.windows.server.migration:3041
|X-Tomcat-NG: microsoft.public.windows.server.migration

0 new messages