MSFN Forum: I have many computers in my network - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

I have many computers in my network how to make an Unattended install including all my computer names and Rate Topic: -----

#1 User is offline   hadoka 

  • Group: Members
  • Posts: 1
  • Joined: 20-October 06

Posted 20 October 2006 - 08:17 PM

Hi everybody

I have a question, I have many computers in my networks and i use deffirent computer names and workgroups for each.

My question is how to make an Unattended install including all my computer names and workgroups , which allow me to chose for every computer i would like to install a new windows to chose its name and work group .

Or i have to make a cd for each one???

and also how do relate there ip address to each one?

This post has been edited by hadoka: 20 October 2006 - 08:20 PM



#2 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,249
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 21 October 2006 - 10:22 AM

I set my install to give the machine a randomly generated name and then run a script at first login (I also set the machine to autologin twice) to get the ip address and and nslookup on the address to get the registered computer name and then change the computer name. We don't care what the workgroup name is so I set all of them to the same thing. If the workgroup it is supposed to be in is returned by nslookup you could parse it out and assign it there otherwise you will have to have a way to associate a machine name to a workgroup.

Hope this helps.

#3 User is offline   Telenut 

  • Member
  • PipPip
  • Group: Members
  • Posts: 147
  • Joined: 24-February 05

Posted 22 October 2006 - 07:57 AM

I'm verry interested in the script

Would it be possible to change the registration key on the same way? (yes indeed, they don't want to pay for a corporate licence... we have to activate every single computer after a restore)

#4 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,249
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 22 October 2006 - 09:47 AM

I'll post the script tomorrow when I get to work.

As far as changing the product key you would need to have a file somewhere that related the machine to a particular product key. something as easy as a text file with tab or comma separated values would work. then after configuring the name you could search the file for the computer name and license number and change it using the scripts microsoft provides.

Do you want the vbscript or the cmd script? or both?

This post has been edited by IcemanND: 22 October 2006 - 09:47 AM


#5 User is offline   cluberti 

  • Gustatus similis pullus
  • Group: Supervisor
  • Posts: 11,001
  • Joined: 09-September 01
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 22 October 2006 - 09:48 PM

If you've got a Windows Server that you have access to, this can be done via RIS. It can also be configured via unattended install scripts started via WinPE before installation, or via scripts called from the GuiRunOnce section after installation. Have you visited the unattended site here on MSFN?

#6 User is offline   Telenut 

  • Member
  • PipPip
  • Group: Members
  • Posts: 147
  • Joined: 24-February 05

Posted 23 October 2006 - 09:20 AM

Both would be welcome.
It has been a while since a visited the unattended part, and I can not remember that it contained something similar.
Have to take a look at it again I guess...
Will be for the weekend. Too much work now :s

#7 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,249
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 26 October 2006 - 01:33 PM

Sorry it took so long been out sick.

here is the cmd script to get the name from the network: Change the 188 to the first octect of you IP addreses, or if you want to further narrow it change that same line to include more of the for variables.
%c %d %e %f would be the entire ip address with spaces between the octets.
for /f "tokens=1-6* Delims=.: " %%a in ('ipconfig /all') do (
	if "%%a %%b %%c"=="IP Address 188" (
		for /f "tokens=1,2* delims=:. " %%x in ('nslookup %%c.%%d.%%e.%%f') do (
			if "%%x"=="Name" wscript chgown.vbs %%y
		)
	)
)


And here is the VBScript (named: chgown.vbs)I used to change the name pilfered from somewhere and modified to take an argument to change the name to or prompt for one if not given.
'ChgOwnOrg.vbs - Change Win9x Registered Owner/Organization.
'Modified for Windows XP

Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration",,48) 
For Each objItem in colItems
	strIPAddress=objItem.IPAddress(0)
	arrIPAddress=split(strIPAddress,".")
	objitem.DNSName
	if arrIPAddress(0)="129" and arrIPAddress(1)="74" then 
		cj=objitem.DNSHostName
	end if
next

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)
end if

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\"

if num=0 and cj="" then
   t = "Computer Name Change Utility"
   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


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy