The problem: We've deployed Windows 7 Thin PC to our environment. The issue is that it lacks the codecs to play DVDs in Windows Media Player.
The task: Create an SCCM 2012 package to inject the codecs.
The attempt: I've written and deployed (via SCCM 2012) a batch script to copy the codecs to the local machine, and then inject them. The script successfully copies the codecs locally and it appears to begin the install, however the deployment times out. I suspect the issue is that my DISM command is waiting for a reboot which never happens.
My deployment is permitted to run as admin, whether the user is logged in or not. I've attempted to allow SCCM to reboot the machine after the program is run. This never works because the program times out instead of finishing. I've attempted to allow the script to control the reboot (thus the shutdown /r in the script). Again, nothing happens.
If I log into the computer locally, open an elevated command, and run the script below manually, it successfully injects the codecs and reboots the machine.
The script (Modified to remove "Links"):
mkdir c: \Codecs\
xcopy "\ \sccm01\Source\OSD Additional files\ThinMediaPlayer\winemb-premiumcodecs-dolby-ac3-audioencoder.cab" "c:\codecs\" /j /i /q
xcopy "\ \sccm01\Source\OSD Additional files\ThinMediaPlayer\WinEmb-PremiumCodecs-MPEG2andDolbyDecoder.cab" "c:\codecs\" /j /i /q
xcopy "\ \sccm01\Source\OSD Additional files\ThinMediaPlayer\WinEmb-PremiumCodecs-MPEG2-Decoder.cab" "c:\codecs\" /j /i /q
xcopy "\ \sccm01\Source\OSD Additional files\ThinMediaPlayer\winemb-premiumcodecs-mpeg2-encoder.cab" "c:\codecs\" /j /i /q
xcopy "\ \sccm01\Source\OSD Additional files\ThinMediaPlayer\WinEmb-PremiumCodecs-MPEG3.cab" "c:\codecs\" /j /i /q
xcopy "\ \sccm01\Source\OSD Additional files\ThinMediaPlayer\WinEmb-PremiumCodecs-MPEG4.cab" "c:\codecs\" /j /i /q
xcopy "\ \sccm01\Source\OSD Additional files\ThinMediaPlayer\winemb-premiumcodecs-wmv.cab" "c:\codecs\" /j /i /q
Dism .exe /Online /Add-Package /PackagePath:C: \codecs\winemb-premiumcodecs-dolby-ac3-audioencoder.cab /Quiet /NoRestart
Dism .exe /Online /Add-Package /PackagePath:C: \codecs\WinEmb-PremiumCodecs-MPEG2andDolbyDecoder.cab /Quiet /NoRestart
Dism .exe /Online /Add-Package /PackagePath:C: \codecs\WinEmb-PremiumCodecs-MPEG2-Decoder.cab /Quiet /NoRestart
Dism .exe /Online /Add-Package /PackagePath:C: \codecs\winemb-premiumcodecs-mpeg2-encoder.cab /Quiet /NoRestart
Dism .exe /Online /Add-Package /PackagePath:C: \codecs\WinEmb-PremiumCodecs-MPEG3.cab /Quiet /NoRestart
Dism .exe /Online /Add-Package /PackagePath:C: \codecs\WinEmb-PremiumCodecs-MPEG4.cab /Quiet /NoRestart
Dism .exe /Online /Add-Package /PackagePath:C: \codecs\winemb-premiumcodecs-wmv.cab /Quiet /NoRestart
shutdown /s -t 90