how I can convert OEMEssentials.iso to OEMEssentials.vhdx because the commandpowershell -c "Set-ExecutionPolicy Unrestricted; C:\scripts\Convert-WindowsImage.ps1 -VHDFormat vhdx -sizebytes 127GB –sourcepath C:\OEMEssentials.iso -vhdp is not working !
hi,
1-to convert oemessential.iso vhdx have exactly runned command written on https://technet.microsoft.com/en-us/library/dn293253.aspx?f=255&mspperror=-2147217396 as administrator :
ps c:\users\administrator> powershell -c "set-executionpolicy unrestricted; c:\scripts\convert-windowsimage.ps1 -vhdformat vhdx -sizebytes 127gb –sourcepath c:\oemessentials.iso -vhdpath c:\oemessentials.vhdx"
my question wat means powershell -c ? have run powershell -c "set- ect. written below or set-executionpolicy unrestricted ect. below:
ps c:\users\administrator>set-executionpolicy unrestricted; c:\scripts\convert-windowsimage.ps1 -vhdformat vhdx -sizebytes 127gb –sourcepath c:\oemessentials.iso -vhdpath c:\oemessentials.vhdx.
i have downloaded convert-windowsimage.ps1 on c:\scripts , have 200gb free space on c: drive . os windows 8.1 .i tried both commands above sure 1 right 1 but whitouth result. have runned unblock convert-windowsimage.ps1 unblock file
what doing wrong how can covert oemessentials. iso file oemessentials. vhdx whith powershell?
thanks
johan
h.david
here place can post issues script:https://gallery.technet.microsoft.com/scriptcenter/convert-windowsimageps1-0fe23a8f/view/discussions#content
i recommend both red instructions , take time learn powershell or @ least kearnthe basics.
here first part of extensive instructions posted script.
# load (aka "dot-source) function . .\convert-windowsimage.ps1 # prepare variables in advance (optional) $convertwindowsimageparam = @{ sourcepath = "9600.17053.winblue_refresh.141120-0031_x64fre_server_en-us_vl-ir5_sss_x64frev_en-us_dv9.iso" remotedesktopenable = $true passthru = $true edition = @( "serverdatacenter" "serverdatacentercore" ) package = @( "c:\users\artemp\downloads\november\windows8.1-kb3012997-x64-en-us-server.cab" "c:\users\artemp\downloads\vmguest\windows6.2-hypervintegrationservices-x64.cab" ) } # produce images $vhdx = convert-windowsimage @convertwindowsimageparam there pages of instructions need read.
\_(ツ)_/
Windows Server > Windows PowerShell
Comments
Post a Comment