diff --git a/packages/common.vm/common.vm.nuspec b/packages/common.vm/common.vm.nuspec index 928c745c0..6a957f5af 100755 --- a/packages/common.vm/common.vm.nuspec +++ b/packages/common.vm/common.vm.nuspec @@ -2,7 +2,7 @@ common.vm - 0.0.0.20240913 + 0.0.0.20241002 Common libraries for VM-packages Mandiant diff --git a/packages/common.vm/tools/vm.common/vm.common.psm1 b/packages/common.vm/tools/vm.common/vm.common.psm1 index 2c05469a3..c6edc13d6 100755 --- a/packages/common.vm/tools/vm.common/vm.common.psm1 +++ b/packages/common.vm/tools/vm.common/vm.common.psm1 @@ -1523,6 +1523,8 @@ public class Shell { $SHCNE_ASSOCCHANGED = 0x08000000 $SHCNF_IDLIST = 0 [void][Shell]::SHChangeNotify($SHCNE_ASSOCCHANGED, $SHCNF_IDLIST, [IntPtr]::Zero, [IntPtr]::Zero) + # Refresh the Taskbar + Stop-Process -Name explorer -Force # This restarts the explorer process so that the new taskbar is displayed. } catch { VM-Write-Log-Exception $_ } diff --git a/packages/installer.vm/installer.vm.nuspec b/packages/installer.vm/installer.vm.nuspec index 556361faf..d83e7c24f 100644 --- a/packages/installer.vm/installer.vm.nuspec +++ b/packages/installer.vm/installer.vm.nuspec @@ -2,7 +2,7 @@ installer.vm - 0.0.0.20240402 + 0.0.0.20241002 Mandiant Generic installer for custom virtual machines. diff --git a/packages/installer.vm/tools/chocolateyinstall.ps1 b/packages/installer.vm/tools/chocolateyinstall.ps1 index 513fb978d..072069bf8 100644 --- a/packages/installer.vm/tools/chocolateyinstall.ps1 +++ b/packages/installer.vm/tools/chocolateyinstall.ps1 @@ -32,15 +32,6 @@ try { } VM-Write-Log "INFO" "Packages installation complete" - ## Configure taskbar with custom Start Layout if it exists. - $customLayout = Join-Path ${Env:VM_COMMON_DIR} "CustomStartLayout.xml" - if (Test-Path $customLayout) { - Import-StartLayout -LayoutPath $customLayout -MountPath "C:\" - Stop-Process -Name explorer -Force # This restarts the explorer process so that the new taskbar is displayed. - } else { - VM-Write-Log "WARN" "CustomStartLayout.xml missing. No items will be pinned to the taskbar." - } - # Set Profile/Version specific configurations VM-Write-Log "INFO" "Beginning Windows OS VM profile configuration changes" $configPath = Join-Path $Env:VM_COMMON_DIR "config.xml" -Resolve