CLICK'N'DRAG TO MOVE

Whatever it takes to testbed!

Here you will find misc automations that I use almost every day. Most of them are Batch and Powershell scripts. Note that all stuff is 100% Windows 7 compatible. Have fun with it!
SIMPLE TIME RESYNC
w32tm /resync
PLAIN CPU SHUTDOWN
C:\Windows\System32\shutdown -s -t 0
PURGE TEMP FOLDER & CPU SHUTDOWN
@echo off
echo Cleaning up temporary files in %TEMP% folder...
echo.

set "tempfolder=%TEMP%"

cd /d "%tempfolder%"

:: Delete all files and folders in TEMP (including read-only and hidden)
del /q /f /s *.* >nul 2>&1
for /d %%x in (*) do rd /s /q "%%x" >nul 2>&1

echo.
echo Temporary files deleted successfully.
echo Initiating system shutdown...

shutdown /s /t 0
PLAIN CPU RESTART
C:\Windows\System32\shutdown -r -t 0
RESTART AUDIO SERVICE
net stop "AudioSrv"
net start "AudioSrv"
START WINDOWS GADGET SIDEBAR
start "sidebar" sidebar.exe
RESTART WINDOWS GADGET SIDEBAR
taskkill /IM sidebar.exe /f
ping -n 4 localhost > nul
start "sidebar" sidebar.exe
DISABLE LAN INTERFACE
netsh interface set interface name="Local Area Connection" admin=disabled
ENABLE LAN INTERFACE
netsh interface set interface name="Local Area Connection" admin=enabled
RESET LAN INTERFACE
netsh interface ipv4 set address name="Local Area Connection" source=dhcp

START AERO THEME
sc start Themes
net start uxsms
start C:\Windows\Resources\Themes\aero.theme
RESTART AERO THEME
sc stop Themes
net stop uxsms

sc start Themes
net start uxsms
start C:\Windows\Resources\Themes\aero.theme
SAFELY TERMINATES CERTAIN PROCESSES
taskkill /F /IM "xnviewmp.exe"
taskkill /F /IM "CaptureOne.exe"
taskkill /F /IM "ImgCoreProcess.exe"
taskkill /F /IM "CODiagnosticsService.exe"
taskkill /F /IM "Xpiks.exe"
taskkill /F /IM "photo.exe"
taskkill /F /IM "Topaz DeNoise AI.exe"
taskkill /F /IM "PhotomatixPro.exe"
taskkill /F /IM "vegas210.exe"
taskkill /F /IM "ErrorReportLauncher.exe"
taskkill /F /IM "rawtherapee.exe"
taskkill /F /IM "filezilla.exe"

wmic process where name="xnviewmp.exe" call terminate
wmic process where name="CaptureOne.exe" call terminate
wmic process where name="ImgCoreProcess.exe" call terminate
wmic process where name="CODiagnosticsService.exe" call terminate
wmic process where name="Xpiks.exe" call terminate
wmic process where name="photo.exe" call terminate
wmic process where name="Topaz DeNoise AI.exe" call terminate
wmic process where name="PhotomatixPro.exe" call terminate
wmic process where name="vegas210.exe" call terminate
wmic process where name="ErrorReportLauncher.exe" call terminate
wmic process where name="filezilla.exe" call terminate
wmic process where name="rawtherapee.exe" call terminate
EMBEDDING METADA TO A PICTURES IN A CERTAIN FOLDER
c:\exiftool.exe -overwrite_original -all= C:\Users\user\Desktop\4STOCK\DENOISED

ping -n 4 localhost > nul

c:\exiftool.exe -overwrite_original -XMP-iptcCore:CreatorWorkEmail="demo@demo.org" -artist="user" -copyright="user" -Credit="user" -Source="user" -sep ", " -keywords="background, backdrop, postcard, design, element, wallpaper, dramatic, concept, decoration, scene, vivid, vibrant, travel, trip,"  C:\Users\user\Desktop\4STOCK\DENOISED\
exit
MORE SNIPPETS TO COME!
HOLD YER HORSERS WEB SURFER, MORE SNIPPETS TO COME IN A WHILE!