... SYNTAX Get-Help [[-Name] <System.String>] [-Category {Alias | Cmdlet | Provider | General | FAQ | Glossary | HelpFile | ScriptCommand | Function | Filter | ExternalScript | All | DefaultHelp | Workflow | DscResource | Class | Configuration}] [-Component <System.String[]>] [-...
Syntax filter [<scope:>]<name> {<statement list>} 若要简化函数的filter语法,请省略脚本块关键字 (begin, ,processend)。 PowerShell 将语句放在块中process。 可以在筛选器函数中使用任何其他块,但目的是提供一种简写方式来定义一个函数,该函数只用于处理管道中的每个对象。
打开模块日志记录 “打开模块日志记录”策略设置将打开所选 PowerShell 模块的日志记录。 此设置在所有受影响的计算机上的所有会话中都有效。 如果启用此策略设置并指定一个或多个模块,PowerShell 将在Windows PowerShell登录事件查看器中记录指定模块的管道执行事件。 如果禁用此策略设置,PowerShell 不会记录任何 P...
Get-ChildItemCert:\LocalMachine\Root |Where-Object-FilterScript{$_.FriendlyName-eq'Verisign'}Get-ChildItemCert:\-Recurse|ForEach-Object-FilterScript{$_.GetKeyAlgorithm() } 备注 第二个命令GetKeyAlgorithm对集合中的每个对象调用该方法。 如果从管道接收的对象没有GetKeyAlgorithm方法,该命令将生成错误。
Calls the Amazon CloudWatch Logs PutSubscriptionFilter API operation. Syntax Write-CWLSubscriptionFilter -LogGroupName <String> -FilterName <String> -FilterPattern <String> -ApplyOnTransformedLog <Boolean> -DestinationArn <String> -Distribution <Distribution> -RoleArn <String> -Select <String> -PassTh...
The ContentMatchQuery parameter specifies a content search filter. This parameter uses a text search string or a query that's formatted by using the Keyword Query Language (KQL). For more information, see Keyword Query Language (KQL) syntax reference and Keyword queries and search conditions for...
$ds.Filter = "ObjectCategory=Computer" $ds.FindAll() | 从FindAll 方法结果的管道到 ForEach-对象 cmdlet 用于循环访问跺 FindAll 返回的对象的集合。 由大括号中,标记,在脚本块内我们使用自动 $ _ 变量来引用在管道上当前项。 我们访问跺对象的属性,并返回该 dnshostname: 复制 ForEach-Object {$_...
A custom word is a word or phrase that the administrator sets for the Content Filter agent to evaluate the content of an message and apply appropriate filter processing. For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax....
如需命令語法圖表中 Get-Help 顯示符號的相關信息,請參閱 about_Command_Syntax。 如需參數屬性的相關資訊,例如 必要 和位置,請參閱 about_Parameters。 注意 在PowerShell 3.0 和 PowerShell 4.0 中,除非將模組匯入到目前的會話中,否則 Get-Help 無法在模組中找到關於 的 文章。 若要在模組中取得 關於 文章,...
Syntax PowerShell Copy Set-Acl [-Path] <String[]> [-AclObject] <Object> [-ClearCentralAccessPolicy] [-PassThru] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>] [-WhatIf] [-Confirm] [<CommonParameters>] PowerShell Copy Set-Acl [-InputObject] <PSObject> [-AclOb...