Jump to content

Recommended Posts

Posted

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 off
title Setting registered owner and creating auto logon account
cls & 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% /add
net localgroup Administrators "%username%" /add
if exist %systemdrive%\install\autologon.reg del %systemdrive%\install\autologon.reg
echo Windows Registry Editor Version 5.00 > %systemdrive%\install\autologon.reg
echo. >> %systemdrive%\install\autologon.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] >> %systemdrive%\install\autologon.reg
echo "DefaultUserName"="%username%" >> %systemdrive%\install\autologon.reg
echo "DefaultPassword"="%password%" >> %systemdrive%\install\autologon.reg
echo "AutoAdminLogon"="1" >> %systemdrive%\install\autologon.reg
REGEDIT /S %systemdrive%\install\autologon.reg
echo Windows Registry Editor Version 5.00 > %systemdrive%\install\user.reg
echo. >> %systemdrive%\install\user.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion] >> %systemdrive%\install\user.reg
echo "RegisteredOwner"="%realname%" >> %systemdrive%\install\user.reg
echo "RegisteredOrganization"="%business%" >> %systemdrive%\install\user.reg
REGEDIT /S %systemdrive%\install\user.reg
echo. & echo. & echo. & echo User Account created successfully . . .
pause


Posted

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% /add
net localgroup Administrators "%username%" /add

the error is

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

Posted

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)

Posted

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.

Posted

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

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