清除電腦垃圾的指令

開啟 cmd command window 

Enter the following command

P.S.: "echo" describes what to do

------通用指令-----

echo ↓ Disk Cleanup window, select all the files you want to delete and click OK 

cleanmgr

pause

echo ↓ Skips the drive selection step and displays the Disk Cleanup settings window. Here, you can select the files to delete.

cleanmgr /sageset

pause

echo ↓ Delete Files Automatically

cleanmgr /sagerun

echo ↓ The Disk Cleanup tool will clean up temporary files older than seven days. However, if you need to clean up temporary folders frequently, you can do so manually or using the command prompt.

cleanmgr /verylowdisk /c

pause

echo ↓ Delete temporary files, there may be no files, but still active in the background for a moment

del  %temp%\*.* /s /q

del /f /s /q %systemdrive%*.tmp

del /f /s /q %systemdrive%*.log 

del /f /s /q %systemdrive%*.chk 

del /f /s /q %systemdrive%*.old 

del /f /s /q %windir%*.bak 

echo ↓ delete Temporary Interenet file by lobin user

del /f /s /q %userprofile%\Local Settings\Temporary Internet Files*.*

------結束-----------

以上留存

Jimmy

Oobe\bypassnro跳過網路登入安裝

 Win 11目前在24H2的iso上實測已發現如果在OOBE階段使用oobe\bypassnro的手段來跳過建立帳號的初始化階段時,重新開機後也會陷入建立帳號的無限迴圈

查詢自己電腦上的Windows Key(SN) -- 無圖

買回來的電腦一段時間後,想要升級硬體,但重灌又找不到原來的序號
為了方便並記住,最好是自己可以持有序號電子檔案(文字檔)
市面上有工具可以買來用,當然,可敬的對岸也有許多分享的取得免費程序可以用
但若想安全又能增加自己的信心,當然還是自己動手,成就度高啊!
這裡分享2個方式,很多程式可抓的就不介紹

方法1.    CMD

執行方式:

PowerShell中提升至管理者權限

 常會有在powershell裡要執行一些指令時,發生了權限不足的情況。

因為常在開啟powershell時, 以一般使用者權限開啟, 會在執行程式要修改參數, 就無法順利完成指令的輸入。來說明狀況與解決方式:

Windows 修改檔案/資料匣權限指令: cacls →→ icacls

 

Windows 內建指令工具 Cacls.exe  <舊時代的指令>


 注意: Cacls 現在已經過時,請使用 Icacls。