Solved

wdsclientunattend shutdown client computer

Posted on 2013-01-08
6
1,213 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 40

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 40

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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 40

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

726 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