發表文章

目前顯示的是 5月, 2021的文章

清除TEAMS快取 POWERSHELL

 強制清除TEAMS APP快取以及CHROME和IE的快取 讓更新生效 一般版本 Write-Host "Stopping Teams Process" -ForegroundColor Yellow try{ Get-Process -ProcessName Teams | Stop-Process -Force Start-Sleep -Seconds 3 Write-Host "Teams Process Sucessfully Stopped" -ForegroundColor Green }catch{ echo $_ } Write-Host "Clearing Teams Disk Cache" -ForegroundColor Yellow try{ #Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\application cache\cache" | Remove-Item -Confirm:$false Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\blob_storage" | Remove-Item -Confirm:$false -Force Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\databases" | Remove-Item -Confirm:$false -Force Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\cache" | Remove-Item -Confirm:$false -Force Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\gpucache" | Remove-Item -Confirm:$false -Force Get-ChildItem -Path $env:APPDATA\"Microsoft\teams\Indexeddb" | Remove-Item ...

powershell 刪除資料匣 不出現確認視窗的方式

有時我們希望PS在背景靜默執行 不希望跳出對話視窗 可以在指令後方加上 增加 -Recurse - Force -Confirm:$ false Remove-Item foldertodelete -Recurse - Force -Confirm:$ false 就不會出現確認視窗了

改變WINDOWS 10版本

下載windows 安裝後才發現版本不是你要的嗎 下面示範windows home改為enterprise版本 用管理員權限執行CMD 命令提示字元 changepk.exe /ProductKey NPPR9-FWDCX-D2C8J-H872K-2YT43 以windows 10 enterprise為例 Windows 10 Enterprise NPPR9-FWDCX-D2C8J-H872K-2YT43 輸入 https://docs.microsoft.com/zh-tw/windows-server/get-started/kmsclientkeys footer See also :