Judical Posted November 20, 2012 Report post Posted November 20, 2012 I am trying to do this though command lines in a task sequence during OSD. This is what I have; cmd.exe /c takeown.exe /F C:\Windows\Web\Wallpaper\Windows\img0.jpg THIS WORKS cmd.exe /c icacls.exe C:\Windows\Web\Wallpaper\Windows\img0.jpg /reset THIS WORKS cmd.exe /c rename.exe C:\Windows\Web\Wallpaper\Windows\img0.jpg img1.jpg THIS DOESN'T WORK cmd.exe /c xcopy.exe \\SERVERNAME\Repository\Misc\Wallpaper\*.* C:\Windows\Web\Wallpaper\Windows\ /E /D THIS DOESN'T WORK I can't think of any reason why this wouldn't work. Any help is appreciated. -Judical Quote Share this post Link to post Share on other sites More sharing options...
0 BB24 Posted December 3, 2012 Report post Posted December 3, 2012 My guess is that the img0.jpg has security rights that disallow you from renaming. Looking at C:\Windows\Web\Wallpaper\Windows\img0.jpg on my system it shows that Administrator only has Read & Execute, not Modify or Full Control. Have you considered replacing the background in WinPE after the Apply OS Image task but before the Setup Windows and ConfigMgr task or using GPO or a registry hack? Also see: http://www.myitforum.com/forums/Need-help-setting-default-background-using-SCCM-OSD-for-Windows-7-m232355.aspx Quote Share this post Link to post Share on other sites More sharing options...
I am trying to do this though command lines in a task sequence during OSD.
This is what I have;
cmd.exe /c takeown.exe /F C:\Windows\Web\Wallpaper\Windows\img0.jpg THIS WORKS
cmd.exe /c icacls.exe C:\Windows\Web\Wallpaper\Windows\img0.jpg /reset THIS WORKS
cmd.exe /c rename.exe C:\Windows\Web\Wallpaper\Windows\img0.jpg img1.jpg THIS DOESN'T WORK
cmd.exe /c xcopy.exe \\SERVERNAME\Repository\Misc\Wallpaper\*.* C:\Windows\Web\Wallpaper\Windows\ /E /D THIS DOESN'T WORK
I can't think of any reason why this wouldn't work.
Any help is appreciated.
-Judical
Share this post
Link to post
Share on other sites