Syntax 复制 filter [<scope:>]<name> {<statement list>} 若要简化函数的filter语法,请省略脚本块关键字(begin、endprocessclean)。 PowerShell 将语句放在块中 process。 可以在筛选器函数中使用任何其他块,但目的是提供一种简写方式来定义一个函数,该函数只用于处理管道中的每个对象。 以下筛选器从管道获取...
... 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[]>] [-...
Tips : Get-Help 也可用于帮助查找 PowerShell 相关命令,但与 Get-Command 相比它采用不同且较为间接的方式。 语法参数: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 #SYNTAXGet-Help[[-Name]<string>][<CommonParameters>]#OPTIONS-Category<string[]>-Component<string[]>-Functionality<string[]>-Na...
的语法部分。 复制 SYNTAX Get-SPSite [-AssignmentCollection <SPCollection>] [-Confirm [<SwitchParameter] [-Filter <ScriptBlock>] [-Limit <String>] [-WebApplication <SPWebApplicationPipeBind>] [-WhatIf [<SwitchParameter>]] [<CommonParameters>] Get-SPSite -Identity <SPSitePipeBind> [-Assign...
如需命令語法圖表中 Get-Help 顯示符號的相關信息,請參閱 about_Command_Syntax。 如需參數屬性的相關資訊,例如 必要 和位置,請參閱 about_Parameters。 注意 在PowerShell 3.0 和 PowerShell 4.0 中,除非將模組匯入到目前的會話中,否則 Get-Help 無法在模組中找到關於 的 文章。 若要在模組中取得 關於 文章,...
macOS:/usr/local/microsoft/powershell/7/Microsoft.PowerShell_profile.ps1 Текущийпользователь, всеузлы Для Windows —$HOME\Documents\PowerShell\Profile.ps1. Linux —~/.config/powershell/profile.ps1.
One of the new features in Windows PowerShell version 3 is a new form of syntax for the Where-Object and ForEach-Object cmdlets. Both of these cmdlets normally accept a scriptblock (in the case of Where-Object, it’s called a filterscript, because it must return either $True or $...
SyntaxPowerShell Copy Set-ContentFilterConfig [-BypassedRecipients <MultiValuedProperty>] [-BypassedSenderDomains <MultiValuedProperty>] [-BypassedSenders <MultiValuedProperty>] [-Confirm] [-DomainController <Fqdn>] [-Enabled <Boolean>] [-ExternalMailEnabled <Boolean>] [-InternalMailEnabled <Boolean>...
Hash table literal syntax@{} Similar to the array subexpression, this syntax is used to declare a hash table. For more information, seeabout_Hash_Tables. Call operator& Runs a command, script, or script block. The call operator, also known as theinvocation operator, lets you run commands ...
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...