This was posted earlier in the XPembedded zone, but I broadened the scope of it to Windows zone, as the solution needed isn't specific to XPe but could be applied to XPpro and W2k as well.
Main Topics
Browse All TopicsGood morning (or whatever time it is),
I need some help. My knowledge of VBscript is sub-minimal. I'm a hardware/network guy. I've been assigned a project though where I must automate some workstation tasks for technicians in the field supporting a XP embedded hardware solution. I've been searching the web trying to find working VBscript that'll accomplish the following items:
- change computer name (prompt user for name)
- join domain (prompt user for domain name)
- enter name of account w/ join domain privileges (prompt user)
- enter password of account w/ join domain privileges (prompt user)
- prompt user for useraccount to assign to AutoAdminLogin in registry
- prompt user for password of useraccount for AutoAdminLogin
- prompt user for domain of useraccount for AutoAdminLogin
- apply AutoAdmin changes in registry
- restart workstation (necessary?)
I've come across a lot of examples of change computer name, join domain scripts that work to a degree but always end up erroring out in some shape or fashion. Is there any VBscript gurus out there who could help me with this or point me in the right direction? Thanks a ton in advance!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: mrgaskillPosted on 2008-12-05 at 07:30:25ID: 23105542
Set WshShell = WScript.CreateObject("WScr ipt.Shell" ) indows NT\CurrentVersion\WinLogon \DontDispl aylastUser name", "0", "REG_SZ" indows NT\CurrentVersion\WinLogon \DefaultUs erName", username, "REG_SZ" indows NT\CurrentVersion\WinLogon \DefaultDo mainName", "MYDOMAIN", "REG_SZ" indows NT\CurrentVersion\WinLogon \DefaultPa ssword", password, "REG_SZ" indows NT\CurrentVersion\WinLogon \AutoAdmin Logon", "1", "REG_SZ" indows NT\CurrentVersion\WinLogon \LegalNoti ceText" indows NT\CurrentVersion\WinLogon \LegalNoti ceCaption"
indows NT\CurrentVersion\WinLogon \DefaultUs erName", username, "REG_SZ"
indows NT\CurrentVersion\WinLogon \DefaultUs erName", InputBox("Enter the name of user to automatically login") , "REG_SZ"
WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\W
WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\W
WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\W
WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\W
WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\W
WshShell.RegDelete "HKLM\SOFTWARE\Microsoft\W
WshShell.RegDelete "HKLM\SOFTWARE\Microsoft\W
Set WshShell=Nothing
Would it be possible to use this script to make the AutoAdminLogon changes? How would I make it interactive? For example: this line of code:
WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\W
change to this?
WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\W