Jump to content

Recommended Posts

Posted

I use these lines in my cmdlines:

ECHO Setting account
COPY "E:\PostInst\renuser.exe" "%SystemRoot%\system32"
renuser administrator wolf
ECHO.

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.


Posted

does NO ONE use help commands anymore?

NET USER WOLF PASSWORD

will change wolf's password to password. As for autologing in....check the website....it's on there.

Posted (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 /?" :rolleyes: i wouldn't ask ppl here if i weren't a noob :)

Edited by wolfshade
Posted

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.

Posted

i found this stuff from Jotnar in the early days:

@echo off
echo Renaming/Creating Accounts
net user guest {s2J234OPH}
renuser guest notguest
net localgroup guests notguest /delete
renuser Administrator admin
net user /add Administrator /active:no /passwordchg:no /passwordreq:yes
netuser Administrator /pwnexp:y
net user Administrator {s2J234OPH}
net localgroup users Administrator /delete

all 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.

Posted

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"

Posted (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 account
COPY "E:\PostInst\renuser.exe" "%SystemRoot%\system32"
renuser administrator wolf
ECHO.

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 by wolfshade
Posted

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.

Posted

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.

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...