Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, June 1, 2020 1:23 PM
Hello All,
I am trying to use the available Microsoft script to convert my wim file to a vhd file
( https://gallery.technet.microsoft.com/scriptcenter/Convert-WindowsImageps1-0fe23a8f ). When I simply run the script from command line it does nothing at all. I have tried calling with many different params. The simplest just trying to launch the GUI
Convert-WindowsImage.ps1 -ShowUI
Am I missing something? Anybody seen this before? I don't even know how to start debugging since nothing at all shows in the command line
Allen Thurman
All replies (8)
Monday, June 1, 2020 2:00 PM
you can start from unblocking file (Right Mouse Click>Properties>Unblock>Ok)
then you can check execution policy, and if its not bypass change it (Set-ExecutionPolicy bypass)
Then you can check your applocker/srp policies abd your antivirus
The opinion expressed by me is not an official position of Microsoft
Monday, June 1, 2020 2:03 PM | 1 vote
Use this script and tell us whether it works for you:
Script at https://www.powershellgallery.com/packages/Convert-WindowsImage/10.0
It is under MIT-Licence and you can find it at github:
https://github.com/x0nn/Convert-WindowsImage
When there are more problems, you can file a Issue there.
Tuesday, June 2, 2020 1:14 AM
Use this script and tell us whether it works for you:
Script at https://www.powershellgallery.com/packages/Convert-WindowsImage/10.0 It is under MIT-Licence and you can find it at github: https://github.com/x0nn/Convert-WindowsImage When there are more problems, you can file a Issue there.
No luck with this.
The first link to powershellgallery has instructions to run Install-Module. Once I tried that from command line I get an error for that
PS E:\OS3> Install-Module -Name Convert-WindowsImage
PackageManagement\Install-Package : No match was found for the specified search criteria and module name
'Convert-WindowsImage'. Try Get-PSRepository to see all available registered module repositories.
At C:\Program Files (x86)\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
- ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Ex
ception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Allen Thurman
Allen Thurman
Tuesday, June 2, 2020 1:15 AM
you can start from unblocking file (Right Mouse Click>Properties>Unblock>Ok)
then you can check execution policy, and if its not bypass change it (Set-ExecutionPolicy bypass)
Then you can check your applocker/srp policies abd your antivirus
The opinion expressed by me is not an official position of Microsoft
Tried all that thanks
Allen Thurman
Wednesday, June 3, 2020 6:41 AM
Hi,
I suggest you to confirm the location of the file and start using the path, just like
C:\text1\Convert-WindowsImage.ps1
Please let us know if you would like further assistance.
Best wishes,
Young Yang
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Wednesday, June 3, 2020 1:16 PM
Hi,
I suggest you to confirm the location of the file and start using the path, just like
C:\text1\Convert-WindowsImage.ps1
Please let us know if you would like further assistance.
Best wishes,
Young Yang
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Still the same results. And yes I would like further assistance. The script is not outputting anything at all, seems there should be something a log in eventvwr or something that tells me why the script doesn't run
Allen Thurman
Wednesday, June 3, 2020 1:53 PM
athurm, you can enable with command set-psdebug -trace 1 to be sure what was executed and how looks like the flow
The opinion expressed by me is not an official position of Microsoft
Wednesday, June 3, 2020 2:16 PM
One way do to this is if your imaging solution allows for PXE booting. Create a new VM on your hypervisor of choice, PXE boot the VM and install your image. Then capture the image with your imaging solution. This works well with WDS.