Hallo zusammen,
ich würde gerne in unserer Umgebung das Inplace Upgrade zur Verfügung stellen. Jedoch bekomme ich das Paket nicht zum laufen. Ich verwende das Standard Template aus der DSM Version 2018.1.1 4467.
!
!Windows 10 inplace upgrade
!This package uses a os setup file packages as a source and after running the setup sets the corresponding OS Set to compliant.
!The inplace upgrade needs all files from the ISO and not just the sources directory, so it only works with os setup file packages created with DSM 2017 or later.
!
GetPackagePath('%InstallationParameters.OSSetupFilePckgLink%','PackagePath',)
If %PackagePath%=''
ExitProcEx(Undone,'Failed to get package path')
!Currently the package will most likely be used from the share, but don't rely on this
StrLeft('%PackagePath%','2','PathPrefix')
If %PathPrefix%='\\'
! Use the depot account to access the share
NetUseDepot('%PackagePath%','O:',)
Set('PackagePath','O:')
Set('SetupPath','%PackagePath%\Extern$\Setup.exe')
Set('ExitCode','not executed')
!
If not Exist('%SetupPath%')
Set('ExitCode','Setup.exe missing')
Else
If not FileVersion('%SetupPath%')>%CurrentComputer.BasicInventory.InstalledOSVersion%
! Os is newer (or equal) than the setup.exe -> Just quit If %PackagePath%='O:' NetDisconnect('O:')/? ExitProcEx(Done,'Installed OS is already up to date')
!
Set('SetupParams','/auto upgrade /DynamicUpdate disable /noreboot /quiet /resizerecoverypartition disable /migratedrivers %InstallationParameters.MigrateDrivers% /compactos disable')
!
ExecuteEx('%SetupPath% %SetupParams% /Compat ScanOnly','ExitCode','120')/?
If IsTrue('%ExitCode% != -1047526896',) If %PackagePath%='O:' NetDisconnect('O:')/? ExitProcEx(Failed,'Compatibility scan failed with %ExitCode%')
!
Set('ExitCode','not executed')
ExecuteEx('%SetupPath% %SetupParams%','ExitCode','120')/?
!
If %PackagePath%='O:'
NetDisconnect('O:')/?
If not %ExitCode%='0'
ExitProcEx(Failed,'Execution failed with error %ExitCode%')
!
!All OS Sets that use the same os setup file package should be green.
SetOsSetAsInstalled('%InstallationParameters.OSSetupFilePckgLink%',)
InitiateSystemShutDown('2',issRebootAfterShutdown)
Reboot for inplace upgrade
EndProc
!
Im Log bekomme ich auch keinen Fehler und die Policy sagt "Compliance bevorstehend".
Weiß jemand Rat?
VG
Thorsten