none
Wipe to factory settings (Refresh) thru script RRS feed

  • Question

  • Is there a way, either thru PowerShell or some other script to wipe a Windows 8 device back to it's factory default? (Same as doing a "Remove everything and reinstall Windows" from the PC Settings page).

    One of our jobs is to reset a bunch of Windows 8 Devices (talking about 10-50 per week). We were interested in automating this process as much as possible.

    How would I go about doing this?

    Thanks,

    Sunday, April 14, 2013 3:20 PM

Answers

  • It is possible through Powershell have a look at:

    http://gallery.technet.microsoft.com/scriptcenter/Script-to-refresh-Windows-eca1e59a

    http://gallery.technet.microsoft.com/scriptcenter/Script-to-create-a-custom-a6e8b4e8

    Hasan

    Tuesday, April 16, 2013 7:56 PM

All replies

  • I would probably use an image and reinstall the machine, you could automate it by using WDS or so. Or you could do it as a .VHD boot and keep a spare master image on the drive, have a look at : 

    http://blogs.msdn.com/b/knom/archive/2009/04/07/windows-7-vhd-boot-setup-guideline.aspx

    Hasan

    Sunday, April 14, 2013 7:55 PM
  • The reason this was not a feasible method is because there is no network connection to these machines so a VHD image from a server is not going to work. We need this to be a local process on the system. Most of these systems do not have disc drives either and we cannot use USB drives here for security reasons.
    Sunday, April 14, 2013 8:26 PM
  • There's no way unless you have a backup of each system disk.

    Renee


    "MODERN PROGRAMMING is deficient in elementary ways BECAUSE of problems INTRODUCED by MODERN PROGRAMMING." Me

    Sunday, April 14, 2013 9:06 PM
  • It surprises me that this cannot be done considering you can do everything else thru Powershell or a script. Is there a way to at least run an EXE or something to bring up the initial interface for it?
    Monday, April 15, 2013 1:07 AM
  • As long as you have enough space on the drive you could have a spare vhd locally, every time you need to "refresh" delete the users .vhd make a copy of the master .vhd assign that as a bootdisk and voila you are up and running.

    Hasan

    Monday, April 15, 2013 11:19 AM
  • We'll just stick with our existing process. It's disappointing that you can't initiate the built-in process thru a script.

    Thanks for your help.

    Monday, April 15, 2013 12:56 PM
  • From what I know (and I could be very wrong) the Reset feature in Windows 8 just wipes the windows partition and installs the image from the recovery partition (recovery partition is hidden and file is usally at: R:\RecoveryImage\Install.wim).  You can see this by using a windows PE boot disk (see http://technet.microsoft.com/en-us/library/hh825072.aspx for more information on windows PE and capturing images).

    If you were able to make a diskpart script to name the drives and a .bat file to run dism you could make a simple windows PE boot disk and run the scripts to automate the reset process.  Not being able to use flash drives or CD does limit you quite a bit though, are you able to use an USB external hard drive are your office?

    Tuesday, April 16, 2013 6:36 PM
  • No, In fact the USB ports will only accept an external keyboard or mouse, that's it. We either have to pull everything from the network or run it locally on the computer. Our current process is we use the settings charm to initiate the process but the problem is we get about 25-50 systems per day and the output is less then 25 a day. We have more coming in then we have going out. This is why we were looking for a script instead because we could just run the script thru PowerShell and be done with it. It's going to cost us a lot of $$$ to continue operating the way we currently are running it.
    Tuesday, April 16, 2013 6:46 PM
  • It is possible through Powershell have a look at:

    http://gallery.technet.microsoft.com/scriptcenter/Script-to-refresh-Windows-eca1e59a

    http://gallery.technet.microsoft.com/scriptcenter/Script-to-create-a-custom-a6e8b4e8

    Hasan

    Tuesday, April 16, 2013 7:56 PM
  • I need the same thing. I did an extensive search and tried many things. This is the only technique that worked well (this was on a Windows 10 Pro laptop).  https://msdn.microsoft.com/en-us/library/windows/desktop/dn948434.aspx
    Tuesday, March 14, 2017 3:43 PM
  • Win10 you can use REAGENTC to help a little

      REAGENTC /boottore

    Monday, June 17, 2019 5:55 PM