Help


help

Member
Local time
2:11 AM
Posts
90
OS
windows
@echo off
title Factory Reset and Update
echo This will perform a factory reset and install updates.
echo Are you sure you want to continue? (Y/N)
set /a choice=0
set /p choice=<
if "%choice%"=="Y" (
echo Starting factory reset...
start /wait "" "C:\Windows\System32\cmd.exe" /c systemreset -factoryreset
) else (
echo Operation cancelled.
pause
)
Can any fix this or have a correct batch file because trying to this
 
Windows Build/Version
Windows 10 or windows 11

My Computer

System One

  • OS
    windows
    Computer type
    Laptop
    Manufacturer/Model
    hp
Factory reset and install latest windows updates by batch file please
 

My Computer

System One

  • OS
    windows
    Computer type
    Laptop
    Manufacturer/Model
    hp
Hello anyone there I need help
 

My Computer

System One

  • OS
    windows
    Computer type
    Laptop
    Manufacturer/Model
    hp
@help
Perhaps if your thread title was a bit more specific than simply "help" you may get a better audience.
Unfortunately I am NO expert with batch files.
Some one with better knowledge will come along soon to possibly help you.
Just remember this is NOT an instant message service but rather a forum where members get on when they are free, so repeatly asking if anyone is here does not speed up getting an answer
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 Build-26100.3037
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home built
    CPU
    Intel S1200 Core i3 10105
    Motherboard
    Gigabyte S1200 MicroATX B560M DS3H DDR4
    Memory
    32.0 GB
    Graphics Card(s)
    MSI GT710 2GB PCIe Video Card
    Sound Card
    Realtek® Audio CODEC
    Monitor(s) Displays
    Dual Acer 24in
    Screen Resolution
    1920 x 1080
    Hard Drives
    500GB Crucial P1 M.2 PCIe SSD
    PSU
    500W
    Case
    Thermaltake ATX Versa H21 Case
    Cooling
    Internal fans by (3)
    Keyboard
    Microsoft Wireless Keyboard 850
    Mouse
    Microsoft Wireless mouse
    Internet Speed
    50Mbps / 20Mbps
    Browser
    Chrome
    Antivirus
    Defender, Malwarebyte
  • Operating System
    Windows 11 Pro 24H2 Build-26100.3037
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home built Test-PC
    CPU
    Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz
    Motherboard
    ASUS S1150 MicroATX B85M-E
    Memory
    12.0 GB
    Graphics card(s)
    Integrated Video Card
    Sound Card
    Integrated Sound Card
    Monitor(s) Displays
    Chimei 22"
    Screen Resolution
    1680 x 1050
    Hard Drives
    120GB WD 2.5" Green SATA 6Gb/s SSD
    1TB WD 3.5" 7200rpm SATA 6Gb/s Caviar Blue
    PSU
    400W
    Case
    Cougar MicroATX MG100 Case Black
    Cooling
    Deepcool 120mm Case Fan
    Mouse
    Logitech Wireless mouse
    Keyboard
    Logitech Wireless keyboard
    Internet Speed
    50Mbps / 20Mbps
    Browser
    Chrome
    Antivirus
    Defender
    Other Info
    Only running Win 11 on this PC for test purposes
You have had multiple threads regarding batch files for a number of different purposes. I am curious. For what reason do you require so many batch files? Most of the tasks you want to perform can be done within windows with no effort at all.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 26100.2314
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1tb Solidigm m.2 nvme+256gb SKHynix m.2 nvme /External drives 512gb Samsung m.2 sata+1tb Kingston m2.nvme+ 4gb Solidigm nvme
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
Because looking for one with factory reset and installing windows updates that does both in batch file because I also use iso files from websites like uupdump.net and still taking forever to finish and it’s night
 

My Computer

System One

  • OS
    windows
    Computer type
    Laptop
    Manufacturer/Model
    hp
And still get defaultuser0 also that trying so many ways
 

My Computer

System One

  • OS
    windows
    Computer type
    Laptop
    Manufacturer/Model
    hp
Please anyone make batch files sorry for all this
 

My Computer

System One

  • OS
    windows
    Computer type
    Laptop
    Manufacturer/Model
    hp
Factory reset and install latest windows updates by batch file please
You wanna Super-size that with fries and a Coke!?!?!?
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASUS ROG Strix
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ASUS VivoBook
Vague subject?
Vague (nil?) computer specs?
Convoluted/Confusing post explanations?

Not very much to go on for "Help"
 
Last edited:

My Computers

System One System Two

  • OS
    Windows 11 2xH2 (latest update ... forever anal)
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Slim S01
    CPU
    Intel i5-12400
    Memory
    8GB
    Graphics Card(s)
    NVIDIA GeForce GT730
    Sound Card
    OOBE
    Monitor(s) Displays
    Acer 32"
    Screen Resolution
    1920x1080
    Hard Drives
    512GB KIOXIA NVMe
    1TB SATA SSD
    PSU
    OOBE
    Case
    OOBE
    Cooling
    OOBE
    Keyboard
    BT
    Mouse
    BT
    Browser
    Brave FFox Chrome Opera
    Antivirus
    KIS
  • Operating System
    Windows 11 Pro 2xH2 (latest update ... 4ever anal)
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavillion 15
    CPU
    i7-1165G7 @ 2.80GHz
    Graphics card(s)
    Intel Iris Xe Graphics
    Hard Drives
    Samsung NVMe 512GB
    + numerous/multiple SSD Type C USB enclosures
    Internet Speed
    NBN FTTN 50
    Browser
    Brave
    Antivirus
    KIS
You have had multiple threads regarding batch files for a number of different purposes. I am curious. For what reason do you require so many batch files?
I'm beginning to wonder whether we're not being asked to "Help" with some IT subject educational assignments ... ?
 

My Computers

System One System Two

  • OS
    Windows 11 2xH2 (latest update ... forever anal)
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Slim S01
    CPU
    Intel i5-12400
    Memory
    8GB
    Graphics Card(s)
    NVIDIA GeForce GT730
    Sound Card
    OOBE
    Monitor(s) Displays
    Acer 32"
    Screen Resolution
    1920x1080
    Hard Drives
    512GB KIOXIA NVMe
    1TB SATA SSD
    PSU
    OOBE
    Case
    OOBE
    Cooling
    OOBE
    Keyboard
    BT
    Mouse
    BT
    Browser
    Brave FFox Chrome Opera
    Antivirus
    KIS
  • Operating System
    Windows 11 Pro 2xH2 (latest update ... 4ever anal)
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavillion 15
    CPU
    i7-1165G7 @ 2.80GHz
    Graphics card(s)
    Intel Iris Xe Graphics
    Hard Drives
    Samsung NVMe 512GB
    + numerous/multiple SSD Type C USB enclosures
    Internet Speed
    NBN FTTN 50
    Browser
    Brave
    Antivirus
    KIS
O/T - Does anyone remember the story of Burma-Shave? In the early days of US highways (when driving speeds were slow), they posted a series of quirky one sentence billboards, each sign following another at the same distance.

So they would begin
With some riddle or rhyme
And continue on
Until you reach the end of the jingle

I feel that way reading these endless posts.


No, you can't script a factory reset to install updates without spending more time learning about Push Button Reset, and scripting custom actions in the recovery image.

I don't see how a factory reset is faster than a clean install. Both of them "wipe" a volume and extract from an image file. Except the factory reset uses a locally cached copy somewhere on the system disk.

Lastly, you obviously don't understand UUP dump. If you select a newer Windows build to "download", the script patches your ISO up to the requested build version. So there's no need to install updates, since the ISO image is pre-updated for you.
 

My Computer

System One

  • OS
    Windows 7
every 2 minutes.. really? use UUPDump, use Microsoft documentation, use YouTube and use the internet. we can help you with portions of scripts that you are struggling with but we're not paid to do this and this annoying approach is more liable to just get you ignored... or banned.
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Pro
We want to help, but for what reason I have no idea, you're making everything more difficult for yourself...and us.I can't see any reason whatsoever that you would need all these batch files unless you were in IT and dealing with a lot of machines..

Defaultuser0 is a system user profile used when Windows is setting up during OOBE, before any user accounts have been created. You can not stop the original creation of this account. It should and usually does disappear after the first reboot after installation. If the profile folder remains in Users folder, it's safe to manually delete it.

In a LIVE WINDOWS, if the default user 0 account is left behind in list of accounts, you can delete Defaultuser0 account in Windows 11 using Command Prompt. To do so, open the Command Prompt as administrator and enter this command:
net user DefaultUser0 /delete

If you are talking about some other scenario involving the creation of default user0, I have no idea what you are trying to do.

As I told you in another thread, I can't help with scripting. I swear if I wasn't so old I would learn.
 
Last edited:

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 26100.2314
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1tb Solidigm m.2 nvme+256gb SKHynix m.2 nvme /External drives 512gb Samsung m.2 sata+1tb Kingston m2.nvme+ 4gb Solidigm nvme
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
I can't disagree with the other members here, but I did clean up the batch file a little and make it actually work.

Batch:
@echo off
title Factory Reset and Update
echo This will perform a factory reset and install updates.
choice /c "YN" /t 30 /d N /m "Are you sure you want to continue?"

if %ERRORLEVEL% EQU 1 (
echo Starting factory reset...
REM start /wait "" "C:\Windows\System32\cmd.exe" /c systemreset -factoryreset
) else (
echo Operation cancelled.
pause
)
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Intel Core i7-1260P, 2100 MHz
    Motherboard
    NUC12WSBi7
    Memory
    64 GB
    Graphics Card(s)
    Intel Iris Xe
    Sound Card
    built-in Realtek HD audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840x2160 @ 60Hz
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Keyboard
    CODE 104-Key Mechanical with Cherry MX Clears
    Antivirus
    Microsoft Defender
  • Operating System
    Linux Mint 21.2 (Cinnamon)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC8i5BEH
    CPU
    Intel Core i5-8259U CPU @ 2.30GHz
    Memory
    32 GB
    Graphics card(s)
    Iris Plus 655
    Keyboard
    CODE 104-Key Mechanical with Cherry MX Clears
I'm beginning to wonder whether we're not being asked to "Help" with some IT subject educational assignments ... ?
My guess is that it’s exactly what it is.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 Build 22631.4249
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4th Gen?)
    Motherboard
    ASUS ROG Maximus VI Formula
    Memory
    32.0 GB of I forget and the box is in storage.
    Graphics Card(s)
    Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    Sound Card
    Onboard
    Monitor(s) Displays
    4 x LG 23MP75 - 2 x 24MK430H-B - 1 x Wacom Pro 22" Tablet
    Screen Resolution
    All over the place
    Hard Drives
    Too many to list.
    OS on Samsung 1TB 870 QVO SATA
    PSU
    Silverstone 1500
    Case
    NZXT Phantom 820 Full-Tower Case
    Cooling
    Noctua NH-D15 Elite Class Dual Tower CPU Cooler / 6 x EziDIY 120mm / 2 x Corsair 140mm somethings / 1 x 140mm Thermaltake something / 2 x 200mm Corsair.
    Keyboard
    Corsair K95 / Logitech diNovo Edge Wireless
    Mouse
    Logitech G402 / G502 / Mx Masters / MX Air Cordless
    Internet Speed
    100/40Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    I’m on a horse.
  • Operating System
    Windows 11 Pro 23H2 Build: 22631.4249
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7i EVO OLED 14" Touchscreen i5 12 Core 16GB/512GB
    CPU
    Intel Core 12th Gen i5-1240P Processor (1.7 - 4.4GHz)
    Memory
    16GB LPDDR5 RAM
    Graphics card(s)
    Intel Iris Xe Graphics Processor
    Sound Card
    Optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512GB
    Antivirus
    Defender / Malwarebytes
    Other Info
    …still on a horse.

My Computer

System One

  • OS
    WIN 11 Pro 24H2 - 26100.2894
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Intel XEON E5-2699 v3
    Motherboard
    ASUS X99-A
    Memory
    48G Teamgroup UD4-3600
    Graphics Card(s)
    NVIDIA GeForce GTX 1080 Ti
    Sound Card
    Integrated
    Monitor(s) Displays
    ACER X34 Predator
    Screen Resolution
    3440 x 1440
    Hard Drives
    Crucial CT1000P 3P SSD8 1TB
    PSU
    GameMax Pro
    Case
    Fractal Design
    Cooling
    Corsair H110iGT + 6 140mm Fans
    Keyboard
    Corsair K4
    Mouse
    G-Skill G502
    Internet Speed
    50MBs
    Browser
    Chrome
    Antivirus
    OEM
Cheating you mean?

Yep. The desperation for this script, the constant repeated posting with impatience. The volume of batch file threads. All this screams to me that we’re about to have another clueless IT guy in the industry.
If I am wrong I am wrong.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 Build 22631.4249
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4th Gen?)
    Motherboard
    ASUS ROG Maximus VI Formula
    Memory
    32.0 GB of I forget and the box is in storage.
    Graphics Card(s)
    Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    Sound Card
    Onboard
    Monitor(s) Displays
    4 x LG 23MP75 - 2 x 24MK430H-B - 1 x Wacom Pro 22" Tablet
    Screen Resolution
    All over the place
    Hard Drives
    Too many to list.
    OS on Samsung 1TB 870 QVO SATA
    PSU
    Silverstone 1500
    Case
    NZXT Phantom 820 Full-Tower Case
    Cooling
    Noctua NH-D15 Elite Class Dual Tower CPU Cooler / 6 x EziDIY 120mm / 2 x Corsair 140mm somethings / 1 x 140mm Thermaltake something / 2 x 200mm Corsair.
    Keyboard
    Corsair K95 / Logitech diNovo Edge Wireless
    Mouse
    Logitech G402 / G502 / Mx Masters / MX Air Cordless
    Internet Speed
    100/40Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    I’m on a horse.
  • Operating System
    Windows 11 Pro 23H2 Build: 22631.4249
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7i EVO OLED 14" Touchscreen i5 12 Core 16GB/512GB
    CPU
    Intel Core 12th Gen i5-1240P Processor (1.7 - 4.4GHz)
    Memory
    16GB LPDDR5 RAM
    Graphics card(s)
    Intel Iris Xe Graphics Processor
    Sound Card
    Optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512GB
    Antivirus
    Defender / Malwarebytes
    Other Info
    …still on a horse.
What's really annoying is that the OP can't be bothered to write carefully with some punctuation. I think he should put in a bit more effort if he wants us to give of our own time.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 26100.2894
    Computer type
    Laptop
    Manufacturer/Model
    Acer Swift SF114-34
    CPU
    Pentium Silver N6000 1.10GHz
    Memory
    4GB
    Screen Resolution
    1920 x 1080
    Hard Drives
    SSD
    Cooling
    fanless
    Internet Speed
    150 Mbps
    Browser
    Brave
    Antivirus
    Webroot Secure Anywhere
    Other Info
    System 3

    ASUS T100TA Transformer
    Processor Intel Atom Z3740 @ 1.33GHz
    Installed RAM 2.00 GB (1.89 GB usable)
    System type 32-bit operating system, x64-based processor

    Edition Windows 10 Home
    Version 22H2 build 19045.3570
  • Operating System
    Windows 11 Pro 23H2 22631.2506
    Computer type
    Laptop
    Manufacturer/Model
    HP Mini 210-1090NR PC (bought in late 2009!)
    CPU
    Atom N450 1.66GHz
    Memory
    2GB
    Browser
    Brave
    Antivirus
    Webroot
Back
Top Bottom