powershell - ISE 中的命令与 PowerShell 中的命令不同
问题描述
真的很奇怪,从标准 PowerShell 提示符运行以下命令
Get-ComputerInfo
返回大量属性
WindowsBuildLabEx : 14393.447.amd64fre.rs1_release_inmarket.161102-0100
WindowsCurrentVersion : 6.3
WindowsEditionId : ServerStandard
WindowsInstallationType : Server
WindowsInstallDateFromRegistry : 05/02/2019 14:13:23
WindowsProductId : 00377-70126-52438-AA588
WindowsProductName : Windows Server 2016 Standard
WindowsRegisteredOrganization :
WindowsRegisteredOwner : Windows User
WindowsSystemRoot : C:\Windows
BiosCharacteristics : {3, 9, 15, 16...}
BiosBIOSVersion : {VRTUAL - 1, Hyper-V UEFI Release v1.0, EDK II - 10000}
And so on.....
但在 ISE 中运行相同的命令并返回一组不同的变量;
ComputerName : DEV
OSName : Microsoft Windows Server 2016 Standard
OSVersion : 10.0.14393
MemoryGB : 4
NumberOfProcessors : 1
NumberOfSockets : 1
NumberOfCores : 8
- Windows Server 2016 标准版
- PowerShell 版本 5.1.14393.206
我需要将任何模块加载到 ISE 中吗?
解决方案
推荐阅读
- elasticsearch - 如何在源脚本中格式化日期?
- java - 使用 volley 连接到 android 中的服务器时出现内部服务器错误?
- function - Trouble computing recursive value of this function
- roku - 如何在 Roku 中使用按键来增加值
- javascript - Javascript programme to restict zoom on google map
- java - error:incomparable types: char and String
- flutter - Dart - Using Mixins vs Dependency Injection
- php - 库尔德语文本无法在联系人中正确显示
- python-3.x - Sagemaker:一次拟合失败后持续出现拟合错误
- visual-c++ - 如何修复“无法在 VS 16 2019 中使用 cgal 和 boost 库启动示例程序。无法创建 ALL_BUILD 文件。”?