wolfshade Posted June 11, 2004 Posted June 11, 2004 I use these lines in my cmdlines:ECHO Setting accountCOPY "E:\PostInst\renuser.exe" "%SystemRoot%\system32"renuser administrator wolfECHO.What i need now is a way to set a password for this account automatically and make it boot automatically too( w/o prompting for password )I want this to avoid the fact that if i set pass in answer file for admin and rename the admin the system give me a warning that he can't log it on (obviously since i changed admin name).I have to do it this way cuz i want the dir for "current user"(me) to be called "wolf" as well and if i change name from GUI it won't happen.
Alanoll Posted June 11, 2004 Posted June 11, 2004 does NO ONE use help commands anymore?NET USER WOLF PASSWORDwill change wolf's password to password. As for autologing in....check the website....it's on there.
wolfshade Posted June 11, 2004 Author Posted June 11, 2004 (edited) 10x a lot ... the Autologon stuff doesn't work cuz i rename the admin and setup isn't informed of that(strange) ... it works if i leave teh admin alone while i use a pass on it....so i need a tweak or something to autologon w/o prompting me for pass i didn't find anything so far...oh i remember (allanol) that u didn't understand the "for" sintax, just type "for /?" i wouldn't ask ppl here if i weren't a noob Edited June 11, 2004 by wolfshade
Alanoll Posted June 11, 2004 Posted June 11, 2004 oh I understand the for syntax, I just don't understand the logic. There is a slight difference. I was taught for (int x = 0, x < 10; x++) or something similar. The dos for command is alittle different. Haven't rationalized it to the C++ for like I know.what does it matter what Setup was told? The logon only takes affect after setup is complete. So you need a regedit to do that. Which is all that's neccesary, is on the site.
wolfshade Posted June 11, 2004 Author Posted June 11, 2004 i found this stuff from Jotnar in the early days:@echo offecho Renaming/Creating Accountsnet user guest {s2J234OPH}renuser guest notguestnet localgroup guests notguest /deleterenuser Administrator adminnet user /add Administrator /active:no /passwordchg:no /passwordreq:yesnetuser Administrator /pwnexp:ynet user Administrator {s2J234OPH}net localgroup users Administrator /deleteall i need is the /pwnexp:y switch???(password never expires)P.S. i don't get the batch for at all ... i got an example in a recent quicklaunch post but i just didn't get the "options" bit nor the other flags ... have to do more research.
Alanoll Posted June 12, 2004 Posted June 12, 2004 netuser I believe is a seperated program. it's not NET USER like in the other commands.
[BM]Crusher Posted June 12, 2004 Posted June 12, 2004 for the autologon, you need the autologon.reg same as always (as explained in the MSFN unattended guide which seems to be down atmo)Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="Some Username""DefaultPassword"="apassword""AutoAdminLogon"="1"
[BM]Crusher Posted June 12, 2004 Posted June 12, 2004 FOR /L %%x IN (1,1,10) DO echo x equals %%xi think that equates to your C command?
wolfshade Posted June 12, 2004 Author Posted June 12, 2004 10x [bM] Crusher u're da man ... the site seems to be working fine ... i rather stick to c++ for now
wolfshade Posted June 12, 2004 Author Posted June 12, 2004 (edited) hmmm this still doesn't work ... it still tells me that he can't autologon(he can't logon me under this account)although it doesn't prompt me for anything afterwards and it logs me as wolf. i used this:ECHO Setting accountCOPY "E:\PostInst\renuser.exe" "%SystemRoot%\system32"renuser administrator wolfECHO.and the reg tweak like this:;Setting password and autologon[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultPassword"="10101980""AutoAdminLogon"="1"why doesn't the setup like renaming the admin and setting pass and autologon like this?lemme get this straight : "DefaultUserName" is really the admin account? then why it doesn't accept renaming instead using tweak to overwrite? Edited June 12, 2004 by wolfshade
Alanoll Posted June 12, 2004 Posted June 12, 2004 you gotta tell it the user too....you can't just tell it the Password and expect it to work.....DefaulUserName is the name of the account you want to logon with.
wolfshade Posted June 12, 2004 Author Posted June 12, 2004 Then whats with the admin account i rename cuz i check with the regs and see that default user has been made wolf anyway w/o the tweak(renuser method) so all i have to do is add the pass and autologon flag --so obviously it wont work! cuz its the same thing.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now