MSFN Forum: Add "Run command" to unattend.xml using WSIM - MSFN Forum

Jump to content



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

Add "Run command" to unattend.xml using WSIM

#1 User is offline   atolica 

  • ENT Surgeon
  • PipPip
  • Group: Members
  • Posts: 218
  • Joined: 15-December 05
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 24 August 2009 - 12:20 PM

Hi all

I've been tweaking an unattend.xml file that I have created using WSIM and noticed that the powerplan settings are not getting implemented in the final installation. I know about setupcomplete.cmd, but I'd like to use the runsynchronous commands in oobe.

What is the proper way of doing that? I know that it should start with "cmd /c ....", but what about the path? I don't have a network share I could use. Environment variables maybe? I don't want the batch files to be copied on the computer I'm installing, I'd rather run them directly from the dvd. Is that possible???

Thank you.


#2 User is offline   ahay 

  • Group: Members
  • Posts: 5
  • Joined: 19-January 09

Posted 01 September 2009 - 04:53 PM

I had this same type of issues for my DVD base installs and the way I worked around it was to copy the files to a temp folder. Once the files were copied to the from the $OEM$ folder I install the applications from there and then deleted the folder.

#3 User is offline   razormoon 

  • Little boots...!
  • PipPip
  • Group: Members
  • Posts: 216
  • Joined: 17-February 06

Posted 10 September 2009 - 11:41 PM

@atolica,

Try this:

 
            
         <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <Order>100</Order>
                    <Description>Hibernate Off</Description>
                    <CommandLine>cmd /c %systemroot%\system32\powercfg.exe /hibernate off</CommandLine>
                </SynchronousCommand>
           </FirstLogonCommands>
 


This should be placed @ oobeSystem in Shell-Setup.

POWERCFG.EXE should have already been copied to HDD.
I, myself, have not tried this. As far as I can tell, you MAY (or may not) have to put quotes somewhere.

??? dunno, but let us know if it works.

This post has been edited by razormoon: 10 September 2009 - 11:45 PM


#4 User is offline   senathon 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 14-October 05

Posted 27 October 2009 - 12:00 AM

I am be missing somthing, but did anyone figure out how to turn on the "Run Command" unattended? Script or XML?

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