MSFN Forum: Turn the system off automatically after installing windows - MSFN Forum

Jump to content


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

Turn the system off automatically after installing windows Rate Topic: -----

#1 User is offline   peppecal 

  • Group: Members
  • Posts: 2
  • Joined: 11-June 12
  • OS:none specified
  • Country: Country Flag

Posted 11 June 2012 - 07:56 AM

Hello everyone,
i'm trying to do an unattended installation of windows xp. Since I'm installing the system via VirtualBox, I wanted to know if you could specify in the answer file the automatic shutdown of the system after installation is complete.
I am sure of your help, thanks in advance...
peppecal


#2 User is offline   -X- 

  • Member
  • Group: Patrons
  • Posts: 2,050
  • Joined: 08-January 04
  • OS:XP Pro x86
  • Country: Country Flag

Posted 11 June 2012 - 08:35 AM

You can do it with an answer file that has a GuiRunOnce command and then a batch file in the $OEM$ folders.

Use something like this for GuiRunOnce...

REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Runonce /v Shutdown /d %SystemDrive%\shutdown.bat


and in shutdown.bat have....

ping -n 15 127.0.0.1 >NUL
shutdown -s



I would think that perhaps just adding shutdown -s to the GuiRunOnce might do the trick but I forget if the desktop is fully loaded at that point.


Let me know if you need a more detailed response.

This post has been edited by -X-: 11 June 2012 - 08:38 AM


#3 User is offline   peppecal 

  • Group: Members
  • Posts: 2
  • Joined: 11-June 12
  • OS:none specified
  • Country: Country Flag

Posted 11 June 2012 - 11:25 AM

Thanks a lot for your answer...Now, I try and, tomorrow, let you know...

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 - 2013 msfn.org
Privacy Policy