Skip to content

Instantly share code, notes, and snippets.

View albalool's full-sized avatar

Lateefa Albalool albalool

View GitHub Profile
@albalool
albalool / Corruptfiles.bat
Last active August 25, 2022 08:49
Script to fix Black desktop background caused by corrupt TranscodedWallpaper & corrupt image file
@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
@albalool
albalool / clearcachGPO.bat
Created August 21, 2022 06:24
Script to clear cached GPOs on machine
:: 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