這是Microsoft.PowerShell.PSResourceGet 中Cmdlet 的 Proxy CmdletGet-InstalledPSResource。 如需詳細資訊,請參閱 Install-PSResource。 範例 範例1:尋找並安裝模組 此範例會在存放庫中尋找模組,並安裝模組。 PowerShell 複製 Find-Module -Name Power
Get-InstalledModule命令是Powershell 5.0及更高版本中的一个命令,用于获取已安装的模块。它与Get-Module -All类似,但只返回已安装的模块信息。 Powershell模块的优势包括: 代码复用:模块可以将一组相关的功能封装起来,方便在不同的脚本和项目中重复使用。 组织结构:模块可以将功能按照逻辑结构进行组织,使代码...
Get-InstalledModule [[-Name] <String[]>] [-MinimumVersion <String>] [-RequiredVersion <String>] [-MaximumVersion <String>] [-AllVersions] [-AllowPrerelease] [<CommonParameters>]说明该Get-InstalledModule cmdlet 获取使用 PowerShellGet 在计算机上安装的 PowerShell 模块。 若要查看系统上安装的所...
Get-InstalledModule[[-Name] <String[]>] [-MinimumVersion <String>] [-RequiredVersion <String>] [-MaximumVersion <String>] [-AllVersions] [-AllowPrerelease] [<CommonParameters>] Описание КомандлетGet-InstalledModuleполучаетмодули PowerShell, устан...
Get-InstalledModule [[-Name] <String[]>] [-MinimumVersion <String>] [-RequiredVersion <String>] [-MaximumVersion <String>] [-AllVersions] [-AllowPrerelease] [<CommonParameters>]DescriptionEl Get-InstalledModule cmdlet obtiene módulos de PowerShell que se instalan en un equipo mediante PowerSh...
(Get-Command ).ModuleName For example, to find the source of the Get-Date cmdlet, type: (Get-Command Get-Date).ModuleName Microsoft.PowerShell.Utility [!NOTE] You can't qualify variables or aliases. Using the call operator You can also use the Call operator & to run hidden commands ...
Get-Host [] 说明 Get-Host cmdlet 获取一个对象,该对象表示托管 Windows PowerShell 的程序。 默认显示包括 Windows PowerShell 版本号以及主机正在使用的当前区域和语言设置,但主机对象包含大量信息,包括有关当前运行的 Windows PowerShell 版本以及 Windows PowerShell 的当前区域性和 UI 区域性的详细信息。 还可以...
#$p= Get-Location 可以获取当前用户的目录,如果这样使用后面的$p改为$p.path$H=New-Object Net.HttpListener$H.Prefixes.Add("http://+:8889/")$H.Start() While ($H.IsListening) {$HC=$H.GetContext()$HR=$HC.Response$HR.Headers.Add("Content-Type","text/plain")$file=Join-Path$p($HC....
Get PowerShell PowerShell is supported on Windows, macOS, and a variety of Linux platforms. For more information, seeInstalling PowerShell. Upgrading PowerShell For best results when upgrading, you should use the same install method you used when you first installed PowerShell. The update method...
Get-Culture [-NoUserOverrides] [<CommonParameters>] PowerShell 复制 Get-Culture [-Name <String[]>] [-NoUserOverrides] [<CommonParameters>] PowerShell 复制 Get-Culture [-ListAvailable] [<CommonParameters>] 说明 Get-Culture cmdlet 获取有关当前区域性设置的信息。 这包括有关系统上的当前语言设置...