?
Solved

VB Script

Posted on 2004-09-29
6
Medium Priority
?
207 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 5

Accepted Solution

by:
naiea1231 earned 2000 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month8 days, 5 hours left to enroll

765 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