真的很奇怪,从标准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
我是否需要将任何模块加载到ISE中?