尝试创建一个函数来检查是否安装了一个模块,并且该模块是一个最低版本。我已经让它作为一个独立的检查,但当我试图使它的功能,使我不必让它重复一遍又一遍,当我必须检查多个模块,它失败的第二个输入,版本。Mandatory=$true, HelpMessage="Enter the Modules name has show in PowershellMajor Version")] $ModuleVersion
我想使用"Active Directory Administration with Windows PowerShell"提供的特定命令。所以我在服务器上安装了这个模块。connInfo = new WSManConnectionInfo(new Uri("MarioServer"),var runspace = RunspaceFa
现在,我打开常规桌面Powershell 5.1并获得以下内容:Copyright (C) Microsoft Corporation.All rights reserved.PS C:\Users\me> get-module
ModuleType Version Name ExportedCommandsPS.Core 6.1安装了自己的Microsoft.PowerShell.Util