Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mount-WindowsImage : The parameter is incorrect. #96

Open
slothinator opened this issue Sep 19, 2023 · 3 comments
Open

Mount-WindowsImage : The parameter is incorrect. #96

slothinator opened this issue Sep 19, 2023 · 3 comments

Comments

@slothinator
Copy link

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

@OSDeploy
Copy link
Owner

OSDeploy commented Sep 19, 2023

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

@slothinator
Copy link
Author

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

@OSDeploy
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants