What is a handle when creating a install.wim file from a partition


Rbcc

New member
Local time
4:30 AM
Posts
14
OS
Windows 11 pro
At 16% I am getting a Handle is invalid error when trying to create a install.wim for my windows 11 pro install iso.
I have 4 questions :
Here is dism line I get this error:
dism /capture-image /imagefile:p:\images\install.wim /capturedir:Z:\ /scratchdir:p:\scratch /name:"newImageFile" /compress:maximum /verify /bootable.

What is a handle?
What do I need to do to get past 16%/
Why does it take so long [1.5 hours] to start?

The dism.log file is in the dism1.txt file!

I thank you very much for your help, JTM
 
Windows Build/Version
Windows 11 Pro Insider Preview 22635.3465

Attachments

  • dism1.txt
    2.1 KB · Views: 9

My Computer

System One

  • OS
    Windows 11 pro
    Computer type
    Laptop
    Manufacturer/Model
    Asus
    CPU
    I-7 2gigaherz
    Motherboard
    Asus
    Memory
    16Gig
    Screen Resolution
    1024x768
    Hard Drives
    512 SSD
At 16% I am getting a Handle is invalid error when trying to create a install.wim for my windows 11 pro install iso.
I have 4 questions :
Here is dism line I get this error:
dism /capture-image /imagefile:p:\images\install.wim /capturedir:Z:\ /scratchdir:p:\scratch /name:"newImageFile" /compress:maximum /verify /bootable.

What is a handle?
What do I need to do to get past 16%/
Why does it take so long [1.5 hours] to start?

The dism.log file is in the dism1.txt file!

I thank you very much for your help, JTM

Put the dism command in a code box so we can see it properly.
 

My Computer

System One

  • OS
    Windows 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0
DISM typically has trouble with cloud-stored files that are only pointers to the actual files, e.g. if you are using OneDrive's Files on Demand and the files are not actually synced to the local drive.

You would likely need to create a configuration file for DISM, like so:
Code:
[ExclusionList]
\Users\jtm_7\OneDrive

Save it, for example, as wimscript.ini. Then add something like this to your DISM command:

Code:
/ConfigFile:"X:\path\to\wimscript.ini"
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2
    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 Keyboard with Cherry MX Clears
  • 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 Keyboard - Cherry MX Clear
Process Handle identifies and provides control of native processes. Each individual process can be monitored for liveness, list its children, get information about the process or destroy it.

In this guide, we’ll cover how to create a custom Windows 10/11 installation image with pre-installed apps, necessary files, and other environment and application settings.

 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
It's not referring to a process handle; it's a file handle.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2
    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 Keyboard with Cherry MX Clears
  • 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 Keyboard - Cherry MX Clear
Are you running off a live system, or did you boot from a WinPE or Recovery environment? You can't really capture the same system while it's running.
 

My Computer

System One

  • OS
    Windows 7
@garlin: live system.
But can one capture a partition on the same system?
 

My Computer

System One

  • OS
    Windows 11 pro
    Computer type
    Laptop
    Manufacturer/Model
    Asus
    CPU
    I-7 2gigaherz
    Motherboard
    Asus
    Memory
    16Gig
    Screen Resolution
    1024x768
    Hard Drives
    512 SSD

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2
    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 Keyboard with Cherry MX Clears
  • 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 Keyboard - Cherry MX Clear
I have a dual boot system with 2 Windows 11, on 2 separate partitions partition1 which is the C:\ which is the "working "[don't know what to call it ] which is 100gibyte and z:\ partition is another partition which is my customized one with apps and utilities. The Z:\ drive is the drive I am trying to make the wim from! When I run the above dism line I get error #6.

Now when I go through the dism log file what do I look for in order to solve the problem?
Is this error a syntax error?
Is there something missing, wrong or something I did wrong with dism line?
What is it meant when it error #6 "The handle is invalid???"
 

My Computer

System One

  • OS
    Windows 11 pro
    Computer type
    Laptop
    Manufacturer/Model
    Asus
    CPU
    I-7 2gigaherz
    Motherboard
    Asus
    Memory
    16Gig
    Screen Resolution
    1024x768
    Hard Drives
    512 SSD
another question
why does it look on
2024-05-27 10:25:54, Error DISM WIM Provider: PID=2916 Z:\Users\jtm_7\OneDrive\Assets\AutoUnattend.xml (HRESULT=0x80070006) - CWimManager::WimProviderMsgLogCallback

when one drive is turned off?? how do I solve this??
John
 

My Computer

System One

  • OS
    Windows 11 pro
    Computer type
    Laptop
    Manufacturer/Model
    Asus
    CPU
    I-7 2gigaherz
    Motherboard
    Asus
    Memory
    16Gig
    Screen Resolution
    1024x768
    Hard Drives
    512 SSD
I suggested a method to ignore OneDrive files in post #3, and the request in post 2 hasn’t been answered it seems.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2
    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 Keyboard with Cherry MX Clears
  • 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 Keyboard - Cherry MX Clear
I think pseymour has the sensible answer

and you dont need /bootable switch unless you are creating some kind of winpe.

wrap it in code tags avoid the smilies
Code:
dism /capture-image /imagefile:D:\images\install.wim /capturedir:Z:\ /scratchdir:D:\scratch /name:"newImageFile" /compress:maximum /verify
 

My Computers

System One System Two

  • OS
    Win7
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
Like this?

Code:
Dism /Capture-Image /ImageFile:"P:\images\install.wim" /CaptureDir:Z:\ /Name:Windows11Pro[Golden]  /compress:Maximum /verify [code]
 

My Computer

System One

  • OS
    Windows 11 pro
    Computer type
    Laptop
    Manufacturer/Model
    Asus
    CPU
    I-7 2gigaherz
    Motherboard
    Asus
    Memory
    16Gig
    Screen Resolution
    1024x768
    Hard Drives
    512 SSD
Back
Top Bottom