Put、Print 数据谓词 PowerShell 使用 System.Management.Automation.VerbsData 类定义应用于数据处理的作。 下表列出了大多数已定义的谓词。 展开表 谓词名称(别名)行动要避免的同义词 备份(ba) 通过复制数据来存储数据。 保存、燃烧、复制、同步 检查点(ch) 创建数据或其配置的当前状态的快照。 差异 ...
您可以使用 PUT 要求在 Azure NetApp Files 中建立新的物件,如下列範例所示。 PUT 要求的主體會包含變更的 JSON 格式資料。 其必須以文字形式包含在 PowerShell 命令中,或以檔案形式在 PowerShell 命令中參考。 若要將本文參考為檔案,請將 json 範例儲存至檔案,並將 -body (Get-Content @<filename>) 新增至...
{Default | Get | Head | Post | Put | Delete | Trace | Options | Merge | Patch} ] [-OutFile <String> ] [-PassThru] [-Proxy <Uri> ] [-ProxyCredential <PSCredential> ] [-ProxyUseDefaultCredentials] [-SessionVariable <String> ] [-TimeoutSec <Int32> ] [-TransferEncoding <String> ...
You aren't required to use any of these blocks in your functions. If you don't use a named block, then PowerShell puts the code in theendblock of the function. However, if you use any of these named blocks, or define adynamicparamblock, you must put all code in a named block. ...
{Default| Get | Head | Post | Put | Delete | Trace | Options | Merge | Patch} ] [-OutFile <String> ] [-PassThru] [-Proxy <Uri> ] [-ProxyCredential <PSCredential> ] [-ProxyUseDefaultCredentials] [-SessionVariable <String> ] [-TimeoutSec <Int32> ] [-TransferEncoding <String> {...
導出數據腳本必須將 putExportEntriesResults PutExportEntriesResults 物件傳回管線。 除非發生錨點屬性的錯誤或變更,否則這個物件不需要包含每個匯出連接器的結果資訊。 例如,若要將 PutExportEntriesResults 物件傳回管線:Write-Output (New-Object Microsoft.MetadirectoryServices.PutExportEntriesResults) 結束導出 在匯出...
Runspaces; namespace PowerShellRunner { public class PowerShellRunner { public static string InvokePS(string command) { // I had to implement a custom PSHost in order to get Write-Host to work. // This wouldn't be an issue if all PowerShell scripts used Write-Output // instead of ...
SinceWrite-Outputexpects an argument, you must put the expression in parentheses. Dot sourcing operator. Runs a script in the current scope so that any functions, aliases, and variables that the script creates are added to the current scope, overriding existing ones. Parameters declared by the ...
If the value contains spaces, enclose the value in quotation marks ("). Expand table Type: String Position: Named Default value: None Required: False Accept pipeline input: False Accept wildcard characters: False Applies to: Exchange Server 2010, Exchange Server 2013, Exchange Server 2016, ...
The Notes parameters specifies additional information about the object. If the value contains spaces, enclose the value in quotation marks ("). Type:String Position:Named Default value:None Required:False Accept pipeline input:False Accept wildcard characters:False ...