MSFN Forum: Unattended Files - MSFN Forum

Jump to content


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

Unattended Files

#1 User is offline   crowe80 

  • Newbie
  • Group: Members
  • Posts: 39
  • Joined: 13-March 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 20 April 2012 - 07:58 AM

I'm struggling with the Unattended.xml file and understanding how it works with Windows 7. I currently save images out on a network share and I'm able to save them and get them off the network when needed, but we are currently on a domain so I need to create an Unattened file to not name a computer the same name, join a domain, etc. So I have created an Unattended file and saved it but from this point I'm not understanding what to do with it. On the PC I want to copy the image of, I saved the file under c:\windows\system32\sysprep I've seen forums where they say to go to an elevated command and type: sysprep /oobe /generalize /unattended:c:\Windows\System32\sysprep\Unattended.xml But it just says "sysprep" is not recognized as an internal or external command.

So I think I understand how to create the .xml file but I"m not sure what to do with it from there?


#2 User is offline   cluberti 

  • Gustatus similis pullus
  • Group: Supervisor
  • Posts: 11,208
  • Joined: 09-September 01
  • OS:Windows RT
  • Country: Country Flag

Posted 21 April 2012 - 03:43 PM

sysprep is stored in %windir%\system32\sysprep - you must be in that folder to run sysprep to begin with. If you're doing this in a domain for multiple PCs, though, it might make some sense for you to invest some time in learning / setting up MDT in your environment. It handles deployment, applications, drivers, etc.

#3 User is offline   crowe80 

  • Newbie
  • Group: Members
  • Posts: 39
  • Joined: 13-March 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 23 April 2012 - 04:28 AM

When I run the command at an elevated prompt it looks like this: C:\windows\System32>sysprep /oobe /generalize /unattended:C:\Windows\System32\Sysprep\Unattended.xml With the unattended file saved at: C:\Windows\System32\Sysprep folder.r

Still getting "\sysprep is not recognized as an internal or external command. operable program or batch file." error

Unfortunately it's not the best way we keep images but currently this is the way I have to do it as we have a helpdesk department and a networking department. The helpdesk currently has the responsibility of doing images but we don't have rights to servers. So I currently just have a PC set up on the domain that has nothing on it but an operating system and thats where I save all the images I create to. Then I create boot up disc for the rest of the helpdesk and when we need a new device built anyone in the helpdesk can put the disc in and retrieve the image out on this lone PC. So just a quick FYI for why it's set up the way it is. I am working with our networking team on getting a server and doing this differently but as for now I need to find a way to make this work the way it is and I'm really hung up on how to get the unattended file to work after I create it. In XP you would just put the answer file in the sysprep folder and run sysprep and it found these settings but I'm not sure how this works in Windows7. I've read and seen a lot on unattended files but mainly it's just how to create one, it doesn't say what to do with it after it's created.

#4 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,665
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 23 April 2012 - 08:54 AM

View Postcrowe80, on 23 April 2012 - 04:28 AM, said:

When I run the command at an elevated prompt it looks like this: C:\windows\System32>sysprep /oobe /generalize /unattended:C:\Windows\System32\Sysprep\Unattended.xml With the unattended file saved at: C:\Windows\System32\Sysprep folder.r

Still getting "\sysprep is not recognized as an internal or external command. operable program or batch file." error


Sysprep is in a folder called Sysprep. Try this:

C:\windows\System32\sysprep>sysprep.exe /oobe /generalize /unattended:C:\Windows\System32\Sysprep\Unattended.xml


#5 User is offline   crowe80 

  • Newbie
  • Group: Members
  • Posts: 39
  • Joined: 13-March 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 23 April 2012 - 09:25 AM

This got me farther but I'm getting a box popping up now that I believe is basically telling me there is a syntax error. It seems to be fine until I type in the /Unattend:C:\Windows\System32\Sysprep\Unattened.xml line.

The box that pops up says:

Sysprep

USAGE:sysprep.exe [/quiet] [/generalize] [/audit | /oobe] [/reboot | /shutdown | /quite] [/unattend:<filename>]

If no command-line arguments are provided, a graphical user interface is used to select the desired mode of sysprep operation.

#6 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,665
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 23 April 2012 - 09:46 AM

Yes sorry you are missing the switch to tell sysprep how to exit.

/shutdown
/reboot
/quit

One of those are needed. I usually use /shutdown just so I can make sure that I don't accidently reboot into the image again.

#7 User is offline   crowe80 

  • Newbie
  • Group: Members
  • Posts: 39
  • Joined: 13-March 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 23 April 2012 - 10:31 AM

Yes I had tried that but still get the error. So I've tried the following with the same error each time:

sysprep.exe /oobe /generalize /shutdown /unattend:C:\Windows\System32\Sysprep\Unattended.xml


sysprep.exe /generalize /oobe /shutdown /unattend:C:\Windows\System32\Sysprep\Unattended.xml


I'm still looking into this but if anyone has suggestions, I will gladly take them.

This post has been edited by crowe80: 23 April 2012 - 11:47 AM


#8 User is offline   cluberti 

  • Gustatus similis pullus
  • Group: Supervisor
  • Posts: 11,208
  • Joined: 09-September 01
  • OS:Windows RT
  • Country: Country Flag

Posted 23 April 2012 - 02:31 PM

You can also run without the /unattend switch - as long as unattend.xml is there in Windowssystem32sysprep when the image comes up next, it'll be used. Make sure the answer file validates without errors in WSIM first though, of curse, before using it :).

Sent from my SGH-i917 using Board Express

#9 User is offline   crowe80 

  • Newbie
  • Group: Members
  • Posts: 39
  • Joined: 13-March 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 24 April 2012 - 04:01 AM

I got it working! After I got pointed in the right direction the last part of it was user error!! I named my file "Unattended.xml" but I kept calling it "Unattend.xml" in my command line. Just got in too big of a hurry and was not catching that. Thanks to everyone who helped!

#10 User is offline   Ryuu924 

  • Group: Members
  • Posts: 1
  • Joined: 13-September 12
  • OS:none specified
  • Country: Country Flag

Posted 13 September 2012 - 12:31 PM

I am suffering a similiar issue. I am tryign to prep some windows 7 machines for deployment in a lab. In that lab students will log in using their AD (active Directory) accounts. I would like, when a student to log in, for the computer to create an accoutn that mimics the default (administrator) in format and setup. I was told that sysprep will do this, however I am receiving the same errors that Crowe was, and changing my syntax did not fit it. I have stored my unattended.xml in the sysprep folder and I am making no progress whatsoever. Any thoughts or ideas? if I can offer any more information i will be glad too.

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