Solved

VB Script

Posted on 2004-09-29
6
200 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

762 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now