此版本的 PowerShellGet 具有有限的功能,且不支援 PowerShell 資源庫 的更新功能。 若要支援,您必須更新為最新版本。 PowerShellGet 展開資料表 Find-Command Finds PowerShell commands in modules. Find-DscResource Finds Desired State Configuration (DSC) resources. Find-Module Finds modules in a repository...
Get-Module cmdlet 列出了已导入或可导入到 PowerShell 会话中的 PowerShell 模块。 如果没有参数,Get-Module 获取已导入到当前会话中的模块。 ListAvailable 参数用于列出可从 PSModulePath 环境变量($Env:PSModulePath)中指定的路径导入的模块。 Get-Module 返回的模块对象包含有关该模块的宝贵信息。 还可以通过...
Get-Module PowerShellGet, PackageManagement -ListAvailable 下列輸出顯示必須安裝最新的穩定版本。Output 複製 Directory: C:\Program Files\WindowsPowerShell\Modules ModuleType Version Name ExportedCommands --- --- --- --- Binary 1.0.0.1 PackageManagement {Find-Package, Get-Package, ... Script 1.0....
Microsoft.PowerShell.Commands.PSRepositoryItemInfo 使用PassThru參數時,Install-Module會輸出模組的PSRepositoryItemInfo物件。 這是您從 Cmdlet 取得的Find-Module相同資訊。 備註 PowerShell 包含下列的Install-Module別名: 所有平台: inmo Install-Module會在 Windows 7 或 Windows 2008 R2 和更新版本的 Windows 5.0 ...
首先我们要从github上下载最新的PowerShell 的rpm 包powershell-6.0.0_alpha.14-1.el7.centos.x86_6...
Get-Command [[-ArgumentList] <System.Object[]>] [-All] [-FullyQualifiedModule <Microso ft.PowerShell.Commands.ModuleSpecification[]>] [-ListImported] [-Module <System.String []>] [-Noun <System.String[]>] [-ParameterName <System.String[]>] [-ParameterType <Sys ...
Module: Microsoft.PowerShell.Core Gets PowerShell background jobs that are running in the current session.SyntaxPowerShell Copy Get-Job [-IncludeChildJob] [-ChildJobState <JobState>] [-HasMoreData <Boolean>] [-Before <DateTime>] [-After <DateTime>] [-Newest <Int32>] [[-Id] <Int32[...
Applies To: Windows PowerShell 2.0 Gets commands in the current session. Syntax Copy Get-Command [[-Name] <string[]>] [[-ArgumentList] <Object[]>] [-CommandType {<Alias> | <Function> | <Filter> | <Cmdlet> | <ExternalScript> | <Application> | <Script> | <All>}] [-Module <...
使用PowerShell脚本执行获取Azure订阅列表的指令(Get-Azsubscription -TenantId tenantID−DefaultProfilecxt)。在本地调试后,指令成功运行。 但是当指令并运行在Azure Function时,则出现了异常:详细的异常信息为 完成的错误信息为: "Error getting value from 'Tags' on 'Microsoft.Azure.Commands.Profile.Models.PSAzu...
Applies To: Windows PowerShell 2.0 Gets commands in the current session. Syntax Copy Get-Command [[-Name] <string[]>] [[-ArgumentList] <Object[]>] [-CommandType {<Alias> | <Function> | <Filter> | <Cmdlet> | <ExternalScript> | <Application> | <Script> | <All>}] [-Module <...