[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

Create a local profile on Windows XP machine for a Domain user.

Asked by PilzberryFroBoy in VB Script

I have been tasked with rolling out several hundred new computers.  

The computers will all be imaged and will not be joined to the domain until they are physically on the clients desk.  The trick is, I need to take some data from their local profile on their current machine, and migrate it to the new workstation.  

So, I created a script to pull their data, and store it to a server until the new computer is added to the domain, and the user logs on with their Domain Account.
I read the solution here: http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_23091801.html, but I'd need the user's ID and Password.  As it stands, an admin still has to logon when the new computer is booted up, so it can be added to the domain, and computer name changed.

I tried a solution where the registry keys that go along with the user's SID are created, but when the user logs on, Windows just overwrites the values with new information, and creates a profile folder called USERID123.DOMAINNAME. So, I tried modifying the folder path to create a profile folder called USERID123.DOMAINNAME, and again, it overwrote the registry keys and created a profile folder called USERID123... Yes, I wanted to slap myself multiple times about the face and neck, but I thought I might get canned for that.  So I'm here asking for your help.  I have no cookies though, sorry.

This is a working function I scraped together to try the above note.

Function createUserProfile(userSID, userID)
Const HKLM = &H80000002
'userSID = "S-1-5-21-12345678-1234567890-1234567890-12345"
'userID = "USERID123"
strKey = "Software\Microsoft\Windows NT\CurrentVersion\ProfileList"
strComputer = "."

Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
strUserKeyPath = strKey & "\" & userSID
oReg.CreateKey HKLM, strUserKeyPath

strUserPathKeyName = "ProfileImagePath"
strUserPathValue = "%SystemDrive%\Documents and Settings\" & userID
oReg.SetExpandedStringValue HKLM,strUserKeyPath,strUserPathKeyName,strUserPathValue

strUserFlagKeyName = "Flags"
strUserFlagValue = 1
oReg.SetDWORDValue HKLM,strUserKeyPath,strUserFlagKeyName,strUserFlagValue
Set oReg = Nothing

Set objFSO = CreateObject("Scripting.FileSystemObject")
userFolderPath = "C:\Documents and Settings\" & userID
objFSO.CreateFolder userFolderPath
objFSO.CreateFolder userFolderpath & "\Cookies"
objFSO.CreateFolder userFolderpath & "\Desktop"
objFSO.CreateFolder userFolderpath & "\Favorites"
objFSO.CreateFolder userFolderpath & "\My Documents"
objFSO.CreateFolder userFolderpath & "\Start Menu"
Set objFSO = Nothing
createUserProfile = "Successfully created profile for " & userID
End Function

What I'm really getting at is, I want to create the a local profile for a domain user before they ever log on, and without having to use their ID/Password credentials.

Anyone?  Anyone?  BUELLER?

If you read all that, thank you!
[+][-]03/10/09 10:46 PM, ID: 23854181Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/10/09 11:07 PM, ID: 23854258Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/10/09 11:15 PM, ID: 23854292Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: VB Script
Sign Up Now!
Solution Provided By: RobSampson
Participating Experts: 2
Solution Grade: A
 
[+][-]03/11/09 05:37 AM, ID: 23856345Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/11/09 11:33 AM, ID: 23860611Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/11/09 12:44 PM, ID: 23861472Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/16/09 01:10 PM, ID: 23901857Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/27/09 09:48 PM, ID: 24007273Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/06/09 11:15 PM, ID: 24084314Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/16/09 10:54 PM, ID: 24165133Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/16/09 11:17 PM, ID: 24165223Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/16/09 11:20 PM, ID: 24165237Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/16/09 11:27 PM, ID: 24165269Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_FREE_TRIAL_20090127