Skip to content

Instantly share code, notes, and snippets.

@BladeFireLight
Last active August 9, 2016 20:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save BladeFireLight/b3265a6b44195d6ef6d6 to your computer and use it in GitHub Desktop.
Save BladeFireLight/b3265a6b44195d6ef6d6 to your computer and use it in GitHub Desktop.
Creating Fully Patched WIM and VHDX for fun and profit
**********************
Windows PowerShell transcript start
Start time: 20160220181407
Username: SHODAN\Blade_000
RunAs User: SHODAN\Blade_000
Machine: SHODAN (Microsoft Windows NT 10.0.10586.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe
Process ID: 9456
PSVersion: 5.0.10586.63
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0.10586.63
BuildVersion: 10.0.10586.63
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
VERBOSE: Performing the operation "Set the Windows Image Tools Update Configuration" on target "G:\OMAPSUG\WITExample".
VERBOSE: New Configuration
VERBOSE:
Name Value
---- -----
IpType DHCP
vLan 0
DnsServer 192.168.0.1
Gateway 192.168.0.1
VmSwitch Bridge
SubnetMask 24
IpAddress 192.168.0.101
VERBOSE: Performing the operation "Add Windows Image Tools Update Image" on target "G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Source_base.vhdx".
VERBOSE: Performing the operation "Create new Unattended.xml" on target "$path".
VERBOSE: [New-UnattendXml] Adding PowerShell script to First boot command
VERBOSE: [New-UnattendXml] Enabeling Administrator via First boot command
VERBOSE: [New-UnattendXml] Adding first boot command(s)
VERBOSE: [New-UnattendXml] Adding Administrator Passwords for amd64 Architecture
VERBOSE: [New-UnattendXml] Adding Administrator Passwords for x86 Architecture
VERBOSE: [New-UnattendXml] Saving file
VERBOSE: [Add-UpdateImage] : G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Source_base.vhdx : Creating
VERBOSE: [Convert-Wim2VHD] : Overwrite partitions inside [G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Source_base.vhdx] with content of [G:\OMAPSUG\WITExample\ISO\Srv2012r2Eval.ISO]
VERBOSE: [Convert-Wim2VHD] : InitializeVHDPartitionParam
VERBOSE:
Name Value
---- -----
Path G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Source_base.vhdx
DiskLayout UEFI
force True
Size 42949672960
VERBOSE: [Convert-Wim2VHD] : SetVHDPartitionParam
VERBOSE:
Name Value
---- -----
SourcePath G:\OMAPSUG\WITExample\ISO\Srv2012r2Eval.ISO
Path G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Source_base.vhdx
Unattend C:\Users\BLADE_~1\AppData\Local\Temp\35exsglm\unattend.xml
AddPayloadForRemovedFeature True
Index 4
force True
Confirm False
VERBOSE: [Convert-Wim2VHD] : ParametersToPass
VERBOSE:
Name Value
---- -----
Verbose True
VERBOSE: [Initialize-VHDPartition] Create partition structure for Bootable vhd(x) on [G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Source_base.vhdx]
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Source_base.vhdx] : Creating
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Source_base.vhdx] : @vhdParms
VERBOSE:
Name Value
---- -----
Path G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Source_base.vhdx
SizeBytes 42949672960
Dynamic False
ErrorAction Stop
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Source_base.vhdx] : Mounting disk image
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Source_base.vhdx] : Initializing disk [5] as GPT
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Source_base.vhdx] : Clearing disk partitions to start all over
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Source_base.vhdx] : EFI system : Creating partition of [209715200] bytes
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Source_base.vhdx] : EFI system : Formatting FAT32
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Source_base.vhdx] : EFI system : Setting system partition as ESP
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Source_base.vhdx] : MSR : Creating partition of [134217728] bytes
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Source_base.vhdx] : Windows : Creating partition of [42603642880] bytes
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Source_base.vhdx] : Windows : Formatting volume NTFS
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Source_base.vhdx] : Dismounting disk image
VERBOSE: [Set-VHDPartition] : Overwrite partitions inside [G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Source_base.vhdx] with content of [G:\OMAPSUG\WITExample\ISO\Srv2012r2Eval.ISO]
VERBOSE: [Set-VHDPartition] : Opening ISO [Srv2012r2Eval.ISO]
VERBOSE: [Set-VHDPartition] : Looking for I:\sources\install.wim
VERBOSE: [Set-VHDPartition] [Srv2012r2_Source_base.vhdx] : Mounting disk image [G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Source_base.vhdx]
VERBOSE: [Set-VHDPartition] [Srv2012r2_Source_base.vhdx] : Munted as disknumber [5]
VERBOSE: [Set-VHDPartition] [Srv2012r2_Source_base.vhdx] : Partition Table
VERBOSE:
PartitionNumber DriveLetter Size Type
--------------- ----------- ---- ----
1 J 209715200 System
2 134217728 Reserved
3 K 42603642880 Basic
VERBOSE: [Set-VHDPartition] [Srv2012r2_Source_base.vhdx] Windows Partition [3] : Applying image from [I:\sources\install.wim] to [K:\] using Index [4]
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: [Set-VHDPartition] [Srv2012r2_Source_base.vhdx] Windows Partition [3] : Adding Unattend.xml (C:\Users\BLADE_~1\AppData\Local\Temp\35exsglm\unattend.xml)
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17031
VERBOSE: [Set-VHDPartition] [Srv2012r2_Source_base.vhdx] : Installing Windows Feature(s) : Colecting posible source paths
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: [Set-VHDPartition] [Srv2012r2_Source_base.vhdx] : Installing Windows Feature(s) : Mounting Source 1 Windows Server 2012 R2 SERVERSTANDARDCORE
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: [Set-VHDPartition] [Srv2012r2_Source_base.vhdx] : Installing Windows Feature(s) : Mounting Source 2 Windows Server 2012 R2 SERVERSTANDARD
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: [Set-VHDPartition] [Srv2012r2_Source_base.vhdx] : Installing Windows Feature(s) : Mounting Source 3 Windows Server 2012 R2 SERVERDATACENTERCORE
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: [Set-VHDPartition] [Srv2012r2_Source_base.vhdx] : Installing Windows Feature(s) : Mounting Source 4 Windows Server 2012 R2 SERVERDATACENTER
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: [Set-VHDPartition] [Srv2012r2_Source_base.vhdx] : Installing Windows Feature(s) [NetFx3] to the Image : Search Source Path [I:\sources\sxs C:\Users\Blade_000\AppData\Local\Temp\rarw5zjw\Windows\WinSxS C:\Users\Blade_000\AppData\Local\Temp\pispxzrf\Windows\WinSxS C:\Users\Blade_000\AppData\Local\Temp\0hzcib5a\Windows\WinSxS C:\Users\Blade_000\AppData\Local\Temp\hz5t143m\Windows\WinSxS]
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17031
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: [Set-VHDPartition] [Srv2012r2_Source_base.vhdx] : Disk Layout [UEFI]
VERBOSE: [Set-VHDPartition] [Srv2012r2_Source_base.vhdx] System Partition [1] : Running [K:\Windows\System32\bcdboot.exe] -> K:\Windows /s J: /v /f UEFI
VERBOSE: [Run-Executable] : Running [bcdboot.exe] [K:\Windows /s J: /v /f UEFI]
VERBOSE:
Name Value
---- -----
PassThru True
FilePath bcdboot.exe
ArgumentList {K:\Windows, /s J:, /v, /f UEFI}
RedirectStandardError C:\Users\BLADE_~1\AppData\Local\Temp\bcdboot.exe-StandardError.txt
NoNewWindow True
Wait True
RedirectStandardOutput C:\Users\BLADE_~1\AppData\Local\Temp\bcdboot.exe-StandardOutput.txt
VERBOSE: [Run-Executable] : Return code was [0]
VERBOSE: [Set-VHDPartition] [Srv2012r2_Source_base.vhdx] : Removing Drive letters
VERBOSE: [Set-VHDPartition] [Srv2012r2_Source_base.vhdx] : Dismounting
VERBOSE: [Set-VHDPartition] [Srv2012r2_Source_base.vhdx] : Finished
VERBOSE: [Add-UpdateImage] : G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Source_base.vhdx : Adding First Boot Script
VERBOSE: [Add-UpdateImage] : G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Source_base.vhdx : Finished
VERBOSE: Performing the operation "Add Windows Image Tools Update Image" on target "G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_base.vhdx".
VERBOSE: Performing the operation "Create new Unattended.xml" on target "$path".
VERBOSE: [New-UnattendXml] Adding PowerShell script to First boot command
VERBOSE: [New-UnattendXml] Enabeling Administrator via First boot command
VERBOSE: [New-UnattendXml] Adding first boot command(s)
VERBOSE: [New-UnattendXml] Adding custom computername for amd64 Architecture
VERBOSE: [New-UnattendXml] Adding custom computername for x86 Architecture
VERBOSE: [New-UnattendXml] Adding Administrator Passwords for amd64 Architecture
VERBOSE: [New-UnattendXml] Adding Administrator Passwords for x86 Architecture
VERBOSE: [New-UnattendXml] Adding First Logon Commands
VERBOSE: [New-UnattendXml] Adding Every-Logon Commands
VERBOSE: [New-UnattendXml] Saving file
VERBOSE: [Add-UpdateImage] : G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_base.vhdx : Creating
VERBOSE: [Convert-Wim2VHD] : Overwrite partitions inside [G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_base.vhdx] with content of [G:\OMAPSUG\WITExample\ISO\Srv2012r2Eval.ISO]
VERBOSE: [Convert-Wim2VHD] : InitializeVHDPartitionParam
VERBOSE:
Name Value
---- -----
Path G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_base.vhdx
DiskLayout UEFI
force True
Size 42949672960
VERBOSE: [Convert-Wim2VHD] : SetVHDPartitionParam
VERBOSE:
Name Value
---- -----
SourcePath G:\OMAPSUG\WITExample\ISO\Srv2012r2Eval.ISO
Path G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_base.vhdx
Unattend C:\Users\BLADE_~1\AppData\Local\Temp\mw4votjk\unattend.xml
Index 3
force True
Confirm False
VERBOSE: [Convert-Wim2VHD] : ParametersToPass
VERBOSE:
Name Value
---- -----
Verbose True
VERBOSE: [Initialize-VHDPartition] Create partition structure for Bootable vhd(x) on [G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_base.vhdx]
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core_base.vhdx] : Creating
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core_base.vhdx] : @vhdParms
VERBOSE:
Name Value
---- -----
Path G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_base.vhdx
SizeBytes 42949672960
Dynamic False
ErrorAction Stop
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core_base.vhdx] : Mounting disk image
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core_base.vhdx] : Initializing disk [5] as GPT
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core_base.vhdx] : Clearing disk partitions to start all over
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core_base.vhdx] : EFI system : Creating partition of [209715200] bytes
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core_base.vhdx] : EFI system : Formatting FAT32
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core_base.vhdx] : EFI system : Setting system partition as ESP
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core_base.vhdx] : MSR : Creating partition of [134217728] bytes
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core_base.vhdx] : Windows : Creating partition of [42603642880] bytes
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core_base.vhdx] : Windows : Formatting volume NTFS
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core_base.vhdx] : Dismounting disk image
VERBOSE: [Set-VHDPartition] : Overwrite partitions inside [G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_base.vhdx] with content of [G:\OMAPSUG\WITExample\ISO\Srv2012r2Eval.ISO]
VERBOSE: [Set-VHDPartition] : Opening ISO [Srv2012r2Eval.ISO]
VERBOSE: [Set-VHDPartition] : Looking for I:\sources\install.wim
VERBOSE: [Set-VHDPartition] [Srv2012r2_Core_base.vhdx] : Mounting disk image [G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_base.vhdx]
VERBOSE: [Set-VHDPartition] [Srv2012r2_Core_base.vhdx] : Munted as disknumber [5]
VERBOSE: [Set-VHDPartition] [Srv2012r2_Core_base.vhdx] : Partition Table
VERBOSE:
PartitionNumber DriveLetter Size Type
--------------- ----------- ---- ----
1 J 209715200 System
2 134217728 Reserved
3 K 42603642880 Basic
VERBOSE: [Set-VHDPartition] [Srv2012r2_Core_base.vhdx] Windows Partition [3] : Applying image from [I:\sources\install.wim] to [K:\] using Index [3]
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: [Set-VHDPartition] [Srv2012r2_Core_base.vhdx] Windows Partition [3] : Adding Unattend.xml (C:\Users\BLADE_~1\AppData\Local\Temp\mw4votjk\unattend.xml)
VERBOSE: [Set-VHDPartition] [Srv2012r2_Core_base.vhdx] : Disk Layout [UEFI]
VERBOSE: [Set-VHDPartition] [Srv2012r2_Core_base.vhdx] System Partition [1] : Running [K:\Windows\System32\bcdboot.exe] -> K:\Windows /s J: /v /f UEFI
VERBOSE: [Run-Executable] : Running [bcdboot.exe] [K:\Windows /s J: /v /f UEFI]
VERBOSE:
Name Value
---- -----
PassThru True
FilePath bcdboot.exe
ArgumentList {K:\Windows, /s J:, /v, /f UEFI}
RedirectStandardError C:\Users\BLADE_~1\AppData\Local\Temp\bcdboot.exe-StandardError.txt
NoNewWindow True
Wait True
RedirectStandardOutput C:\Users\BLADE_~1\AppData\Local\Temp\bcdboot.exe-StandardOutput.txt
VERBOSE: [Run-Executable] : Return code was [0]
VERBOSE: [Set-VHDPartition] [Srv2012r2_Core_base.vhdx] : Removing Drive letters
VERBOSE: [Set-VHDPartition] [Srv2012r2_Core_base.vhdx] : Dismounting
VERBOSE: [Set-VHDPartition] [Srv2012r2_Core_base.vhdx] : Finished
VERBOSE: [Add-UpdateImage] : G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_base.vhdx : Adding First Boot Script
VERBOSE: [Add-UpdateImage] : G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_base.vhdx : Finished
VERBOSE: Performing the operation "Update WMF in Windows Image Tools Update Image" on target "G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_Base.vhdx".
VERBOSE: [Update-WindowsImageWMF] : Creating G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_Update.vhdx from G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_Base.vhdx
VERBOSE: [Update-WindowsImageWMF] : Checking for the latest WMF in G:\OMAPSUG\WITExample\Resource\WMF\5pp
VERBOSE: GET https://www.microsoft.com/en-us/download/details.aspx?id=48729 with 0-byte payload
VERBOSE: received 117326-byte response of content type text/html
VERBOSE: GET http://www.microsoft.com/en-us/download/confirmation.aspx?id=48729 with 0-byte payload
VERBOSE: received -1-byte response of content type text/html
VERBOSE: [Update-WindowsImageWMF] : Checking for the latest WMF : G:\OMAPSUG\WITExample\Resource\WMF\5pp\W2K12-KB3066438-x64.msu : Found
VERBOSE: [Update-WindowsImageWMF] : Checking for the latest WMF : G:\OMAPSUG\WITExample\Resource\WMF\5pp\W2K12-KB3066438-x64.msu : Found
VERBOSE: [Update-WindowsImageWMF] : Checking for the latest WMF : G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win7AndW2K8R2-KB3066439-x64.msu : Found
VERBOSE: [Update-WindowsImageWMF] : Checking for the latest WMF : G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win7AndW2K8R2-KB3066439-x64.msu : Found
VERBOSE: [Update-WindowsImageWMF] : Checking for the latest WMF : G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win7AndW2K8R2-KB3066439-x86.msu : Found
VERBOSE: [Update-WindowsImageWMF] : Checking for the latest WMF : G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win7AndW2K8R2-KB3066439-x86.msu : Found
VERBOSE: [Update-WindowsImageWMF] : Checking for the latest WMF : G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win8.1AndW2K12R2-KB3066437-x64.msu : Found
VERBOSE: [Update-WindowsImageWMF] : Checking for the latest WMF : G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win8.1AndW2K12R2-KB3066437-x64.msu : Found
VERBOSE: [Update-WindowsImageWMF] : Checking for the latest WMF : G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win8.1AndW2K12R2-KB3066437-x86.msu : Found
VERBOSE: [Update-WindowsImageWMF] : Checking for the latest WMF : G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win8.1AndW2K12R2-KB3066437-x86.msu : Found
VERBOSE: [Update-WindowsImageWMF] : Checking for .NET 4.6
VERBOSE: [Update-WindowsImageWMF] : .NET : Adding installer to G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_Update.vhdx
VERBOSE: [Update-WindowsImageWMF] : .NET : updateting AtStartup script
VERBOSE: [Update-WindowsImageWMF] : .NET : Creating temp vm and waiting
VERBOSE: [createRunAndWaitVM] : Creating VM 2pteim3k at 02/20/2016 18:44:08
VERBOSE: [createRunAndWaitVM] : VM 2pteim3k Stoped
VERBOSE: [createRunAndWaitVM] : VM 2pteim3k Deleted at 02/20/2016 19:00:17
VERBOSE: [Update-WindowsImageWMF] : WMF : Applying WMF to G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_Update.vhdx and Updating AtStartup script
VERBOSE: checking if G:\OMAPSUG\WITExample\Resource\WMF\5pp\W2K12-KB3066438-x64.msu applies to G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_Update.vhdx
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17031
VERBOSE: Successfully added package G:\OMAPSUG\WITExample\Resource\WMF\5pp\W2K12-KB3066438-x64.msu
VERBOSE: checking if G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win7AndW2K8R2-KB3066439-x64.msu applies to G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_Update.vhdx
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17031
VERBOSE: Successfully added package G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win7AndW2K8R2-KB3066439-x64.msu
VERBOSE: checking if G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win7AndW2K8R2-KB3066439-x86.msu applies to G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_Update.vhdx
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17031
VERBOSE: Successfully added package G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win7AndW2K8R2-KB3066439-x86.msu
VERBOSE: checking if G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win8.1AndW2K12R2-KB3066437-x64.msu applies to G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_Update.vhdx
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17031
VERBOSE: Successfully added package G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win8.1AndW2K12R2-KB3066437-x64.msu
VERBOSE: checking if G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win8.1AndW2K12R2-KB3066437-x86.msu applies to G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_Update.vhdx
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17031
VERBOSE: Successfully added package G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win8.1AndW2K12R2-KB3066437-x86.msu
VERBOSE: [Update-WindowsImageWMF] : WMF : creating temp VM to finalize install on G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_Update.vhdx
VERBOSE: [createRunAndWaitVM] : Creating VM s13ldplm at 02/20/2016 19:02:39
VERBOSE: [createRunAndWaitVM] : VM s13ldplm Stoped
VERBOSE: [createRunAndWaitVM] : VM s13ldplm Deleted at 02/20/2016 19:04:54
VERBOSE: [Update-WindowsImageWMF] : WMF : Checking if changes made
VERBOSE: [Update-WindowsImageWMF] : WMF : Changes found : Merging G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_Update.vhdx into G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_Base.vhdx
VERBOSE: Performing the operation "Update WMF in Windows Image Tools Update Image" on target "G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_Base.vhdx".
VERBOSE: [Update-WindowsImageWMF] : Creating G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_Update.vhdx from G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_Base.vhdx
VERBOSE: [Update-WindowsImageWMF] : Checking for the latest WMF in G:\OMAPSUG\WITExample\Resource\WMF\5pp
VERBOSE: GET https://www.microsoft.com/en-us/download/details.aspx?id=48729 with 0-byte payload
VERBOSE: received 117326-byte response of content type text/html
VERBOSE: GET http://www.microsoft.com/en-us/download/confirmation.aspx?id=48729 with 0-byte payload
VERBOSE: received -1-byte response of content type text/html
VERBOSE: [Update-WindowsImageWMF] : Checking for the latest WMF : G:\OMAPSUG\WITExample\Resource\WMF\5pp\W2K12-KB3066438-x64.msu : Found
VERBOSE: [Update-WindowsImageWMF] : Checking for the latest WMF : G:\OMAPSUG\WITExample\Resource\WMF\5pp\W2K12-KB3066438-x64.msu : Found
VERBOSE: [Update-WindowsImageWMF] : Checking for the latest WMF : G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win7AndW2K8R2-KB3066439-x64.msu : Found
VERBOSE: [Update-WindowsImageWMF] : Checking for the latest WMF : G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win7AndW2K8R2-KB3066439-x64.msu : Found
VERBOSE: [Update-WindowsImageWMF] : Checking for the latest WMF : G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win7AndW2K8R2-KB3066439-x86.msu : Found
VERBOSE: [Update-WindowsImageWMF] : Checking for the latest WMF : G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win7AndW2K8R2-KB3066439-x86.msu : Found
VERBOSE: [Update-WindowsImageWMF] : Checking for the latest WMF : G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win8.1AndW2K12R2-KB3066437-x64.msu : Found
VERBOSE: [Update-WindowsImageWMF] : Checking for the latest WMF : G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win8.1AndW2K12R2-KB3066437-x64.msu : Found
VERBOSE: [Update-WindowsImageWMF] : Checking for the latest WMF : G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win8.1AndW2K12R2-KB3066437-x86.msu : Found
VERBOSE: [Update-WindowsImageWMF] : Checking for the latest WMF : G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win8.1AndW2K12R2-KB3066437-x86.msu : Found
VERBOSE: [Update-WindowsImageWMF] : Checking for .NET 4.6
VERBOSE: [Update-WindowsImageWMF] : .NET : Adding installer to G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_Update.vhdx
VERBOSE: [Update-WindowsImageWMF] : .NET : updateting AtStartup script
VERBOSE: [Update-WindowsImageWMF] : .NET : Creating temp vm and waiting
VERBOSE: [createRunAndWaitVM] : Creating VM fyniunyd at 02/20/2016 19:06:01
VERBOSE: [createRunAndWaitVM] : VM fyniunyd Stoped
VERBOSE: [createRunAndWaitVM] : VM fyniunyd Deleted at 02/20/2016 19:26:53
VERBOSE: [Update-WindowsImageWMF] : WMF : Applying WMF to G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_Update.vhdx and Updating AtStartup script
VERBOSE: checking if G:\OMAPSUG\WITExample\Resource\WMF\5pp\W2K12-KB3066438-x64.msu applies to G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_Update.vhdx
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17031
VERBOSE: Successfully added package G:\OMAPSUG\WITExample\Resource\WMF\5pp\W2K12-KB3066438-x64.msu
VERBOSE: checking if G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win7AndW2K8R2-KB3066439-x64.msu applies to G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_Update.vhdx
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17031
VERBOSE: Successfully added package G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win7AndW2K8R2-KB3066439-x64.msu
VERBOSE: checking if G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win7AndW2K8R2-KB3066439-x86.msu applies to G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_Update.vhdx
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17031
VERBOSE: Successfully added package G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win7AndW2K8R2-KB3066439-x86.msu
VERBOSE: checking if G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win8.1AndW2K12R2-KB3066437-x64.msu applies to G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_Update.vhdx
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17031
VERBOSE: Successfully added package G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win8.1AndW2K12R2-KB3066437-x64.msu
VERBOSE: checking if G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win8.1AndW2K12R2-KB3066437-x86.msu applies to G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_Update.vhdx
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17031
VERBOSE: Successfully added package G:\OMAPSUG\WITExample\Resource\WMF\5pp\Win8.1AndW2K12R2-KB3066437-x86.msu
VERBOSE: [Update-WindowsImageWMF] : WMF : creating temp VM to finalize install on G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_Update.vhdx
VERBOSE: [createRunAndWaitVM] : Creating VM qynvqly1 at 02/20/2016 19:29:24
VERBOSE: [createRunAndWaitVM] : VM qynvqly1 Stoped
VERBOSE: [createRunAndWaitVM] : VM qynvqly1 Deleted at 02/20/2016 19:33:14
VERBOSE: [Update-WindowsImageWMF] : WMF : Checking if changes made
VERBOSE: [Update-WindowsImageWMF] : WMF : Changes found : Merging G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_Update.vhdx into G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_Base.vhdx
VERBOSE: [Invoke-WindowsImageUpdate] : Validateing [Srv2012r2_Core]
VERBOSE: [Invoke-WindowsImageUpdate] : Validateing VM switch config
VERBOSE: Performing the operation "Download required Modules" on target "PowerShell Gallery".
VERBOSE: [Invoke-WindowsImageUpdate] : Geting latest PSWindowsUpdate
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: The -Repository parameter was not specified. PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2/' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSWindowsUpdate'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'PSWindowsUpdate'.
VERBOSE: Performing the operation "Save Package" on target "G:\OMAPSUG\WITExample\Resource\Modules".
VERBOSE: The specified module will be installed in 'G:\OMAPSUG\WITExample\Resource\Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'PSWindowsUpdate' with version '1.5.1.11' from the repository 'https://www.powershellgallery.com/api/v2/'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSWindowsUpdate'' for ''.
VERBOSE: InstallPackage' - name='PSWindowsUpdate', version='1.5.1.11',destination='C:\Users\Blade_000\AppData\Local\Temp\492240942'
VERBOSE: DownloadPackage' - name='PSWindowsUpdate', version='1.5.1.11',destination='C:\Users\Blade_000\AppData\Local\Temp\492240942\PSWindowsUpdate\PSWindowsUpdate.nupkg', uri='https://www.powershellgallery.com/api/v2/package/PSWindowsUpdate/1.5.1.11'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/PSWindowsUpdate/1.5.1.11'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/PSWindowsUpdate/1.5.1.11'.
VERBOSE: Completed downloading 'PSWindowsUpdate'.
VERBOSE: Hash for package 'PSWindowsUpdate' does not match hash provided from the server.
VERBOSE: InstallPackageLocal' - name='PSWindowsUpdate', version='1.5.1.11',destination='C:\Users\Blade_000\AppData\Local\Temp\492240942'
VERBOSE: Module 'PSWindowsUpdate' was saved successfully.
VERBOSE: Performing the operation "Invoke Windows Updates on Image" on target "Srv2012r2_Core".
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : New Diff Disk : Creating G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_Update.vhdx from G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_base.vhdx
VERBOSE: New-VHD will create a new virtual hard disk with the path "G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_Update.vhdx".
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : Adding PSWindowsUpdate Module to G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_Update.vhdx
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : updateting AtStartup script
VERBOSE: Sidebyside detected in PSWindowsUpdate : switching to v4 compatability
VERBOSE: [createRunAndWaitVM] : Creating VM m2bvm24m at 02/20/2016 19:34:44
VERBOSE: [createRunAndWaitVM] : VM m2bvm24m Stoped
VERBOSE: [createRunAndWaitVM] : VM m2bvm24m Deleted at 02/20/2016 20:39:22
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : Changes detected : Merging G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_Update.vhdx into G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_base.vhdx
VERBOSE: Merge-VHD will merge the virtual hard disk "g:\omapsug\witexample\baseimage\srv2012r2_core_update.vhdx" into its parent "g:\omapsug\witexample\baseimage\srv2012r2_core_base.vhdx".
VERBOSE: [Invoke-WindowsImageUpdate] : SysPrep : New Diff Disk : Creating G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_Sysprep.vhdx from G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_base.vhdx
VERBOSE: New-VHD will create a new virtual hard disk with the path "G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_Sysprep.vhdx".
VERBOSE: [Invoke-WindowsImageUpdate] : SysPrep : updateting AtStartup script
VERBOSE: [Invoke-WindowsImageUpdate] : SysPrep : Creating temp vm and waiting
VERBOSE: [createRunAndWaitVM] : Creating VM 4dn3nqfx at 02/20/2016 20:42:41
VERBOSE: [createRunAndWaitVM] : VM 4dn3nqfx Stoped
VERBOSE: [createRunAndWaitVM] : VM 4dn3nqfx Deleted at 02/20/2016 20:49:06
VERBOSE: [Invoke-WindowsImageUpdate] : SysPrep : Removing PageFile and PsTemp
VERBOSE: [Invoke-WindowsImageUpdate] : SysPrep : Cleaning SxS
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: Target Image Version 6.3.9600.17200
VERBOSE: [Invoke-WindowsImageUpdate] : WIM : Creating G:\OMAPSUG\WITExample\UpdatedImageShare\Srv2012r2_Core.wim
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: [Invoke-WindowsImageUpdate] : WIM : removing G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_Core_Sysprep.vhdx
VERBOSE: [Invoke-WindowsImageUpdate] : VHD : Creating G:\OMAPSUG\WITExample\UpdatedImageShare\Srv2012r2_Core.vhdx from G:\OMAPSUG\WITExample\UpdatedImageShare\Srv2012r2_Core.wim
VERBOSE: [Convert-Wim2VHD] : Overwrite partitions inside [G:\OMAPSUG\WITExample\UpdatedImageShare\Srv2012r2_Core.vhdx] with content of [G:\OMAPSUG\WITExample\UpdatedImageShare\Srv2012r2_Core.wim]
VERBOSE: [Convert-Wim2VHD] : InitializeVHDPartitionParam
VERBOSE:
Name Value
---- -----
Dynamic True
Path G:\OMAPSUG\WITExample\UpdatedImageShare\Srv2012r2_Core.vhdx
DiskLayout UEFI
force True
Size 42949672960
VERBOSE: [Convert-Wim2VHD] : SetVHDPartitionParam
VERBOSE:
Name Value
---- -----
Confirm False
Path G:\OMAPSUG\WITExample\UpdatedImageShare\Srv2012r2_Core.vhdx
Index 1
force True
SourcePath G:\OMAPSUG\WITExample\UpdatedImageShare\Srv2012r2_Core.wim
VERBOSE: [Convert-Wim2VHD] : ParametersToPass
VERBOSE:
Name Value
---- -----
Verbose True
VERBOSE: [Initialize-VHDPartition] Create partition structure for Bootable vhd(x) on [G:\OMAPSUG\WITExample\UpdatedImageShare\Srv2012r2_Core.vhdx]
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core.vhdx] : Creating
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core.vhdx] : @vhdParms
VERBOSE:
Name Value
---- -----
Path G:\OMAPSUG\WITExample\UpdatedImageShare\Srv2012r2_Core.vhdx
SizeBytes 42949672960
Dynamic True
ErrorAction Stop
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core.vhdx] : Mounting disk image
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core.vhdx] : Initializing disk [5] as GPT
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core.vhdx] : Clearing disk partitions to start all over
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core.vhdx] : EFI system : Creating partition of [209715200] bytes
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core.vhdx] : EFI system : Formatting FAT32
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core.vhdx] : EFI system : Setting system partition as ESP
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core.vhdx] : MSR : Creating partition of [134217728] bytes
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core.vhdx] : Windows : Creating partition of [42603642880] bytes
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core.vhdx] : Windows : Formatting volume NTFS
VERBOSE: [Initialize-VHDPartition] [Srv2012r2_Core.vhdx] : Dismounting disk image
VERBOSE: [Set-VHDPartition] : Overwrite partitions inside [G:\OMAPSUG\WITExample\UpdatedImageShare\Srv2012r2_Core.vhdx] with content of [G:\OMAPSUG\WITExample\UpdatedImageShare\Srv2012r2_Core.wim]
VERBOSE: [Set-VHDPartition] [Srv2012r2_Core.vhdx] : Mounting disk image [G:\OMAPSUG\WITExample\UpdatedImageShare\Srv2012r2_Core.vhdx]
VERBOSE: [Set-VHDPartition] [Srv2012r2_Core.vhdx] : Munted as disknumber [5]
VERBOSE: [Set-VHDPartition] [Srv2012r2_Core.vhdx] : Partition Table
VERBOSE:
PartitionNumber DriveLetter Size Type
--------------- ----------- ---- ----
1 I 209715200 System
2 134217728 Reserved
3 J 42603642880 Basic
VERBOSE: [Set-VHDPartition] [Srv2012r2_Core.vhdx] Windows Partition [3] : Applying image from [G:\OMAPSUG\WITExample\UpdatedImageShare\Srv2012r2_Core.wim] to [J:\] using Index [1]
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: [Set-VHDPartition] [Srv2012r2_Core.vhdx] : Disk Layout [UEFI]
VERBOSE: [Set-VHDPartition] [Srv2012r2_Core.vhdx] System Partition [1] : Running [J:\Windows\System32\bcdboot.exe] -> J:\Windows /s I: /v /f UEFI
VERBOSE: [Run-Executable] : Running [bcdboot.exe] [J:\Windows /s I: /v /f UEFI]
VERBOSE:
Name Value
---- -----
PassThru True
FilePath bcdboot.exe
ArgumentList {J:\Windows, /s I:, /v, /f UEFI}
RedirectStandardError C:\Users\BLADE_~1\AppData\Local\Temp\bcdboot.exe-StandardError.txt
NoNewWindow True
Wait True
RedirectStandardOutput C:\Users\BLADE_~1\AppData\Local\Temp\bcdboot.exe-StandardOutput.txt
VERBOSE: [Run-Executable] : Return code was [0]
VERBOSE: [Set-VHDPartition] [Srv2012r2_Core.vhdx] : Removing Drive letters
VERBOSE: [Set-VHDPartition] [Srv2012r2_Core.vhdx] : Dismounting
VERBOSE: [Set-VHDPartition] [Srv2012r2_Core.vhdx] : Finished
VERBOSE: [Invoke-WindowsImageUpdate] : Validateing [Srv2012r2_source]
VERBOSE: [Invoke-WindowsImageUpdate] : Validateing VM switch config
VERBOSE: Performing the operation "Download required Modules" on target "PowerShell Gallery".
VERBOSE: [Invoke-WindowsImageUpdate] : Geting latest PSWindowsUpdate
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: The -Repository parameter was not specified. PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2/' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSWindowsUpdate'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'PSWindowsUpdate'.
VERBOSE: Performing the operation "Save Package" on target "G:\OMAPSUG\WITExample\Resource\Modules".
VERBOSE: The specified module will be installed in 'G:\OMAPSUG\WITExample\Resource\Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'PSWindowsUpdate' with version '1.5.1.11' from the repository 'https://www.powershellgallery.com/api/v2/'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSWindowsUpdate'' for ''.
VERBOSE: InstallPackage' - name='PSWindowsUpdate', version='1.5.1.11',destination='C:\Users\Blade_000\AppData\Local\Temp\1946716732'
VERBOSE: DownloadPackage' - name='PSWindowsUpdate', version='1.5.1.11',destination='C:\Users\Blade_000\AppData\Local\Temp\1946716732\PSWindowsUpdate\PSWindowsUpdate.nupkg', uri='https://www.powershellgallery.com/api/v2/package/PSWindowsUpdate/1.5.1.11'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/PSWindowsUpdate/1.5.1.11'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/PSWindowsUpdate/1.5.1.11'.
VERBOSE: Completed downloading 'PSWindowsUpdate'.
VERBOSE: Hash for package 'PSWindowsUpdate' does not match hash provided from the server.
VERBOSE: InstallPackageLocal' - name='PSWindowsUpdate', version='1.5.1.11',destination='C:\Users\Blade_000\AppData\Local\Temp\1946716732'
VERBOSE: Module 'PSWindowsUpdate' was saved successfully.
VERBOSE: Performing the operation "Invoke Windows Updates on Image" on target "Srv2012r2_source".
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : New Diff Disk : Creating G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_Update.vhdx from G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_base.vhdx
VERBOSE: New-VHD will create a new virtual hard disk with the path "G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_Update.vhdx".
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : Adding PSWindowsUpdate Module to G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_Update.vhdx
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : updateting AtStartup script
VERBOSE: Sidebyside detected in PSWindowsUpdate : switching to v4 compatability
VERBOSE: [createRunAndWaitVM] : Creating VM wbumsaf0 at 02/20/2016 22:03:42
VERBOSE: [createRunAndWaitVM] : VM wbumsaf0 Stoped
VERBOSE: [createRunAndWaitVM] : VM wbumsaf0 Deleted at 02/20/2016 23:05:24
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : Changes detected : Merging G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_Update.vhdx into G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_base.vhdx
VERBOSE: Merge-VHD will merge the virtual hard disk "g:\omapsug\witexample\baseimage\srv2012r2_source_update.vhdx" into its parent "g:\omapsug\witexample\baseimage\srv2012r2_source_base.vhdx".
VERBOSE: [Invoke-WindowsImageUpdate] : SysPrep : New Diff Disk : Creating G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_Sysprep.vhdx from G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_base.vhdx
VERBOSE: New-VHD will create a new virtual hard disk with the path "G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_Sysprep.vhdx".
VERBOSE: [Invoke-WindowsImageUpdate] : SysPrep : updateting AtStartup script
VERBOSE: [Invoke-WindowsImageUpdate] : SysPrep : Creating temp vm and waiting
VERBOSE: [createRunAndWaitVM] : Creating VM 4xynwh0d at 02/20/2016 23:08:48
VERBOSE: [createRunAndWaitVM] : VM 4xynwh0d Stoped
VERBOSE: [createRunAndWaitVM] : VM 4xynwh0d Deleted at 02/20/2016 23:14:37
VERBOSE: [Invoke-WindowsImageUpdate] : SysPrep : Removing PageFile and PsTemp
VERBOSE: [Invoke-WindowsImageUpdate] : WIM : Creating G:\OMAPSUG\WITExample\UpdatedImageShare\Srv2012r2_source.wim
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: [Invoke-WindowsImageUpdate] : WIM : removing G:\OMAPSUG\WITExample\BaseImage\Srv2012r2_source_Sysprep.vhdx
VERBOSE: <?xml version="1.0" encoding="UTF-16"?>
<Task version="1.3" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo />
<Triggers>
<CalendarTrigger>
<StartBoundary>2016-02-21T05:00:00Z</StartBoundary>
<Enabled>true</Enabled>
<ScheduleByWeek>
<DaysOfWeek>
<Wednesday />
</DaysOfWeek>
<WeeksInterval>1</WeeksInterval>
</ScheduleByWeek>
</CalendarTrigger>
</Triggers>
<Settings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
<AllowHardTerminate>true</AllowHardTerminate>
<StartWhenAvailable>false</StartWhenAvailable>
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
<IdleSettings>
<Duration>PT10M</Duration>
<WaitTimeout>PT1H</WaitTimeout>
<StopOnIdleEnd>true</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<AllowStartOnDemand>true</AllowStartOnDemand>
<Enabled>true</Enabled>
<Hidden>false</Hidden>
<RunOnlyIfIdle>false</RunOnlyIfIdle>
<DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
<UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine>
<WakeToRun>false</WakeToRun>
<ExecutionTimeLimit>PT72H</ExecutionTimeLimit>
<Priority>7</Priority>
</Settings>
<Actions>
<Exec>
<Command>%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe</Command>
<Arguments> -Command "&amp; {get-packageprovider -name nuget -forcebootstrap }"</Arguments>
</Exec>
<Exec>
<Command>%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe</Command>
<Arguments> -Command "&amp; {Start-Transcript C:\ProgramData\WITUpdate.log -Append; import-module WindowsImageTools -erroraction stop; Invoke-WindowsImageUpdate -Path G:\OMAPSUG\WITExample -Verbose -ImageName Srv2012r2_Core -ReduceImageSize ; Invoke-WindowsImageUpdate -Path G:\OMAPSUG\WITExample -Verbose -ImageName Srv2012r2_source -output WIM }"</Arguments>
</Exec>
</Actions>
</Task>
Import-Module -Name C:\GitRepo\WindowsImageTools\WindowsImageTools -Force
$demoDrive = 'G:'
$demoFolder = 'G:\DEMO'
Remove-Item $demoDrive\WitDemo -Recurse -force -ErrorAction SilentlyContinue
break
# Create The example
New-WindowsImageToolsExample -Path $demoDrive\WitDemo
Start-Process $demoDrive\WitDemo
# Unattend
$adminCred = New-Object PSCredential('Administrator',('P@ssw0rd'|ConvertTo-SecureString -Force -AsPlainText))
$userCred = New-Object PSCredential('Abe',('4Scoreand7yearsago'|ConvertTo-SecureString -Force -AsPlainText))
$userCred2 = New-Object PSCredential('Han',('NoCommitie!'|ConvertTo-SecureString -Force -AsPlainText))
$param = @{
AdminCredential = $adminCred
enableAdministrator = $true
UserAccount = $userCred, $userCred2
FirstBootScriptPath = 'c:\pstemp\firstboot.ps1'
}
$file = New-UnattendXml -Verbose @param #-TimeZone
Start-Process $file
## Example download
Start-Process $demoFolder\WITExample\ISO
Remove-Item "$demoFolder\WITExample\ISO\HyperV2012r2Eval.ISO" -ErrorAction SilentlyContinue
# convert wim 2 vhd
help Convert-Wim2VHD
#Update Config
Get-UpdateConfig -Path $demoDrive\WitDemo
$params = @{
Path = "$demoDrive\WitDemo"
VmSwitch = 'Lab'
DnsServer = '208.67.222.222'
IpAddress = '192.168.10.20'
SubNetMask = '24'
Gateway = '172.168.10.1'
}
Set-UpdateConfig @params |
Get-UpdateConfig
## Basic Example
## Code Add-UpdateImage
### Start schedualer service
#demo add-updateimage
$params = @{
Path = "$demoFolder\WITExample"
FriendlyName = 'Srv2012r2_Vol_Core'
DiskLayout = 'UEFI'
SourcePath = "$demoFolder\WITExample\ISO\Srv2012r2u_Vol.iso"
AdminCredential = (Get-Credential -UserName 'administrator' -Message ' ')
Index = '3'
}
Add-UpdateImage @params -Verbose
Start-Process "$demoFolder\WITExample\"
# Invoke-WindowsImageUpdate
help Invoke-WindowsImageUpdate
## Advance Example
### Two actions on scedualed tast
Start-Process 'C:\Program Files (x86)\Notepad++\notepad++.exe' "$demoFolder\WITUpdate.log"
Start-Process 'C:\Program Files (x86)\Notepad++\notepad++.exe' "$demoFolder\advanced.log"
Import-Module -Name C:\GitRepo\WindowsImageTools\WindowsImageTools -Force
# Set location variables
$demoDrive = 'F:'
$demoFolder = "$demoDrive\DEMO\WITExample"
break
#region demo install-windowsfeature
$ImagePath = "$demoFolder\UpdatedImageShare\FeatureTest.vhdx"
$ParentPath = "$demoFolder\UpdatedImageShare\Srv2012r2.vhdx"
$null = Remove-Item $ImagePath -ErrorAction SilentlyContinue
$null = new-VHD -Path $ImagePath -ParentPath $ParentPath
$vmGeneration = 1
$PartitionStyle = Get-VhdPartitionStyle -vhd $ImagePath
if ($PartitionStyle -eq 'GPT')
{
$vmGeneration = 2
}
$ret = Mount-VhdAndRunBlock -vhd $ImagePath -block {
$adminCred = New-Object PSCredential('Administrator',('P@ssw0rd'|ConvertTo-SecureString -Force -AsPlainText))
New-UnattendXml -Path "$($driveLetter):\unattend.xml" -AdminPassword $adminCred -enableAdministrator -Verbose
Copy-Item "$demoFolder\UpdatedImageShare\Srv2012r2_source.wim" "$($driveLetter):\source.wim" -Recurse
}
Invoke-CreateVmRunAndWait -verbose -vhdPath $ImagePath -vmGeneration $vmGeneration -VmSwitch 'bridge'
break
#endregion
#region WIT feature source
$adminCred = New-Object PSCredential('Administrator',('P@ssw0rd'|ConvertTo-SecureString -Force -AsPlainText))
$ImagePath = "$demoFolder\UpdatedImageShare\FeatureTest2.vhdx"
$ImageSource = "$demoFolder\UpdatedImageShare\Srv2012r2.wim"
$FeatureSource = "$demoFolder\UpdatedImageShare\Srv2012r2_source.wim"
$null = Remove-Item $ImagePath -ErrorAction SilentlyContinue
$convertParam = @{
Path = $ImagePath
SourcePath = $ImageSource
FeatureSource = $FeatureSource
Unattend = (New-UnattendXml -AdminPassword $adminCred -enableAdministrator -Verbose)
Feature = 'NetFx3', 'Server-Gui-Shell'
DiskLayout = 'UEFI'
}
Convert-Wim2VHD @convertParam -Verbose
$vmGeneration = 1
$PartitionStyle = Get-VhdPartitionStyle -vhd $ImagePath
if ($PartitionStyle -eq 'GPT')
{
$vmGeneration = 2
}
Invoke-CreateVmRunAndWait -verbose -vhdPath $ImagePath -vmGeneration $vmGeneration -VmSwitch 'bridge'
#endregion
while ($psise.PowerShellTabs.Count -ne 4) { $psise.PowerShellTabs.Add() }
$psise.PowerShellTabs[0].DisplayName = 'Examples'
(Get-ChildItem G:\DEMO\WITExample -file ).fullname | foreach {psedit $_}
Start-Sleep -Seconds 1
$psise.PowerShellTabs[1].Invoke("psedit 'C:\Program Files\WindowsPowerShell\Modules\WindowsImageTools\Functions\Add-UpdateImage.ps1'")
Start-Sleep -Seconds 1
$psise.PowerShellTabs[1].Invoke("psedit 'C:\Program Files\WindowsPowerShell\Modules\WindowsImageTools\Functions\Convert-Wim2VHD.ps1'")
Start-Sleep -Seconds 1
$psise.PowerShellTabs[1].Invoke("psedit 'C:\Program Files\WindowsPowerShell\Modules\WindowsImageTools\Functions\Get-VhdPartitionStyle.ps1'")
Start-Sleep -Seconds 1
$psise.PowerShellTabs[1].Invoke("psedit 'C:\Program Files\WindowsPowerShell\Modules\WindowsImageTools\Functions\HelperFunctions.ps1'")
Start-Sleep -Seconds 1
$psise.PowerShellTabs[1].Invoke("psedit 'C:\Program Files\WindowsPowerShell\Modules\WindowsImageTools\Functions\Initialize-VHDPartition.ps1'")
Start-Sleep -Seconds 1
$psise.PowerShellTabs[1].Invoke("psedit 'C:\Program Files\WindowsPowerShell\Modules\WindowsImageTools\Functions\Invoke-CreateVmRunAndWait.ps1'")
Start-Sleep -Seconds 1
$psise.PowerShellTabs[1].Invoke("psedit 'C:\Program Files\WindowsPowerShell\Modules\WindowsImageTools\Functions\Invoke-WindowsImageUpdate.ps1'")
Start-Sleep -Seconds 1
$psise.PowerShellTabs[1].Invoke("psedit 'C:\Program Files\WindowsPowerShell\Modules\WindowsImageTools\Functions\Mount-VhdAndRunBlock.ps1'")
Start-Sleep -Seconds 1
$psise.PowerShellTabs[1].Invoke("psedit 'C:\Program Files\WindowsPowerShell\Modules\WindowsImageTools\Functions\New-Unattend.ps1'")
Start-Sleep -Seconds 1
$psise.PowerShellTabs[1].Invoke("psedit 'C:\Program Files\WindowsPowerShell\Modules\WindowsImageTools\Functions\New-WindowsImageToolsExample.ps1'")
Start-Sleep -Seconds 1
$psise.PowerShellTabs[1].Invoke("psedit 'C:\Program Files\WindowsPowerShell\Modules\WindowsImageTools\Functions\Set-UpdateConfig.ps1'")
Start-Sleep -Seconds 1
$psise.PowerShellTabs[1].Invoke("psedit 'C:\Program Files\WindowsPowerShell\Modules\WindowsImageTools\Functions\Set-VHDPartition.ps1'")
Start-Sleep -Seconds 1
$psise.PowerShellTabs[1].Invoke("psedit 'C:\Program Files\WindowsPowerShell\Modules\WindowsImageTools\Functions\Update-WindowsImageWMF.ps1'")
Start-Sleep -Seconds 1
$psise.PowerShellTabs[1].Invoke("psedit 'C:\Program Files\WindowsPowerShell\Modules\WindowsImageTools\Functions\Wim2VhdClass.ps1'")
Start-Sleep -Seconds 1
$psise.PowerShellTabs[1].Invoke('cls')
$psise.PowerShellTabs[1].DisplayName = 'Code'
Start-Sleep -Seconds 1
$psise.PowerShellTabs[2].Invoke("psedit 'G:\DEMO\Demo1.ps1'")
Start-Sleep -Seconds 1
$psise.PowerShellTabs[2].Invoke('cls')
$psise.PowerShellTabs[2].DisplayName = 'Demo'
$psise.PowerShellTabs[3].Invoke("psedit 'G:\DEMO\Demo2.ps1'")
Start-Sleep -Seconds 1
$psise.PowerShellTabs[3].Invoke('cls')
$psise.PowerShellTabs[3].DisplayName = 'Demo2'
$pSISE.Options.Zoom=150
Start-Process https://sway.com/OzRNMLckhDxECu6o
Clear-Host
**********************
Windows PowerShell transcript start
Start time: 20160217144658
Username: SHODAN\Blade_000
RunAs User: SHODAN\Blade_000
Machine: SHODAN (Microsoft Windows NT 10.0.10586.0)
Host Application: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command & {Start-Transcript C:\ProgramData\WITUpdate.log -Append; import-module WindowsImageTools -erroraction stop; Invoke-WindowsImageUpdate -Path G:\temp2 -Verbose -ImageName Srv2012r2_Core -ReduceImageSize ; Invoke-WindowsImageUpdate -Path G:\temp2 -Verbose -ImageName Srv2012r2_source -output WIM }
Process ID: 12564
PSVersion: 5.0.10586.63
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0.10586.63
BuildVersion: 10.0.10586.63
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
Transcript started, output file is C:\ProgramData\WITUpdate.log
VERBOSE: [Invoke-WindowsImageUpdate] : Validateing [Srv2012r2_Core]
VERBOSE: [Invoke-WindowsImageUpdate] : Validateing VM switch config
VERBOSE: Performing the operation "Download required Modules" on target "PowerShell Gallery".
VERBOSE: [Invoke-WindowsImageUpdate] : Geting latest PSWindowsUpdate
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: The -Repository parameter was not specified. PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2/' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSWindowsUpdate'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'PSWindowsUpdate'.
VERBOSE: Performing the operation "Save Package" on target "G:\temp2\Resource\Modules".
VERBOSE: The specified module will be installed in 'G:\temp2\Resource\Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'PSWindowsUpdate' with version '1.5.1.11' from the repository 'https://www.powershellgallery.com/api/v2/'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSWindowsUpdate'' for ''.
VERBOSE: InstallPackage' - name='PSWindowsUpdate', version='1.5.1.11',destination='C:\Users\Blade_000\AppData\Local\Temp\773510384'
VERBOSE: DownloadPackage' - name='PSWindowsUpdate', version='1.5.1.11',destination='C:\Users\Blade_000\AppData\Local\Temp\773510384\PSWindowsUpdate\PSWindowsUpdate.nupkg', uri='https://www.powershellgallery.com/api/v2/package/PSWindowsUpdate/1.5.1.11'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/PSWindowsUpdate/1.5.1.11'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/PSWindowsUpdate/1.5.1.11'.
VERBOSE: Completed downloading 'PSWindowsUpdate'.
VERBOSE: Hash for package 'PSWindowsUpdate' does not match hash provided from the server.
VERBOSE: InstallPackageLocal' - name='PSWindowsUpdate', version='1.5.1.11',destination='C:\Users\Blade_000\AppData\Local\Temp\773510384'
VERBOSE: Module 'PSWindowsUpdate' was saved successfully.
VERBOSE: Performing the operation "Invoke Windows Updates on Image" on target "Srv2012r2_Core".
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : New Diff Disk : Creating G:\temp2\BaseImage\Srv2012r2_Core_Update.vhdx from G:\temp2\BaseImage\Srv2012r2_Core_base.vhdx
VERBOSE: New-VHD will create a new virtual hard disk with the path "G:\temp2\BaseImage\Srv2012r2_Core_Update.vhdx".
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : Adding PSWindowsUpdate Module to G:\temp2\BaseImage\Srv2012r2_Core_Update.vhdx
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : updateting AtStartup script
VERBOSE: Sidebyside detected in PSWindowsUpdate : switching to v4 compatability
VERBOSE: [createRunAndWaitVM] : Creating VM psmc1ejh at 02/17/2016 14:47:29
VERBOSE: [createRunAndWaitVM] : VM psmc1ejh Stoped
VERBOSE: [createRunAndWaitVM] : VM psmc1ejh Deleted at 02/17/2016 14:55:29
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : No changes, discarding G:\temp2\BaseImage\Srv2012r2_Core_Update.vhdx
VERBOSE: [Invoke-WindowsImageUpdate] : Validateing [Srv2012r2_source]
VERBOSE: [Invoke-WindowsImageUpdate] : Validateing VM switch config
VERBOSE: Performing the operation "Download required Modules" on target "PowerShell Gallery".
VERBOSE: [Invoke-WindowsImageUpdate] : Geting latest PSWindowsUpdate
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: The -Repository parameter was not specified. PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2/' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSWindowsUpdate'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'PSWindowsUpdate'.
VERBOSE: Performing the operation "Save Package" on target "G:\temp2\Resource\Modules".
VERBOSE: The specified module will be installed in 'G:\temp2\Resource\Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'PSWindowsUpdate' with version '1.5.1.11' from the repository 'https://www.powershellgallery.com/api/v2/'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSWindowsUpdate'' for ''.
VERBOSE: InstallPackage' - name='PSWindowsUpdate', version='1.5.1.11',destination='C:\Users\Blade_000\AppData\Local\Temp\1586417469'
VERBOSE: DownloadPackage' - name='PSWindowsUpdate', version='1.5.1.11',destination='C:\Users\Blade_000\AppData\Local\Temp\1586417469\PSWindowsUpdate\PSWindowsUpdate.nupkg', uri='https://www.powershellgallery.com/api/v2/package/PSWindowsUpdate/1.5.1.11'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/PSWindowsUpdate/1.5.1.11'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/PSWindowsUpdate/1.5.1.11'.
VERBOSE: Completed downloading 'PSWindowsUpdate'.
VERBOSE: Hash for package 'PSWindowsUpdate' does not match hash provided from the server.
VERBOSE: InstallPackageLocal' - name='PSWindowsUpdate', version='1.5.1.11',destination='C:\Users\Blade_000\AppData\Local\Temp\1586417469'
VERBOSE: Module 'PSWindowsUpdate' was saved successfully.
VERBOSE: Performing the operation "Invoke Windows Updates on Image" on target "Srv2012r2_source".
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : New Diff Disk : Creating G:\temp2\BaseImage\Srv2012r2_source_Update.vhdx from G:\temp2\BaseImage\Srv2012r2_source_base.vhdx
VERBOSE: New-VHD will create a new virtual hard disk with the path "G:\temp2\BaseImage\Srv2012r2_source_Update.vhdx".
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : Adding PSWindowsUpdate Module to G:\temp2\BaseImage\Srv2012r2_source_Update.vhdx
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : updateting AtStartup script
VERBOSE: Sidebyside detected in PSWindowsUpdate : switching to v4 compatability
VERBOSE: [createRunAndWaitVM] : Creating VM arvvxz3g at 02/17/2016 14:55:52
VERBOSE: [createRunAndWaitVM] : VM arvvxz3g Stoped
VERBOSE: [createRunAndWaitVM] : VM arvvxz3g Deleted at 02/17/2016 16:51:13
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : Changes detected : Merging G:\temp2\BaseImage\Srv2012r2_source_Update.vhdx into G:\temp2\BaseImage\Srv2012r2_source_base.vhdx
VERBOSE: Merge-VHD will merge the virtual hard disk "g:\temp2\baseimage\srv2012r2_source_update.vhdx" into its parent "g:\temp2\baseimage\srv2012r2_source_base.vhdx".
VERBOSE: [Invoke-WindowsImageUpdate] : SysPrep : New Diff Disk : Creating G:\temp2\BaseImage\Srv2012r2_source_Sysprep.vhdx from G:\temp2\BaseImage\Srv2012r2_source_base.vhdx
VERBOSE: New-VHD will create a new virtual hard disk with the path "G:\temp2\BaseImage\Srv2012r2_source_Sysprep.vhdx".
VERBOSE: [Invoke-WindowsImageUpdate] : SysPrep : updateting AtStartup script
VERBOSE: [Invoke-WindowsImageUpdate] : SysPrep : Creating temp vm and waiting
VERBOSE: [createRunAndWaitVM] : Creating VM ikeoc4ku at 02/17/2016 16:53:49
VERBOSE: [createRunAndWaitVM] : VM ikeoc4ku Stoped
VERBOSE: [createRunAndWaitVM] : VM ikeoc4ku Deleted at 02/17/2016 17:03:11
VERBOSE: [Invoke-WindowsImageUpdate] : SysPrep : Removing PageFile and PsTemp
VERBOSE: [Invoke-WindowsImageUpdate] : SysPrep : Cleaning SxS
VERBOSE: [Invoke-WindowsImageUpdate] : WIM : Creating G:\temp2\UpdatedImageShare\Srv2012r2_source.wim
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: [Invoke-WindowsImageUpdate] : WIM : removing G:\temp2\BaseImage\Srv2012r2_source_Sysprep.vhdx
**********************
Windows PowerShell transcript end
End time: 20160217175828
**********************
**********************
Windows PowerShell transcript start
Start time: 20160217230005
Username: SHODAN\Blade_000
RunAs User: SHODAN\Blade_000
Machine: SHODAN (Microsoft Windows NT 10.0.10586.0)
Host Application: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command & {Start-Transcript C:\ProgramData\WITUpdate.log -Append; import-module WindowsImageTools -erroraction stop; Invoke-WindowsImageUpdate -Path G:\temp2 -Verbose -ImageName Srv2012r2_Core -ReduceImageSize ; Invoke-WindowsImageUpdate -Path G:\temp2 -Verbose -ImageName Srv2012r2_source -output WIM }
Process ID: 9800
PSVersion: 5.0.10586.63
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0.10586.63
BuildVersion: 10.0.10586.63
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
Transcript started, output file is C:\ProgramData\WITUpdate.log
VERBOSE: [Invoke-WindowsImageUpdate] : Validateing [Srv2012r2_Core]
VERBOSE: [Invoke-WindowsImageUpdate] : Validateing VM switch config
VERBOSE: Performing the operation "Download required Modules" on target "PowerShell Gallery".
VERBOSE: [Invoke-WindowsImageUpdate] : Geting latest PSWindowsUpdate
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: The -Repository parameter was not specified. PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2/' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSWindowsUpdate'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'PSWindowsUpdate'.
VERBOSE: Performing the operation "Save Package" on target "G:\temp2\Resource\Modules".
VERBOSE: The specified module will be installed in 'G:\temp2\Resource\Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'PSWindowsUpdate' with version '1.5.1.11' from the repository 'https://www.powershellgallery.com/api/v2/'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSWindowsUpdate'' for ''.
VERBOSE: InstallPackage' - name='PSWindowsUpdate', version='1.5.1.11',destination='C:\Users\Blade_000\AppData\Local\Temp\247618158'
VERBOSE: DownloadPackage' - name='PSWindowsUpdate', version='1.5.1.11',destination='C:\Users\Blade_000\AppData\Local\Temp\247618158\PSWindowsUpdate\PSWindowsUpdate.nupkg', uri='https://www.powershellgallery.com/api/v2/package/PSWindowsUpdate/1.5.1.11'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/PSWindowsUpdate/1.5.1.11'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/PSWindowsUpdate/1.5.1.11'.
VERBOSE: Completed downloading 'PSWindowsUpdate'.
VERBOSE: Hash for package 'PSWindowsUpdate' does not match hash provided from the server.
VERBOSE: InstallPackageLocal' - name='PSWindowsUpdate', version='1.5.1.11',destination='C:\Users\Blade_000\AppData\Local\Temp\247618158'
VERBOSE: Module 'PSWindowsUpdate' was saved successfully.
VERBOSE: Performing the operation "Invoke Windows Updates on Image" on target "Srv2012r2_Core".
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : New Diff Disk : Creating G:\temp2\BaseImage\Srv2012r2_Core_Update.vhdx from G:\temp2\BaseImage\Srv2012r2_Core_base.vhdx
VERBOSE: New-VHD will create a new virtual hard disk with the path "G:\temp2\BaseImage\Srv2012r2_Core_Update.vhdx".
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : Adding PSWindowsUpdate Module to G:\temp2\BaseImage\Srv2012r2_Core_Update.vhdx
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : updateting AtStartup script
VERBOSE: Sidebyside detected in PSWindowsUpdate : switching to v4 compatability
VERBOSE: [createRunAndWaitVM] : Creating VM qx3zpe3d at 02/17/2016 23:00:45
VERBOSE: [createRunAndWaitVM] : VM qx3zpe3d Stoped
VERBOSE: [createRunAndWaitVM] : VM qx3zpe3d Deleted at 02/17/2016 23:04:36
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : No changes, discarding G:\temp2\BaseImage\Srv2012r2_Core_Update.vhdx
VERBOSE: [Invoke-WindowsImageUpdate] : Validateing [Srv2012r2_source]
VERBOSE: [Invoke-WindowsImageUpdate] : Validateing VM switch config
VERBOSE: Performing the operation "Download required Modules" on target "PowerShell Gallery".
VERBOSE: [Invoke-WindowsImageUpdate] : Geting latest PSWindowsUpdate
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: The -Repository parameter was not specified. PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2/' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSWindowsUpdate'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'PSWindowsUpdate'.
VERBOSE: Performing the operation "Save Package" on target "G:\temp2\Resource\Modules".
VERBOSE: The specified module will be installed in 'G:\temp2\Resource\Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'PSWindowsUpdate' with version '1.5.1.11' from the repository 'https://www.powershellgallery.com/api/v2/'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSWindowsUpdate'' for ''.
VERBOSE: InstallPackage' - name='PSWindowsUpdate', version='1.5.1.11',destination='C:\Users\Blade_000\AppData\Local\Temp\1076259111'
VERBOSE: DownloadPackage' - name='PSWindowsUpdate', version='1.5.1.11',destination='C:\Users\Blade_000\AppData\Local\Temp\1076259111\PSWindowsUpdate\PSWindowsUpdate.nupkg', uri='https://www.powershellgallery.com/api/v2/package/PSWindowsUpdate/1.5.1.11'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/PSWindowsUpdate/1.5.1.11'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/PSWindowsUpdate/1.5.1.11'.
VERBOSE: Completed downloading 'PSWindowsUpdate'.
VERBOSE: Hash for package 'PSWindowsUpdate' does not match hash provided from the server.
VERBOSE: InstallPackageLocal' - name='PSWindowsUpdate', version='1.5.1.11',destination='C:\Users\Blade_000\AppData\Local\Temp\1076259111'
VERBOSE: Module 'PSWindowsUpdate' was saved successfully.
VERBOSE: Performing the operation "Invoke Windows Updates on Image" on target "Srv2012r2_source".
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : New Diff Disk : Creating G:\temp2\BaseImage\Srv2012r2_source_Update.vhdx from G:\temp2\BaseImage\Srv2012r2_source_base.vhdx
VERBOSE: New-VHD will create a new virtual hard disk with the path "G:\temp2\BaseImage\Srv2012r2_source_Update.vhdx".
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : Adding PSWindowsUpdate Module to G:\temp2\BaseImage\Srv2012r2_source_Update.vhdx
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : updateting AtStartup script
VERBOSE: Sidebyside detected in PSWindowsUpdate : switching to v4 compatability
VERBOSE: [createRunAndWaitVM] : Creating VM sb4pkmmj at 02/17/2016 23:04:59
VERBOSE: [createRunAndWaitVM] : VM sb4pkmmj Stoped
VERBOSE: [createRunAndWaitVM] : VM sb4pkmmj Deleted at 02/17/2016 23:09:13
VERBOSE: [Invoke-WindowsImageUpdate] : Windows Update : No changes, discarding G:\temp2\BaseImage\Srv2012r2_source_Update.vhdx
VERBOSE: [Invoke-WindowsImageUpdate] : SysPrep : New Diff Disk : Creating G:\temp2\BaseImage\Srv2012r2_source_Sysprep.vhdx from G:\temp2\BaseImage\Srv2012r2_source_base.vhdx
VERBOSE: New-VHD will create a new virtual hard disk with the path "G:\temp2\BaseImage\Srv2012r2_source_Sysprep.vhdx".
VERBOSE: [Invoke-WindowsImageUpdate] : SysPrep : updateting AtStartup script
VERBOSE: [Invoke-WindowsImageUpdate] : SysPrep : Creating temp vm and waiting
VERBOSE: [createRunAndWaitVM] : Creating VM amrxly05 at 02/17/2016 23:09:27
VERBOSE: [createRunAndWaitVM] : VM amrxly05 Stoped
VERBOSE: [createRunAndWaitVM] : VM amrxly05 Deleted at 02/17/2016 23:18:38
VERBOSE: [Invoke-WindowsImageUpdate] : SysPrep : Removing PageFile and PsTemp
VERBOSE: [Invoke-WindowsImageUpdate] : SysPrep : Cleaning SxS
VERBOSE: [Invoke-WindowsImageUpdate] : WIM : Creating G:\temp2\UpdatedImageShare\Srv2012r2_source.wim
VERBOSE: Dism PowerShell Cmdlets Version 10.0.0.0
VERBOSE: [Invoke-WindowsImageUpdate] : WIM : removing G:\temp2\BaseImage\Srv2012r2_source_Sysprep.vhdx
PS>$global:?
True
**********************
Windows PowerShell transcript end
End time: 20160218001344
**********************
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment