Jump to content

Recommended Posts

Posted

Greetings, i am Natio.

I have a single question for you guys.

i am using Cmdlines.txt for my applications that i want installed in an unattended windows XP version.

Now i reached the user adding section in the fine guide by Alanoll.

It tells me to add another line to Cmdlines.txt, however i dont know which one to put first :/

My Cmdlines.txt looks like this:

"RunOnceEx.cmd"

Can you guys help me here?

Thanks very much in advance :)

-Nate.


Posted

Yes i know, but the info the guide wants me to add to the cmdlines.txt is:

"useraccounts.cmd"

and i dont know which one to put first :(

Posted (edited)

It dosen't matter, so just place it wherever you wan't.

It only matters if the batchfiles depends upon eachother, like e.g. if one sets up a user and the other edits something about that user account(ok, a little bad example, but just to show a scenario), then of course the one which sets up the user needs to come first, but in this case it's irrelavant...

Edit: Beaten by ricktendo64 :)

Edited by Martin H
Posted
You can add multipple commands to cmdlines.txt

And I don't think the order will matter much

Okay, thanks for the advice, i will try :D

But what would be most logical to do for the computer first: make users OR Install programs from RunOnceEx ?

Posted

I suspect all RunOnceEx.cmd will do is add a reg entrie... It wont actually do anything

BTW cmdlines.txt will get executed when there are 13 mins left in your install, it will make your user account (useraccounts.cmd) and add a reg entrie to run your silent installs on 1st login (RunOnceEx.cmd)

Posted (edited)

As i said, then it dosen't really matter what you place first, but i would personally incorporate both the user-accounts batchfile + the RunOnceEx batchfile into one single batchfile.

I would then just add something like this to the beginning of my RunOnceEx.cmd file :

net user "Martin Hertz" xxxxx /add
net localgroup Administrators "Martin Hertz" /add
net accounts /maxpwage:unlimited
set key="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
reg add %key% /v DefaultUserName /d "Martin Hertz" /f
reg add %key% /v DefaultPassword /d xxxxx /f
reg add %key% /v AutoAdminLogon /d 1 /f

Edited by Martin H
Posted
As i said, then it dosen't really matter what you place first, but i would personally incorporate both the user-accounts batchfile + the RunOnceEx batchfile into one single batchfile.

I would then just add something like this to the beginning of my RunOnceEx.cmd file :

net user "Martin Hertz" xxxxx /add
net localgroup Administrators "Martin Hertz" /add
net accounts /maxpwage:unlimited
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /d "Martin Hertz" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /d xxxxx /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /d 1 /f

Ok thx a bunch :thumbup

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...