2009-10-21 179 views

回答

6

總是有PowerShell中的幫助:

PS> import-module bitstransfer 
PS> gcm *bits* | ? {$_.Commandtype -eq "cmdlet"} 

CommandType Name     Definition 
----------- ----     ---------- 
Cmdlet  Add-BitsFile   Add-BitsFile [-BitsJob] <BitsJob[]> [-S... 
Cmdlet  Complete-BitsTransfer Complete-BitsTransfer [-BitsJob] <BitsJ... 
Cmdlet  Get-BitsTransfer  Get-BitsTransfer [[-Name] <String[]>] [... 
Cmdlet  Remove-BitsTransfer Remove-BitsTransfer [-BitsJob] <BitsJob... 
Cmdlet  Resume-BitsTransfer Resume-BitsTransfer [-BitsJob] <BitsJob... 
Cmdlet  Set-BitsTransfer  Set-BitsTransfer [-BitsJob] <BitsJob[]>... 
Cmdlet  Start-BitsTransfer Start-BitsTransfer [-Source] <String[]>... 
Cmdlet  Suspend-BitsTransfer Suspend-BitsTransfer [-BitsJob] <BitsJo... 

告訴你可用的命令。您可以撥打Get-Help那些。從我看到的幫助條目是非常有幫助的。不要忘記Get-Help ... -Examples以獲取詳細和註釋的使用示例。小命令已經不言而喻了。

+0

補充說明:您可以使用'Get-Module -ListAvailable'來找出可以導入的模塊。 – Joey 2009-10-21 14:23:31

+0

感謝您的信息! – Nestor 2009-10-21 15:01:51

+1

更好的方法是查看模塊中的命令行開關。在這種情況下,gcm -module bitstransfer是查看組的更好方法。 – 2012-09-02 13:57:02

0

另一種選擇是尋找到卡紙作業調度PowerShell命令進行文件傳輸。它使管理跨平臺的傳輸變得簡單。

+0

你可以添加更多的細節,這將使這個更好的答案? – slugster 2012-11-11 06:23:35