[BM]Crusher Posted May 20, 2004 Share Posted May 20, 2004 ok i already know you can create user accounts and set an auto-logon account through dos, as well as being able to change the computer name...but how do you change the "Registered Owner" through dos?is there a handy little utility to do this, or is it a simple matter of making a reg tweak to do it?i know how to make a reg tweak that does it... but it seems like there should be some easy to use little utility to do it for me?@echo offtitle Setting registered owner and creating auto logon accountcls & echo. & echo. & echo. & echo. & echo.set /p username=Enter your desired user name : echo.set /p password=Enter your desired password : echo. & echo.set /p realname=Enter your full name : echo.set /p business=Enter your organisation name : echo. & echo.net user "%username%" %password% /addnet localgroup Administrators "%username%" /addif exist %systemdrive%\install\autologon.reg del %systemdrive%\install\autologon.regecho Windows Registry Editor Version 5.00 > %systemdrive%\install\autologon.regecho. >> %systemdrive%\install\autologon.regecho [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] >> %systemdrive%\install\autologon.regecho "DefaultUserName"="%username%" >> %systemdrive%\install\autologon.regecho "DefaultPassword"="%password%" >> %systemdrive%\install\autologon.regecho "AutoAdminLogon"="1" >> %systemdrive%\install\autologon.regREGEDIT /S %systemdrive%\install\autologon.regecho Windows Registry Editor Version 5.00 > %systemdrive%\install\user.regecho. >> %systemdrive%\install\user.regecho [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion] >> %systemdrive%\install\user.regecho "RegisteredOwner"="%realname%" >> %systemdrive%\install\user.regecho "RegisteredOrganization"="%business%" >> %systemdrive%\install\user.regREGEDIT /S %systemdrive%\install\user.regecho. & echo. & echo. & echo User Account created successfully . . .pause Link to comment Share on other sites More sharing options...
[BM]Crusher Posted May 20, 2004 Author Share Posted May 20, 2004 I just tested my new USERACCOUNTS.CMD file in an unattended install, but I get an error with the following lines:net user "%username%" %password% /addnet localgroup Administrators "%username%" /addthe error isSystem error 1317 has occurred.The specified user does not exist.it is the second line (net localgroup) that causes the error?If I run this through windows it works fine... Link to comment Share on other sites More sharing options...
[BM]Crusher Posted May 20, 2004 Author Share Posted May 20, 2004 bumping this back to the to of the list.... really annoying me (annoying me the most because I did it within windows and it created the user account and it worked) Link to comment Share on other sites More sharing options...
jondercik Posted May 20, 2004 Share Posted May 20, 2004 The variable %username% is used and created by the system. You may want to change this variable to somethign else. To see all the variables your system has defined, from a cmd window type set|more. Link to comment Share on other sites More sharing options...
sleepnmojo Posted May 21, 2004 Share Posted May 21, 2004 Only time I have seen this error, is when username == computername. See if that is the case. Link to comment Share on other sites More sharing options...
Jazz Posted May 21, 2004 Share Posted May 21, 2004 umm how did u change the computer name ? i can change it via a vbs but its not being displayed in the My computer -> computername, also all the networking options should now use the new computername.. Please let me know how to do that..BYe,Jazz Link to comment Share on other sites More sharing options...
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