Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

batch file question

Status
Not open for further replies.

DavidBrent

Technical User
Jul 8, 2005
18
GB
sorry if this is in the wonrg place!!?

Dear all,

i'm very new to batch files. I currently have to come in at the weekend and test machines after they have been moved. I log on as admin and have to use a tiny program which resets the users winlogon:

editbox "User ID" "Please enter the user's ID"

regset "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" DefaultUserName %result%
regset "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" DefaultDomainName EUR
GOTO EOF

:EOF

i would like to know how to run the program and then for the paste funtion to automatically insert the users logon that i have 'copied' before logging on as an administrator.

i hope this makes sense!?

i have this in my bat file so far...

start l:\ecr_temp\UsernameReset.wbt

which i have tested and it starts up the right thing, but then would like an automatic 'paste' to be actioned into that box, is this possible?

many thanks in advanced.

Ricky
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top