Jump to content

change registered name via dos?


Recommended Posts

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

Link to comment
Share on other sites


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

Link to comment
Share on other sites

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

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