» Site Navigation |
|
|
» Stats |
Members: 9,496
Threads: 11,750
Posts: 55,298
Top Poster: Nick (4,981)
|
| Welcome our newest member, JessicaD |
» Online Users: 37 |
| 0 members and 37 guests |
| No Members online |
| Most users online at once 294, 06-30-2007 at 12:24 PM. |
» March 2010 |
| S |
M |
T |
W |
T |
F |
S |
| 28 |
1
|
2
|
3
|
4
|
5
|
6
|
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
|
14
|
15
|
16
|
17
|
18
|
19
|
20
|
|
21
|
22
|
23
|
24
|
25
|
26
|
27
|
|
28
|
29
|
30
|
31
| 1 | 2 | 3 |
|
 |
01-28-2010, 10:16 AM
|
#1 (permalink)
|
Status: Junior Altiris Admin
Join Date: 03-27-2008
Location: Kansas
Posts: 24
|
Windows 7 and HII
So I am trying to build a script to use ghost and HII script but I am not having much luck can someone help me out. In my sysprep.xml file I enter the following:
<ComputerName>%COMPNAME%</ComputerName>
To set the computer name as a variable or Token.
Then in the DS script I have the following:
REM Deploy Win7 Image
F:\ghost\ghost32 -clone,mode=restore,src=F:\win7_sys.gho,dst=1 -sure
Run Script
REM REPLACE TOKENS
REM REPLACETOKENS .\scripts\sysprep.xml .\TEMP\%ID%.XML
REM Sysprep Image Version
mkdir C:\windows\Gentiva\logs
date /T > D:\windows\logs\BUILD.txt
time /T >> D:\windows\logs\BUILD.txt
REM Copy the sysprep answer file
copy ".\Temp\%ID%.xml" "D:\windows\system32\sysprep\sysprep.xml" /Y
copy ".\Temp\%ID%.xml" "D:\windows\system32\sysprep\panther\sysprep.x ml" /Y
pause
REM BCEDIT to change boot config..
BCDEDIT /set {bootmgr} device partition=c:
BCDEDIT /set {default} device partition=d:
BCDEDIT /set {default} osdevice partition=d:
pause
exit 0
I have checked sysprep.xml file on the drive after being imaged and the computer name is now in place of the token but when the machine reboot and start for the first time it says there is a error.
If I leave computer name blank in my XML it run through no issues but prompts me to enter a computer name.
|
|
|
01-28-2010, 11:16 AM
|
#2 (permalink)
|
Status: Super Altiris Admin
Join Date: 11-09-2006
Location: London
Posts: 723
|
Try replacing these two lines:
copy ".\Temp\%ID%.xml" "D:\windows\system32\sysprep\sysprep.xml" /Y
copy ".\Temp\%ID%.xml" "D:\windows\system32\sysprep\panther\sysprep.x ml" /Y
with
copy ".\scripts\sysprep.xml" "D:\windows\system32\sysprep\sysprep.xml" /Y
copy ".\scripts\sysprep.xml" "D:\windows\system32\sysprep\panther\sysprep.x ml" /Y
And check that this goes through but prompts for the name.
|
|
|
01-28-2010, 11:33 AM
|
#3 (permalink)
|
Status: Junior Altiris Admin
Join Date: 03-27-2008
Location: Kansas
Posts: 24
|
But I dont want it prompt me for a name.
|
|
|
01-28-2010, 12:53 PM
|
#4 (permalink)
|
Status: Super Altiris Admin
Join Date: 11-09-2006
Location: London
Posts: 723
|
The idea is to tell you if the xml doesn't work when copied down or if there's another problem. It's a fault finding step.
|
|
|
02-05-2010, 06:18 AM
|
#5 (permalink)
|
Status: Junior Altiris Admin
Join Date: 07-15-2008
Location: Germany
Posts: 5
|
I figured out...
that you also have to replace the unattend.xml in "C:\WINDOWS\PANTHER\" with your WSIM "sysprep.xml"
The specializesection looks first in this folder for some unknown reason ;-) have a look for the unattend.xml as you see it has different options than your sysprep.xml
check that out
h t t p s : / / w w w-secure.symantec.com/connect/forums/windows-7-scripted-os-install-unattended-xml-file
or this ;-)
h t t p ://social.technet.microsoft.com/Forums/en/w7itproinstall/thread/cbecd571-4717-4119-97bb-664724256bb3
i use the firm to copy and rename the files
firm.exe copy .\temp\%ID%.xml D:\windows\system32\sysprep\sysprep.xml
firm.exe copy .\temp\%ID%.xml D:\windows\panther\unattend.xml
like that.
for Computername you should use "%COMPNAME%
Hope i could help and now i do my own thread with my problem of installing and adding drivers to my so called HII image ;-(((((
The pnp driverpath wont find the C:\drivers path ;-((
CU
|
|
|
02-05-2010, 07:40 AM
|
#6 (permalink)
|
Status: Altiris Admin
Join Date: 08-04-2006
Location: WV
Posts: 49
|
Ive already had the same driver problem. Run this as a script during the install. I did mine in the specialize pass with this section of xml
Quote:
<RunSynchronousCommand wcm:action="add">
<Credentials>
<Domain>%COMPNAME%</Domain>
<Password>password</Password>
<Username>administrator</Username>
</Credentials>
<Description>Install Drivers</Description>
<Order>2</Order>
<Path>c:\drivers\installdrivers.bat</Path>
</RunSynchronousCommand>
|
Heres the batch
Quote:
@ Echo off
cd c:\drivers
echo Installing Drivers Please wait....
for /f %%i in ('dir/b /s *.inf') do pnputil.exe -i -a %%i
|
This works like a champ for me. I dont know how microsoft botched the install driver portion but I tried for 3 days to get it working then gave up and said screw it ill do it myself a different way.
|
|
|
02-05-2010, 07:53 AM
|
#7 (permalink)
|
Status: Junior Altiris Admin
Join Date: 07-15-2008
Location: Germany
Posts: 5
|
This is soooo cool!!!
Your Script is awsome!!!!
I found your thread 1 hour ago and just thought WHOW this could it be (after several hours of checking out the *§## xml options)
And IT works so GREAT.
Man i owe you a beer for that!!!!!!!!
THANKS a LOT
at least now i have the video drivers work etc. but there is one last damn window opening everytime i Image a maschine.
The Window where i could choose the network location (Home,Work,.. etc.)
in the oobe section i have this entry but it it's still ignored.
<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Work</NetworkLocation>
<ProtectYourPC>1</ProtectYourPC>
<SkipMachineOOBE>true</SkipMachineOOBE>
</OOBE>
Maybe you have an idea for this ?!?!
and again big THANKS to drinking12many
|
|
|
02-05-2010, 08:01 AM
|
#8 (permalink)
|
Status: Altiris Admin
Join Date: 08-04-2006
Location: WV
Posts: 49
|
I havent found a way around that yet. I still have that issue as well. Ive been busy with other projects and havent been working on windows 7 much for the last few weeks.
Oh and Ill take that beer but only if you fly me to germany first, I need to get back there I miss it. I lived in Trier for 3.5 years with the air force. Id love to get a DOD job back there. 
|
|
|
02-08-2010, 01:07 AM
|
#9 (permalink)
|
Status: Junior Altiris Admin
Join Date: 07-15-2008
Location: Germany
Posts: 5
|
Trier...
is a nice and very beautyful city. I'm from Bonn wich i have to say is THE most beautyful city and its location is so near to other nice places including other countrys like france, belgium, luxemburg, netherlands etc,!!! Nearly one hour of driving you reach 3 other countrys. I love that ;-) for short trips.
But back to work ;-( i still have an issue with calling the "add computer" powershell script.
If a computer is still existing in the domain the script wont run.
BUT it also delivers no errormassage to the Altirisserver.
So the followingscripts will start to run but they will fail because the maschine wasen't correctly joined in the domain.
Any Ideas on this??
Greetz
Duke
|
|
|
02-09-2010, 12:25 PM
|
#10 (permalink)
|
Status: Super Altiris Admin
Join Date: 11-09-2006
Location: London
Posts: 723
|
You could try running a script earlier in the build process to delete the computer record from the domain.
Code:
netdom remove %COMPUTERNAME% /force
And run it "locally on the deployment server" and unselect "run when agent is connected"
|
|
|
 |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
All times are GMT -4. The time now is 01:50 AM.