Pipeline input Extra code is necessary when you want your function to accept pipeline input. As mentioned earlier in this book, commands can accept pipeline input by value (by type) or by property name. You can write your functions like the native commands so they accept either one or both...
English versions of PowerShell. Required? false Position? 0 Default value None Accept pipeline input? True (ByPropertyName) Accept wildcard characters? true Name參數預期一個由參數名稱旁邊的<String>數據類型所識別的字串值。 您可以使用Get-Help來指定數個其他參數,以傳回說明文章的子集。 若要查看其...
The red outlined area inFigure 11shows that the name parameter of the Set-Service cmdlet will now attempt to accept pipeline input ByPropertyName without coercion, whichisaccepted and binding is successful. This is because the pipeline item is aproperty, and only aproperty...
Default value: None Required: True Accept pipeline input: True Accept wildcard characters: False-Function指定此 Cmdlet 從模組匯入至目前工作階段的函式數位。允許通配符。 當您匯入模組時,某些模組會自動將選取的函式匯出到您的會話。 這個參數可讓您從匯出的函式中選取 。 展開資料表 Type: Strin...
-Path <string[]> Specifies a path of one or more locations. Wildcard characters are permitted. The default location is the current directory (.). Required? false Position? 0 Default value Current directory Accept pipeline input? true (ByValue, ByPropertyName) Accept wildcard characters? true ...
or a valid GUID (for example, 12345678-90ab -cdef-1234-567890bcdefgh). Required? true Position? 1 Default value Accept pipeline input? True Accept wildcard characters false 如果您去看輸出的 5 行,會看到它提供如何使用 -identity參數的詳細資訊。例如,必要值等於True,表示-identity 參數...
how to abort an advanced function from within the BEGIN block? and what about the rest of the pipeline? How to access an excel file without Excel being on the computer. How to access the environment variables of the remote machine( Windows Core OS) through TShell script? How to access th...
Accept pipeline input? True (ByPropertyName) -FunctionVersion <FunctionVersion> Set to ALL to include entries for all published versions of each function. Required? False Position? Named Accept pipeline input? True (ByPropertyName) -Marker <String> Specify the pagination token that's returned by...
or a valid GUID (for example, 12345678-90ab -cdef-1234-567890bcdefgh). Required? true Position? 1 Default value Accept pipeline input? True Accept wildcard characters false 如果查看输出的最后,您会看到该输出提供了有关如何使用-identity 参数的详细信息。例如,Required等于 True,这表示 -...
Accept pipeline input:False Accept wildcard characters:False -ComputerName Specifies a computer name. This cmdlet starts an interactive session with the specified remote computer. Enter only one computer name. The default is the local computer. ...