Which .NET version is my PowerShell script using?

后端 未结 7 1241
情话喂你
情话喂你 2020-12-09 01:23

I\'d like to use .NET in some PowerShell scripts I\'m about to write -- how do I know/declare which version of .NET I\'m dealing with when these scripts run?

And is

7条回答
  •  失恋的感觉
    2020-12-09 01:28

    Check out the article Hey, Scripting Guy! How Do I Check Which Version of Windows PowerShell I'm Using?. It shows where in the registry you can check to determine this.

提交回复
热议问题