OSDeploy / OSDBuilder

PowerShell Module
http://osdbuilder.com
MIT License
195 stars 57 forks source link

Mount-WindowsImage : The parameter is incorrect. #96

Open slothinator opened 1 year ago

slothinator commented 1 year ago

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

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

OSDeploy commented 1 year ago

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

slothinator commented 1 year ago

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 commented 1 year ago

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.