This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| :: This line to enter folder path | |
| cd %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Themes | |
| :: This line to rename old file. | |
| ren TranscodedWallpaper TranscodedWallpaper.old | |
| :: This line to delete cashed corrupt image | |
| del /s /f /q "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Themes\CachedFiles\*.*" | |
| :: update GPO | |
| gpupdate /force | |
| :: restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :: This script clears cached GPOs | |
| del /s /f /q C:\Windows\System32\GroupPolicy\*.* | |
| :: This line to update GPO | |
| gpupdate /force | |
| :: This line to restart machine | |
| shutdown -r \force | |
| exit |