- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- ProLiant Deployment and Provisioning
- >
- Re: Deploying Windows 2008 and unattend-post.cmd
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2011 01:19 PM
тАО01-18-2011 01:19 PM
The three partions get created properly, the OS gets installed with no issues and there are no errors in RDP or on the server. However it just shows the time icon and goes no further.
Even if I just keep one partition on the hard disk, it does the same thing. Yet the clean unattend.xml works just fine.
Nothing in the unattend-post.xml seems to relate to partitions so not sure why its affecting it.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2011 02:51 AM
тАО01-19-2011 02:51 AM
Re: Deploying Windows 2008 and unattend-post.cmd
- Why do mention SIM?? What version of RDP are you using?
"The three partions get created properly, the OS gets installed with no issues and there are no errors in RDP or on the server. However it just shows the time icon and goes no further."
- Are you logging into the server to see this?
" Having an issue with RDP in our new SIM server 6.2.1 which we did not have in SIM 6.0.0. When I customize the unattend.xml so it creates three partititions on the hard disk, the RDP process just hangs on the unattend-post.cmd job. This is the part that installs the HP Software.
The three partions get created properly, the OS gets installed with no issues and there are no errors in RDP or on the server. However it just shows the time icon and goes no further.
Even if I just keep one partition on the hard disk, it does the same thing. Yet the clean unattend.xml works just fine.
- Can you post you xml?
Nothing in the unattend-post.xml seems to relate to partitions so not sure why its affecting it."
- I preseum you mean "unattend-post.cmd" here and if so, then yes, this only applies some drivers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2011 09:17 AM
тАО01-20-2011 09:17 AM
Re: Deploying Windows 2008 and unattend-post.cmd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2011 09:22 AM
тАО01-20-2011 09:22 AM
Re: Deploying Windows 2008 and unattend-post.cmd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2011 02:54 PM
тАО01-30-2011 02:54 PM
Re: Deploying Windows 2008 and unattend-post.cmd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2011 01:27 PM
тАО01-31-2011 01:27 PM
Re: Deploying Windows 2008 and unattend-post.cmd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2011 02:25 PM
тАО01-31-2011 02:25 PM
Re: Deploying Windows 2008 and unattend-post.cmd
If the actual OS has booted, then its up to the agent to check back in and run this part of the job. Have we verified that the agent is installed and running? The installation is confiured in the end of your .xml file in the section
Ensure that the aclient.inp is configured correctly and screenshot the properties of the agent on the server if it is installed. If its not connecting back to the server well therein lies the problem. It looks like you are turning off the firewall as part of the answer file config but double check that also.
Post the contents of the aclient.inp form the server ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2011 04:46 PM
тАО01-31-2011 04:46 PM
Re: Deploying Windows 2008 and unattend-post.cmd
No the agent did not get installed. On version 6.21 this gets installed with the install.cmd script which is where it is getting stuck on. This may have been in version 6.0 that it was part of unattend.xml
On my script I turn off the firewall, but for troubleshooting I am basically using the clean unattend-std.xml that comes with the installation of RDP. The only difference is the partitions.
1. Unattend-post.cmd Script
***************************
:: ===========================================================================
:: Unattend Installation Post Script
:: ===========================================================================
cd /d "%~dp0"
set result=0
rem Cleanup
del /f /q %systemdrive%\rdpimage
rem Install Smart Components
if not exist components\install.cmd goto end2
call components\install.cmd
if errorlevel 1 set result=2
:end2
exit /b %result%
2. Install.cmd Script
*********************
Will attach that in next post
3. AClientInp
*************
; RDP default AClient configuration file
;
; Additional settings will be obtained from the Deployment Server (DS).
; In the DS Console, select Tools > Options > Agent Settings tab.
; Select Force new agents to take these default settings.
; Click on Change Default Settings.
;
InitialSettings=Yes
SettingsChanged=Yes
TcpAddr=172.24.21.133
TcpPort=402
InstallDir=%ProgramFiles%\Altiris\DAgent
SyncTimeWithServer=Yes
LogFile=%ProgramFiles%\Altiris\DAgent\DAgent.log
LogSize=512000
LogErrors=Yes
LogInformation=Yes
LogDebug=Yes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2011 04:52 PM
тАО01-31-2011 04:52 PM
Re: Deploying Windows 2008 and unattend-post.cmd
However unattend-post.cmd seems to absolutely nothing in the detailed status of this task.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2011 01:07 PM
тАО02-01-2011 01:07 PM
Re: Deploying Windows 2008 and unattend-post.cmd
In the unattend.xml file you posted, the line to install the agent was included?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2011 01:11 PM
тАО02-01-2011 01:11 PM
Re: Deploying Windows 2008 and unattend-post.cmd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2011 02:07 PM
тАО02-01-2011 02:07 PM
Re: Deploying Windows 2008 and unattend-post.cmd
I wish HP documented this stuff properly before making massive changes like they did with 6.0 and even 6.2.
Thanks for your help thus far.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2011 01:33 AM
тАО02-02-2011 01:33 AM
Re: Deploying Windows 2008 and unattend-post.cmd
In a scripted instalaltion, the agent is installed as part of the firt logon commands when the OS boots. In a sysprep image, the agent is captured with the image fro the live OS and hence will be already ont he machine when the imaged machine boots.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2011 08:18 AM
тАО02-02-2011 08:18 AM
Re: Deploying Windows 2008 and unattend-post.cmd
I still have found no mention of where the agent gets installed in the new process as they definitely took it out of the unattend file now.
I thought about adding the install back into the unattend as a workaround, but have not found the right commands yet to add into the runonce section. Code samples I have seen so far relate to the pre 6.0 days of RDP.
I have contacted HP support but when they say 4 hour they mean 4 month, and when they do call you are speaking to someone who is no higher than Tier 1. You have been far more knowledgable and better at responding.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2011 09:23 AM
тАО02-02-2011 09:23 AM
Re: Deploying Windows 2008 and unattend-post.cmd
"Here is the unattend-std.xml for Windows 2008 Standard. I refer to SIM but specifically I refer to ICE 6.2 DVD and I updated to 6.2.1. RDP component is 6.9.4, hotfix 2, PSP 8.60."
If not, just add in the lines to install the agent and you're golden.
There are 2 .xml answer files in each directory as the scripted jobs use one and the sysprep jobs the other.
Can you find out which answer file your jobs is pointing at. This will be in the config of the job 'COnfigure answer file'.
Post the contents of that file
;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2011 01:18 PM
тАО02-02-2011 01:18 PM
Re: Deploying Windows 2008 and unattend-post.cmd
Many thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2011 01:26 PM
тАО02-02-2011 01:26 PM
Re: Deploying Windows 2008 and unattend-post.cmd
"-
"
I'll build a VM with it and see where it's failing for you ;)
The only other thing, are the network drivers installed at this stage? Have you verified you have network access back to the deployment server?
Is the altiris agent service present on the box when u logon?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2011 01:43 PM
тАО02-02-2011 01:43 PM
Re: Deploying Windows 2008 and unattend-post.cmd
The default scripted install job from RDP 6.2 for Windows 2008 x64 perfoms the named tasks as shown in Screenshot_001.png attached.
Basicall, the steps as as follows:
1) The server is rebooted into WinPE 2.1 x64 and the first disk found is wiped and an image of NTFS is dropped on it. This image contains a file called RDPIMAGE on the filesystem therein that the dagent can use to identify the correct drive for deployment.
2) Still in WinPE, a script is run. this script searches all hard drives/volumes for the RDPIMAGE file and when it finds it, sets this as the drive to use. The script then copies over the OEM folder from the deloyment server and also the agent. Here is the script contents
rem Copy OEM Files
set HD=c:
for %%i in (c d e f g h i j k l m) do if exist %%i:\rdpimage set HD=%%i:
set featuredir=%ALTIRIS_SHARE%\hpfeatures\ws6-x64-en_us
set oemdir=%HD%\$oem$
xcopy "%featuredir%\oem\*.*" %oemdir% /s /e /i /y
copy /y %ALTIRIS_SHARE%\agents\aclient\dagent_x64.msi %oemdir%
3) Now a script runs to configure the answer file used for deployment. It looks lik this
rem Configure Answer File
set featuredir=%ALTIRIS_SHARE%\hpfeatures\ws6-x64-en_us
copy /y "%featuredir%\unattend-std.xml" "%featuredir%\%ID%.xml"
set compname=%#*"select right(replace([name],' ',''),15) from computer where computer_id={ID}"%
set productkey=%ws6-x64-std-en_us-productkey%
set driverpath=%featuredir%\oem\drivers
"%featuredir%\bin\hptoken.exe" "%featuredir%\%ID%.xml"
It sets the compter name to use for the server, the product key and the driver path to look for drivers and the answer file to use as a base answer file. It then parses this answer file and substitutes in the tokens as specified.
Basically, the drivers specified here will be injected into your build so if you have the lastets drivers loaded into the correct location on the deployment server, the server will have access ot the disk/network at build time.
4) This script runs to install the OS from WINPE
rem Install OS
rem scripted-install
set featuredir=%ALTIRIS_SHARE%\hpfeatures\ws6-x64-en_us
"%featuredir%\dist\setup.exe" "/unattend:%featuredir%\%ID%.xml"
It basically uses the answer fiel created in the last script to answer all the questions the installer asks you.
This answer file should specify where to get drivers and also to install the dagent form the files copied over locally to the c:\oem folder.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2011 02:15 PM
тАО02-02-2011 02:15 PM
Re: Deploying Windows 2008 and unattend-post.cmd
The install script will fail because its refering the $oem $ folder which is not being created for some reason, although I have seen it on the other builds that do work. So looks like its the oem process that you detail in your last email that is not working. I would hazard a guess that the parition process kills the FOR %%i in statement.
If you can build a vm and try it out that would be great. Is it just my environment that is having issues? That is the question I would like answering.
Nothing HP related gets created on the server although Windows looks fine. That includes any altiris or hp folders.
Thanks for the install process explanation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2011 01:01 AM
тАО02-03-2011 01:01 AM
Re: Deploying Windows 2008 and unattend-post.cmd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2011 01:03 AM
тАО02-03-2011 01:03 AM
Re: Deploying Windows 2008 and unattend-post.cmd
hpfeatures\ws6-x64-en_us
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2011 01:04 AM
тАО02-03-2011 01:04 AM
Re: Deploying Windows 2008 and unattend-post.cmd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2011 02:08 AM
тАО02-03-2011 02:08 AM
SolutionYep, the problem is, you are overwriting your c:\ partition by specifiying the c: parittion again in the answer file. RDP lays down an image that is used as the c: drive and the OEM folder is copied down there. Now, when the Windows installer runs setup.exe and looks into the answer file, it sees to use Disk 1 Partition 1 as the system disk but also to partion disk 1 into 3 partitions and hence re-formats the c drive and wipes the OEM folder from it!
There are 2 ways around this:
1) Remove this additional partitioning info from the answer file. The initial task drops an NTFS image onto the first drive found and expands the filesystem therein to fill the drive. this can eb modified to an exect size i.e 40GB. This will leave the rest of the drive free. You can then run a script at the end to add the additional partitions.
2) remove the option "WillWipeDisk" form the answer file. WillWipeDisk specifies whether to erase all partitions on the hard disk before adding additional configurations to the disk. Again, set the initial NTFS image to only occupy a specif amount of disk spce and then setup your additional paritions via the answer file.
I've tested this and it works fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2011 03:01 PM
тАО02-11-2011 03:01 PM
Re: Deploying Windows 2008 and unattend-post.cmd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2011 10:28 AM
тАО02-22-2011 10:28 AM
Re: Deploying Windows 2008 and unattend-post.cmd
Here is the job
rem * Partitions and Formats the Disk *
set FtireDir=C:\$oem$\Ftire
diskpart.exe /s %FtireDir%\Ftire-Partitions.txt >Part-Log.txt
and here is the * Partition.txt File*
select disk 0
CREATE PARTITION PRIMARY SIZE=30720
assign letter=Q
FORMAT FS=NTFS LABEL="Backup" QUICK
select disk 0
CREATE PARTITION PRIMARY
assign letter=R
FORMAT FS=NTFS LABEL="Data" QUICK
EXIT