DEV Community

FakeStandard
FakeStandard

Posted on • Edited on

[PS] 用 PowerShell 查詢 .NET Framework 版本

當程式要佈署在具有 IIS 的主機上時,需安裝程式要使用的 .NET Framework 版本,但主機上究竟有沒有程式需要的版本,可以使用幾種方式查詢,最快的方法是使用 Power Shell 下指令直接查詢

Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full'
Enter fullscreen mode Exit fullscreen mode

如此一來就能判斷主機上已安裝的 .NET Framework 版本

Image description


Thanks for reading the article 🌷 🌻 🌼

If you like it, please don't hesitate to click heart button ❤️
or follow my GitHub ⭐ I'd appreciate it.


Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay