「PowerShell」修訂間的差異

出自ProgWiki
跳至導覽 跳至搜尋
行 1: 行 1:
'''Windows PowerShell'''{{wikipedia|Windows_PowerShell|lang=en}}
+
'''Windows PowerShell'''
 +
*{{wikipedia|Windows_PowerShell|lang=en}}
 +
*[https://docs.microsoft.com/zh-tw/powershell/scripting/install/windows-powershell-system-requirements Windows PowerShell 系統需求]
 
*參照:
 
*參照:
 
**[http://social.technet.microsoft.com/Forums/zh-TW/powershellzhcht/threads Windows PowerShell 論壇]
 
**[http://social.technet.microsoft.com/Forums/zh-TW/powershellzhcht/threads Windows PowerShell 論壇]
行 12: 行 14:
  
 
==技術文件==
 
==技術文件==
*[http://www.microsoft.com/downloads/details.aspx?FamilyId=DF8ED469-9007-401C-85E7-46649A32D0E0&displaylang=en Windows PowerShell Quick Reference]
+
<!--
 +
*[http://www.microsoft.com/downloads/details.aspx?FamilyId=DF8ED469-9007-401C-85E7-46649A32D0E0&displaylang=en Windows PowerShell Quick Reference] //-->
 
*[http://www.microsoft.com/taiwan/technet/columns/profwin/28-monad.mspx 易學易用的 Windows PowerShell]
 
*[http://www.microsoft.com/taiwan/technet/columns/profwin/28-monad.mspx 易學易用的 Windows PowerShell]
 
*[http://search.microsoft.com/results.aspx?mkt=zh-TW&setlang=zh-TW&q=Windows+PowerShell 搜尋微軟網站上的『Windows PowerShell』]
 
*[http://search.microsoft.com/results.aspx?mkt=zh-TW&setlang=zh-TW&q=Windows+PowerShell 搜尋微軟網站上的『Windows PowerShell』]
 
*[https://ithelp.ithome.com.tw/users/20005121/ironman/54 強而有力的 Windows PowerShell :: 2009 iT 邦幫忙鐵人賽]
 
*[https://ithelp.ithome.com.tw/users/20005121/ironman/54 強而有力的 Windows PowerShell :: 2009 iT 邦幫忙鐵人賽]
 
+
<!--
 
;Technet 專欄
 
;Technet 專欄
 
#[http://www.microsoft.com/taiwan/technet/columns/profwin/56-Winpowerwshell.mspx Windows PowerShell 講座 (1)—指令、重導、別名]
 
#[http://www.microsoft.com/taiwan/technet/columns/profwin/56-Winpowerwshell.mspx Windows PowerShell 講座 (1)—指令、重導、別名]
行 23: 行 26:
 
#[http://www.microsoft.com/taiwan/technet/columns/profwin/66-Winpowerwshell4.mspx Windows PowerShell 講座(4)—變數]
 
#[http://www.microsoft.com/taiwan/technet/columns/profwin/66-Winpowerwshell4.mspx Windows PowerShell 講座(4)—變數]
 
#[http://www.microsoft.com/taiwan/technet/columns/profwin/67-Winpowerwshell5.mspx Windows PowerShell 講座 (5)—存資料的其他方式及編寫指令碼的前置準備]
 
#[http://www.microsoft.com/taiwan/technet/columns/profwin/67-Winpowerwshell5.mspx Windows PowerShell 講座 (5)—存資料的其他方式及編寫指令碼的前置準備]
 
+
//-->
 
==常用指令==
 
==常用指令==
 
*Get-Help
 
*Get-Help

於 2019年10月9日 (三) 21:00 的修訂

Windows PowerShell

安裝
啟動方法
  • 【開始】→【執行】→【powershell】

技術文件

常用指令

  • Get-Help
取得指令的使用說明
  • exit
離開PowerShell
  • HELP
線上說明
  • kill
停止執行中的程序
  • ps
顯示執行中的程序狀態

相關套件

應用

C#

FAQ

取得網路卡資訊

Get-WmiObject win32_NetworkAdapter | %{ if ($_.PhysicalAdapter -and $_.Name -notmatch "Virtual") {$_ } }

使用7z

使用git

使用xml

取得資料夾內附檔名為zip的檔名

$Dir="D:/Folder"    
 
foreach($item in (dir $Dir "*.zip")){ 
    Echo $item.Name
}

相關