Solved

VB Script

Posted on 2004-09-29
6
202 Views
Last Modified: 2010-04-23
We are migrating users from one domain to another which means that profiles must be created to match the one they used in the old domain.
Is it possible for a vb script to automate this? Example: outlook profile settings, desktop shortcuts from old profile to new profile. With 200 users I would sure like to automate as much as possible.
Thanks
Donnie
0
Comment
Question by:Donnie4572
  • 3
  • 2
6 Comments
 

Expert Comment

by:Blitzman
ID: 12185191
0
 
LVL 12

Author Comment

by:Donnie4572
ID: 12189691
This is good migration script but I'm looking for script that can move local desktop settings/profile
C:\Documents and Settings\username domain1'''''''''''''''''''TO'''''''''''''''''''''''''C:\Documents and Settings\username domain2
0
 
LVL 5

Expert Comment

by:naiea1231
ID: 12189964
So your essentially looking for a way to automate the moving of a lot of folders while changing their name to the second domain? If this is the case all you need to do is enumerate the folders in the documents and settings and manipulate the string of the folder name to change the domain. This can be done using file i/o with commands like
Directory.Move
for moving the directories
GetDirectories
to enumerate subfolders

If you need some help with string manipulation let us know, but the actual code won't be too complex, although if you want to provide details on the domain names i'll be write something for you.

James
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 5

Accepted Solution

by:
naiea1231 earned 500 total points
ID: 12190062
My apologies, i'd forgotten you were using vbscript so system.IO might not be an option, you can however use FSO, there is a good article on it here:

http://www.winnetmag.com/WindowsScripting/Article/ArticleID/8184/8184.html

I'm still happy to give you a hand if you need it :) but give it a go first

James
0
 
LVL 12

Author Comment

by:Donnie4572
ID: 12190178
Very Good! I will try this. Thanks.
0
 
LVL 12

Author Comment

by:Donnie4572
ID: 12205229
Works well Thanks. I can imagine lots cool stuff for FSO.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB.Net - TypeInitializer Error 25 26
ASP/VB email question 4 33
Winform Module - What is the ASP.Net equiv 2 19
Help with preventing selection from a combobox 11 23
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

776 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