OSDeploy/OSDBuilder

Mount-WindowsImage : The parameter is incorrect.

slothinator opened this issue · 3 comments

Hello!

Been trying to use OSDBuilder but keep getting this error, tried to reinstall the module, and changed the path of the OSDBuilder folder and also the ISO files but to no avail.

Mount-WindowsImage : The parameter is incorrect.
At C:\Program Files\WindowsPowerShell\Modules\OSDBuilder\23.2.21.1\Private\AllFunctions.ps1:4796 char:9

  •     Mount-WindowsImage -ImagePath $SourceImagePath -Index $Source ...
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Mount-WindowsImage], PSArgumentException
    • FullyQualifiedErrorId : Microsoft.Dism.Commands.MountWindowsImageCommand

WARNING: Unable to locate RegHive at c:OSDBuilder\Mount\os153320\Windows\System32\Config\SOFTWARE

What OS are you using? Please include the specific Version and Build.

I am using Windows server 2016 1607 14393.5192 and I've also tried on a Windows server 2019 datacenter 17763.4499 and got the same error

Server 2016 and 2019 are old and may not work properly mounting and editing newer Operating Systems. Other issues may be if your ISO file is READ ONLY, or if the file is an ESD and not a WIM file (Server 2016/2019 doesn't support ESD).

Run OSDBuilder on a Windows 11 OS and everything will work fine.