廣告

2024 年 4 月
1234567
891011121314
15161718192021
22232425262728
2930  

彙整

Windows 關機前自動執行 CCleaner 清除隱私資料

Windows 關機前自動執行 CCleaner 清除隱私資料

參考來源:http://cha.homeip.net/blog/2011/06/3155.html

目的: 設置 Windows "群組原則" 讓 Windows 系統關機前使用 CCleaner 清除隱私資料。
環境: Windows XP Pro / Vista / 7 with CCleaner

notepad C:\CCleaner.vbs

Dim WshShell, oExec

Set WshShell = CreateObject("WScript.Shell")

Set oExec = WshShell.Exec("%ProgramFiles%\CCleaner\CCleaner.exe /AUTO")

Do While oExec.Status = 0

WScript.Sleep 200

Loop

gpedit.msc

↓ 畫面左邊依序點入 電腦設定 → Windows 設定 → 指令碼 – (啟動/關機); 雙擊滑鼠左鍵點選畫面右邊的 "關機"

↓ 點擊 "新增"

↓ 於 "指令碼名稱" 方框中輸入 C:\CCleaner.vbs 或點擊 "瀏覽" 選取 C:\CCleaner.vbs; 完成後按 "確定"

↓ 點擊 "確定" 完成設置

參考資料: 使用XP系统的关机/注销脚本自动清理系统的使用痕迹_游子问寒千里外_百度空间

延伸閱讀: j79zlr’s tips and tweaks :: group policy for xp home

讀者也會看的其它文章:

    Comments are closed.