Jump to content

Recommended Posts

Posted

Hi,

I would like to know if it's possible to do a full unattended install of xp and then at the first boot, the setup prompt for computer name and name & org ?

Thanks,

Donbi


Posted

full unatttend ????

if you leave these out then it will prompt you for them.....

if you want it to build and then ask for new name..........maybe a bat file to load under runonce so after you reboot the first time it could put a admin box......for these.....

not sure of the bat file...?

Posted

Here's the VBscript I use to do this. I run it out of RunOnce.

It has one argument which is optional:

CHGOWN.VBS [NEW COMPUTER NAME]

if the argument exists it runs silently.

NOTE: A reboot is still required after running.

2nd NOTE: it will not let you cancel or close you have to click OK or kill it in the device manager.

CHGOWN.vbs

Option Explicit

set args = WScript.Arguments


Set ws = WScript.CreateObject("WScript.Shell")
Dim args, ws, t,  p2, p3, p4, p5, n, j, h, f, k, cj
Dim itemtype,num

num=args.count
if num >0 then cj=args.Item(0)
p2 = "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ComputerName\ComputerName\"
p3 = "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Tcpip\Parameters\"
p4 = "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName\"
p5 = "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\"


j = ws.RegRead(p2 & "ComputerName")
h = ws.RegRead(p3 & "NV Hostname")
f = ws.RegRead(p4 & "ComputerName")
k = ws.RegRead(p5 & "NV Hostname")


t = "Compuer Name Change Utility"
if num=0 then
  do
     cj = InputBox("Type new Computer name and click OK", t, j)
  loop while cj=""
end if

If cj <> "" Then
ws.RegWrite p2 & "ComputerName", cj
ws.RegWrite p3 & "NV Hostname", cj
ws.RegWrite p4 & "ComputerName", cj
ws.RegWrite p5 & "NV Hostname", cj
End If

Posted

CurrentControlSet is a pointer to the control set that was used to boot the PC (usually ControlSet001) so you only actually need to change CurrentControlSet. There may be up to four control sets.

Posted

Hi Thanks to all for the responses, but i don't want a tool or a script to do this, i would like to use the mini-setup after the welcome screeen...

For the tools, i've find this 2 :

Compname

http://www.willowhayes.co.uk/

Baptize

http://www.univ-st-etienne.fr/pub/systeme/...ers/baptize.txt

http://www.univ-st-etienne.fr/pub/systeme/...ers/baptize.exe

but i really want to do this with the mini-setup if possible... i've already seen kind of setup in branded pc when you power on the first time, it's only ask you for your name, company but not installing windows... I think sysprep is used but i don't understand how to integrate in my unattended cd...

Donbi

Posted

@sleepnmojo : I've listed this tools for whose that want to use batch...

I would like to know if someone use sysprep for doing that...

donbi

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