我們知道win server默認沒有圖片查看器,在查看圖片時很不方便。
其實用一個簡單的辦法,就能復活自帶的圖片查看器。以下以win server 2025為例,2022應該也能用。
創建一個 .reg 註冊表文件,或者文本另存為 .reg 文件,內容如下:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations] ".bmp"="PhotoViewer.FileAssoc.Tiff" ".gif"="PhotoViewer.FileAssoc.Tiff" ".jpeg"="PhotoViewer.FileAssoc.Tiff" ".jpg"="PhotoViewer.FileAssoc.Tiff" ".png"="PhotoViewer.FileAssoc.Tiff" ".tif"="PhotoViewer.FileAssoc.Tiff" ".tiff"="PhotoViewer.FileAssoc.Tiff" ".ico"="PhotoViewer.FileAssoc.Tiff" ".wdp"="PhotoViewer.FileAssoc.Tiff" ".webp"="PhotoViewer.FileAssoc.Tiff" ".heic"="PhotoViewer.FileAssoc.Tiff" |
創建後導入,即可復活照片查看器。文件夾選項 – 查看 – 裏面的縮略圖也可以打開。
然後是解決不能查看heic照片的問題。需要安裝微軟商店的兩個包,因為win server沒有商店。所以需要下載離線版本。已經為大家打包好了,直接下載下面的就行。
下載完後依次安裝裏面的包,安裝方法是打開 powershell
Add-AppxPackage -Path 包名
最後重啟服務器,即可。