如需設定自定義預設值的相關信息,請參閱 about_Parameters_Default_Values。 參數屬性數據表 當您使用 Cmdlet 的 Full、Parameter 或Get-Help 參數時,Get-Help會顯示參數屬性數據表,其中包含參數的詳細資訊。 這項資訊包含您需要知道才能使用 參數的詳細數據。例如,Cmdlet 的
about_Parameters_Default_Values 项目 2025/01/06 本文内容 简短说明 长说明 语法 示例 另请参阅 简短说明 介绍如何为 cmdlet 参数、高级函数和脚本设置自定义默认值。 长说明 $PSDefaultParameterValues首选项变量允许为使用CmdletBinding属性的任何 cmdlet、高级函数或脚本指定自定义默认参数值。 除非在命令...
cmdlet Test-MrParameterValidation at command pipeline position 1 Supply values for the following parameters: ComputerName: 如果要允许 ComputerName 参数的多个值,请使用 String 数据类型,但要在数据类型中添加方括号 ([]) 才能允许使用字符串数组。 PowerShell 复制 function Test-MrParameterValidation { [Cm...
Default parameter values Optional parameters have a default value, which is the value that is used or assumed when the parameter is not specified in the command. For example, the default value of theComputerNameparameter of many cmdlets is the name of the local computer. As a result, the lo...
(Get-SSMParameterValue -Name "the-parameter-name-you-specified").Parameters 建立StringList 參數 (Tools for Windows PowerShell) 如果您尚未安裝並設定 AWS Tools for PowerShell (Tools for Windows PowerShell),請執行此作業。 如需相關資訊,請參閱安裝AWS Tools for PowerShell。 執行下列命令以建立 Strin...
PSBoundParameters {} PSCommandPath PSCulture zh-CN PSDefaultParameterValues {} PSEdition Desktop PSEmailServer PSHOME C:\Windows\System32\WindowsPowerShell\v1.0 PSScriptRoot PSSessionApplicationName wsman PSSessionConfigurationName http://schemas.microsoft.com/powershell/Microsoft.PowerShell ...
Describes the parameters that can be used with any cmdlet. 详细说明 The common parameters are a set of cmdlet parameters that you can use with any cmdlet. They're implemented by PowerShell, not by the cmdlet developer, and they're automatically available to any cmdlet. You can use ...
Get-ComplianceSearch-Identity"Case 1234"|Format-List This examples show details of the compliance search named Case 1234. Parameters -Case This parameter is available only in the cloud-based service. The Case parameter filters the results by the name of an eDiscovery Standard case that the complia...
ActionPreference is an enumeration with the following values: توسيع الجدول NameValue Break 6 Suspend 5 Ignore 4 Inquire 3 Continue 2 Stop 1 SilentlyContinue 0 You may use the name or the value with the parameter. In addition to the common parameters, many ...
New-WSManInstanceCreates a new instance of a management resource. New-WSManSessionOptionCreates a WS-Management session option hash table to use as input parameters to the followingWS-Management cmdlets: Get-WSManInstance, Set-WSManInstance, Invoke-WSManAction, Connect-WSMan. ...