Solved

wdsclientunattend shutdown client computer

Posted on 2013-01-08
6
1,188 Views
Last Modified: 2013-03-04
Hi,

I am using WDS (2008R2) to deploy  a preconfigured and syspreped Windows 7 image for a client. My WDS server is fully fonctional, i am able to boot from the PXE, join the multicast session and push the image to the client computers.

I have a wdsclientunattend.xml file all the settings are working correctly (user id, password, partition modification...) exept the setting that tells the computer to shutdown before OOBE.

In Pass 1, Windows PE, I have set the Restart setting to Shutdown (
<Restart>Shutdown</Restart>) but the computers are rebooting.

In the help  file it says "Restart specifies whether to restart or to shut down the computer after the windowsPE configuration pass. This setting is specific to Windows PE scenarios. Once image-based installation begins, this setting is ignored." .

Anybody know how I can shut down the computers after the image is applyed to the drive??

Thank you.
0
Comment
Question by:Integrateur
  • 3
  • 3
6 Comments
 
LVL 39

Expert Comment

by:footech
ID: 38762425
To be honest, I'm not familiar with that setting, but just from the description I would say it won't work with a WDS install.

If all you want to do is push out an image I would look at other solutions for this.
0
 

Author Comment

by:Integrateur
ID: 38764304
I did it with a custom WinPE boot image. I took the WinPe from Windows 7 AIK and added WDSMCAST.EXE and IMAGEX.EXE to it.  I made a batch files to run DISKPART to create the OS partition, copy my .wim file and my .rwm file (reference file) to the local C: drive using the WDSMCAST.EXE. After that I used IMAGEX to apply the image to the drive.  

After that I will use BCDBOOT to initialize boot configuration.
0
 
LVL 39

Expert Comment

by:footech
ID: 38764690
I don't think I'll be able to help with this.  I'm familiar with WDS and answer files, but I haven't gotten into using WinPE like this.

I recommend that you use the Request Attention button try to get other experts to help with this one.  Good luck.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Accepted Solution

by:
Integrateur earned 0 total points
ID: 38828596
Its all working good.  With my custom WindowsPE wim file (boot.wim). Its booting frow PXE and it is fully unattend.

STARTNET.CMD

wpeinit

diskpart /s x:\windows\system32\diskpart.txt

md c:\temp

@echo ------------------------------------------
@echo Copie de l'image  c:\temp
@echo ------------------------------------------
@echo *
@echo *
@echo *
@echo *
@echo *
@echo *
@echo *

WDSMCAST /progress /verbose /Transfer-File /Server:wds01 /Username:entrepot\administrator /Password:***** /Namespace:WDS:universite/w7_64_XPMTT6470_6300V1_2_1.wim/1 /SourceFile:w7_64_XPMTT6470_6300V1_2_1.wim /DestinationFile:c:\temp\w7_64_XPMTT6470_6300V1_2_1.wim


WDSMCAST /progress /verbose /Transfer-File /Server:wds01 /Username:entrepot\administrator /Password:***** /Namespace:WDS:universite/w7_64_XPMTT6470_6300V1_2_1.wim/1 /SourceFile:res.rwm /DestinationFile:c:\temp\res.rwm



imagex /apply c:\temp\w7_64_XPMTT6470_6300V1_2_1.wim 1 c:\ /ref c:\temp\res.rwm

@echo *
@echo *
@echo *
@echo *
@echo *
@echo *
@echo *

del c:\temp\*.* /q

bcdboot C:\Windows

@echo -------------  BYE BYE  -------------

Shutdown -s -t 10




DISKPART SCRIPT (diskpart.txt)

SELECT DISK 0
CLEAN
CREATE PARTITION PRIMARY
FORMAT QUICK FS=NTFS LABEL="Windows"
ACTIVE
ASSIGN LETTER="C"
list partition
EXIT
0
 
LVL 39

Expert Comment

by:footech
ID: 38841274
Glad you got it working.  You can accept your own post as the solution.
0
 

Author Closing Comment

by:Integrateur
ID: 38949195
Found it myself
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now