jo
  • Home
  • Arthur
  • Photos
  • Hobbies
  • About Me
  • Blog
  • coronavirus
  • Gallery
  • Home
  • Arthur
  • Photos
  • Hobbies
  • About Me
  • Blog
  • coronavirus
  • Gallery

clean sysprep image and dism image capture

10/17/2021

1 Comment

 
these in red vary.

to modify the image you are going to prep you might need these locations and commands

Windows 10 desktop shortcuts all users:
C:\Users\Public\Public Desktop (hidden)

Windows 10 taskbar LayoutModification.xml location:
C:\Users\Default\AppData\Local\Microsoft\Windows\Shell

Taskbar shortcuts pointing to in the file above:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs

Zoom 32/64bit MSI installing options:
ZoomInstallerFull.msi ZoomAutoupdate=True zNoDesktopShortCut=True ZConfig="EnableSilentAutoUpdate=1" ZConfig="AlwaysCheckLatestVersion=1"

to put an existing image in oobe mode, press windows key + R and type

%windir%\system32\sysprep\sysprep.exe /audit /reboot

​after rebooting, check options "generalize" and "shutdown", delete all existing users from "advanced system settings/profiles" first, and then from "users" with "computer management", and proceed with the commands below:

run "disk cleanup"

from cmd run:


dism /Online /Cleanup-Image /StartComponentCleanup /ResetBase

shutdown the vm using the sysprep program, change the boot order to boot from winpe, boot winpe. from diskpart assign A (the disk you will capture from) to the source, and B to the target (the disk where you'll put the .wim on).

Note: "B" must be big enough to handle the .wim image (approx 40GB) and to be attached to the vm prior booting from "winpe".

small diskpart commands guide: 

diskpart
list disk
select disk 0
list part
select part 3
assign letter=A
select disk 1
create part pri
select part 1
format fs=ntfs quick
assign letter=B
exit

run command:

dism /Capture-Image /ImageFile:B:\install.wim /CaptureDir:A: /Name:"Win 10 Pro" /Compress:max
1 Comment

    Author

    Write something about yourself. No need to be fancy, just an overview.

    Archives

    October 2021
    March 2020

    Categories

    All

    RSS Feed

Powered by Create your own unique website with customizable templates.