Solved

VB Script

Posted on 2004-09-29
6
203 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…

789 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