MSFN Forum: Copying files - MSFN Forum

Jump to content



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

Copying files Copying Winre files to target machine Rate Topic: -----

#1 User is offline   chaos2305 

  • Group: Members
  • Posts: 7
  • Joined: 04-January 07

Posted 04 January 2007 - 08:15 AM

Hi Guys,

i'm having difficultys copying files to my target machine.
In the microsoft's guide of WinRe it says when creating an image based recovery you'll have to copy your Winre.wim to the target machine's root. and run some scripts.

Quote

Windows RE can also be installed directly as a .wim file instead of an expanded image on the hard disk partition. When this configuration is used:
• The Windows RE .wim image file must be named winre.wim.
• The Windows RE .wim image file must be located at the root directory of the target
and

Quote

You will need to create the script CopyWinRE.cmd to copy the Windows RE image to the target partition


but what sort of command's do i put into the script? i tried with an xcopy and copy command, but that díd'nt work.

i alse have difficultys running scripts on my target machine, i want to automatticly run the SetAutoFailover.cmd on the target machine to set the WinRe options but that doe not work also.

the command line for this is "setautofailover.cmd /wim /target d: /mainos {default} /disk 0 /partition 1", i want to run it automatic to set the first partition to WinRe. what i don't get is the d: is this the drive where the os is on? i searched the microsoft site for explanation of these options but i could'nt find them.

what in my xml file is :

- <RunSynchronous>
- <RunSynchronousCommand wcm:action="add">
- <Credentials>
<Domain></Domain>
<Password></Password>
<Username></Username>
</Credentials>
<Description>copywinre</Description>
<Order>1</Order>
<Path>D:\RemoteInstall\data\Scripts\CopyWinRe.cmd</Path>
</RunSynchronousCommand>
</RunSynchronous>
</component>

thanks in advance

chaos2305

This post has been edited by chaos2305: 04 January 2007 - 08:19 AM



#2 User is offline   FireGeier 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 405
  • Joined: 24-October 05

Posted 05 January 2007 - 01:52 AM

Quote

i tried with an xcopy and copy command, but that díd'nt work.
Well it should work with xcopy. How was your command looking like exactly?

Quote

the command line for this is "setautofailover.cmd /wim /target d: /mainos {default} /disk 0 /partition 1", i want to run it automatic to set the first partition to WinRe. what i don't get is the d: is this the drive where the os is on? i searched the microsoft site for explanation of these options but i could'nt find them.


The d: is an example only. d: is the target, where winre.wim is located. If you open the setautofailover.cmd you will find a very short explanation at the end of the file.

If you don't have a d: drive - cause you're just using one drive for example - than use c: instead of d:. The WAIK-Walkthrough is creating two partitions on your drive, one for VistaOS and one for WinRE. This is the reason why they are using d: for setautofailover.cmd.

Hope that'll clear it up a little bit.

Martin

#3 User is offline   chaos2305 

  • Group: Members
  • Posts: 7
  • Joined: 04-January 07

Posted 05 January 2007 - 03:36 AM

Thanks martin,

So i have to copy my winre to c: en that change the target to c:?

The command i use in my .cmd file is :

copy \\wsus\winre\winre.wim C:\


and the 2nd command file is is

xcopy \\servername\data\Scripts\SetAutoFailover.cmd %windir%\system32\scripts\
%windir%\system32\scripts\setautofailover.cmd /wim /target c: /mainos {default} /disk 0 /partition 1 (this command is to run the setautofailover command)

Yesterday i copyd the winre.wim to c: manually en ran the setautofailover command. my first partition is indeed hidden, so i think the setautofailover has worked, but how can i test if the failover works? i tried to startup and pressed F8. but when i choose repair, the system askes me to instert my vista dvd.....
maybe i am doing something wrong? these are the steps i took to create my installation :

<?xml version="1.0" encoding="utf-8" ?>
- <unattend xmlns="urn:schemas-microsoft-com:unattend">
- <settings pass="windowsPE">
- <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <WindowsDeploymentServices>
- <Login>
- <Credentials>
<Domain></Domain>
<Password></Password>
<Username></Username>
</Credentials>
</Login>
- <ImageSelection>
- <InstallTo>
<DiskID>0</DiskID>
<PartitionID>2</PartitionID>
</InstallTo>
</ImageSelection>
</WindowsDeploymentServices>
- <DiskConfiguration>
- <Disk wcm:action="add">
- <CreatePartitions>
- <CreatePartition wcm:action="add">
<Order>2</Order>
<Size>40000</Size>
<Type>Primary</Type>
<Extend>false</Extend>
</CreatePartition>
- <CreatePartition wcm:action="add">
<Order>1</Order>
<Size>5000</Size>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
- <ModifyPartitions>
- <ModifyPartition wcm:action="add">
<Active>true</Active>
<Extend>true</Extend>
<Format>NTFS</Format>
<Label>OS</Label>
<Letter>C</Letter>
<Order>2</Order>
<PartitionID>2</PartitionID>
</ModifyPartition>
- <ModifyPartition wcm:action="add">
<Active>false</Active>
<Extend>false</Extend>
<Format>NTFS</Format>
<Label>WinRe</Label>
<Order>1</Order>
<PartitionID>1</PartitionID>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
</DiskConfiguration>
</component>
</settings>
- <settings pass="oobeSystem">
- <component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <Reseal>
<Mode>Audit</Mode>
</Reseal>
</component>
</settings>
<cpi:offlineImage cpi:source="catalog:d:/distribution/operating systems/install_windows vista ultimate.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

and for the creation of the WinRe i followed most of the microsofts manual...





thanks in advance

#4 User is offline   FireGeier 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 405
  • Joined: 24-October 05

Posted 05 January 2007 - 08:29 AM

Quote

i tried to startup and pressed F8. but when i choose repair, the system askes me to instert my vista dvd.....


You need to edit the boot code with BCDEdit to correct this. Look in WAIK-Help for BCDEdit and look in setautofailover.cmd again to find out more about.

Setautofailover.cmd is working with BCDEdit, too, to boot the WinRE.

Martin

#5 User is offline   chaos2305 

  • Group: Members
  • Posts: 7
  • Joined: 04-January 07

Posted 08 January 2007 - 04:13 AM

Ok ill look into that,

and how about my copying problem? i tried several thing but i'm still stuck

#6 User is offline   Atheros 

  • Junior
  • Pip
  • Group: Members
  • Posts: 84
  • Joined: 01-June 04

Posted 15 January 2007 - 08:26 AM

have you tried at the begining of your command file "Start /wait <command line>".
otherwise it seems to skip...

#7 User is offline   chaos2305 

  • Group: Members
  • Posts: 7
  • Joined: 04-January 07

Posted 30 January 2007 - 01:53 PM

Thanks for your awnsers guys,

The problem is like the folloeing at the moment :

The Adddataimage option just doen not do anything so i'm lokking for an awnser for that one. But, when i copy my WinRe.wim to the 1st partition and run the scripts, nothing happens (i get an error message that some files cannot be found). when i copy boot.sdi , diskpart.exe and bcdedit.exe to the same drive, the srip runs better, but still.... no recovery possibility. i can press f8 at boot and choose what option i want to like to do, but now recovery for me for now. tomorrow i am gonna try to make an winre image from an original dutch cista image and hope that that will work. (maybe microsoft has added something or changed something, i don't know)

And i'm gonna test if the machine has to be sysprepped and activated to let WinRe work fine. also another vague area for me. ( a long with a lot of other WinRe things, but first things first)

thanks

#8 User is offline   Jopster 

  • Proud daddy
  • Group: Members
  • Posts: 30
  • Joined: 29-September 03

Posted 01 February 2007 - 04:24 AM

View Postchaos2305, on Jan 30 2007, 08:53 PM, said:

The Adddataimage option just doen not do anything so i'm lokking for an awnser for that one.

I can give you that answer. There's a bug in Windows setup that prevents WinRE from being installed before the specialize phase of setup.

Only way you can get it to work is by running it after that phase (specialize, audituser for instance) through a batch file. I have it working like this.

I created 2 partitions, first one for my recovery purposes and assigned drive letter z: to it, but made it partition 1. Second one for my OS, made it partition 2 and assigned drive letter c: to it. Install your OS on the OS partition, afterwards run a batch file with "imagex /apply <path of your WinRE image> 1 z:" and it should deploy nicely.

Only thing you have to do next is to run the setautofailover.cmd /target z: and you're all done. The drive letter will disappear because it's made hidden and you should boot nicely into the recovery console.

This post has been edited by Jopster: 01 February 2007 - 04:27 AM


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