PowerShell 复制 Get-InstalledScript [[-Name] <String[]>] [-MinimumVersion <String>] [-RequiredVersion <String>] [-MaximumVersion <String>] [-AllowPrerelease] [<CommonParameters>]说明Get-InstalledScript cmdlet 获取 CurrentUser 和 AllUsers 范围的已安装脚本。
PowerShellGet 发布脚本。 语法 PowerShell复制 Publish-Script-Path<String> [-NuGetApiKey <String>] [-Repository <String>] [-Credential <PSCredential>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>] PowerShell复制 Publish-Script-LiteralPath<String> [-NuGetApiKey <String>] [-Repository <...
首先,你需要下载和安装PowerShell 5.0http://go.microsoft.com/fwlink/?LinkId=398175 安装完成后,启动PowerShell ISE (Powershell_ise.exe),在PowerShell console中,键入如下命令。 Install-Module ScriptBrowser –Scope CurrentUser 安装完成后,你可以键入以下命令运行script browser和script analyzer Enable-ScriptBrow...
Finds a script. Syntax PowerShell Find-Script[[-Name] <String[]>] [-MinimumVersion <String>] [-MaximumVersion <String>] [-RequiredVersion <String>] [-AllVersions] [-IncludeDependencies] [-Filter <String>] [-Tag <String[]>] [-Includes <String[]>] [-Command <String[]>] [-Proxy <...
PowerShell 複製 Install-Script [-Name] <String[]> [-MinimumVersion <String>] [-MaximumVersion <String>] [-RequiredVersion <String>] [-Repository <String[]>] [-Scope <String>] [-NoPathUpdate] [-Proxy <Uri>] [-ProxyCredential <PSCredential>] [-Credential <PSCredential>] [...
PowerShell Get-Help-NameC:\PS-Test\MyScript.ps1 参数 -Category 只显示指定类别及其别名中的项的帮助。 概念性文章属于 helpFile 类别。 此参数的可接受值如下所示: Alias Cmdlet 提供程序 常规 常见问题解答 术语表 帮助文件 ScriptCommand 函数
顯示PowerShell 命令和概念的相關信息。語法PowerShell 複製 Get-Help [[-Name] <String>] [-Path <String>] [-Category <String[]>] [-Full] [-Component <String[]>] [-Functionality <String[]>] [-Role <String[]>] [<CommonParameters>]...
Get-Help [[-Name] <String>] [-Path <String>] [-Category <String[]>] -Parameter <String[]> [-Component <String[]>] [-Functionality <String[]>] [-Role <String[]>] [<CommonParameters>]PowerShell Copy Get-Help [[-Name] <String>] [-Path <String>] [-Category <String[]>] [-...
PowerShell Get-Help-NameC:\PS-Test\MyScript.ps1 参数 -Category 只显示指定类别及其别名中的项的帮助。 概念性文章属于 helpFile 类别。 此参数的可接受值如下所示: Alias Cmdlet 提供程序 常规 常见问题解答 术语表 帮助文件 ScriptCommand 函数
Is it possible to find the location of a PowerShell script currently running? The answer is yes. This tutorial will introduce different methods to get the file system location of a PowerShell script that is being executed. Use $PSCommandPath to Get the File System Location of a PowerShell ...