怎么查看powershell 中文帮助的帮助信息

heqichang 的BLOG
用户名:heqichang
文章数:51
访问量:40254
注册日期:
阅读量:5863
阅读量:12276
阅读量:391274
阅读量:1082175
[匿名]Klniu:
51CTO推荐博文
提供三种方法
1. 直接使用 Get-Host
PS C:\Users\TopSage& Get-Host
Name : ConsoleHostVersion : 2.0InstanceId : b354f4bf-ff4e-452a-b747-aUI : System.Management.Automation.Internal.Host.InternalHostUserInterfaceCurrentCulture : zh-CNCurrentUICulture : en-USPrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxyIsRunspacePushed : FalseRunspace : System.Management.Automation.Runspaces.LocalRunspace
2. 使用$host变量
PS C:\Users\TopSage& $host.version
Major Minor Build Revision―C ―C ―C ――C2 0 -1 -1
3. 检查$PSVersionTable变量,PS2里有$PSVersionTable变量,而PS1里没有
PS C:\Users\TopSage& if (test-path variable:psversiontable) {$psversiontable.psversion} else {[version]“1.0.0.0″}
Major Minor Build Revision―C ―C ―C ――C2 0 -1 -1
了这篇文章
类别:┆阅读(0)┆评论(0)

我要回帖

更多关于 查看powershell版本 的文章

 

随机推荐