「PowerShell」修訂間的差異
跳至導覽
跳至搜尋
(→技術文件) |
小 (→相關) |
||
行 47: | 行 47: | ||
===C#=== | ===C#=== | ||
*[http://www.codeproject.com/Articles/18229/How-to-run-PowerShell-scripts-from-C How to run PowerShell scripts from C#] | *[http://www.codeproject.com/Articles/18229/How-to-run-PowerShell-scripts-from-C How to run PowerShell scripts from C#] | ||
+ | |||
+ | ==FAQ== | ||
+ | ===取得網路卡資訊=== | ||
+ | Get-WmiObject win32_NetworkAdapter | %{ if ($_.PhysicalAdapter -and $_.Name -notmatch "Virtual") {$_ } } | ||
==相關== | ==相關== |
於 2019年3月25日 (一) 16:38 的修訂
Windows PowerShell,參照:『維基百科~Windows_PowerShell』
- 安裝
- KB968930 - Windows Management Framework Core package (Windows PowerShell 2.0 and WinRM 2.0)
- KB968929 - Windows Management Framework (Windows PowerShell 2.0, WinRM 2.0, and BITS 4.0)
- 啟動方法
- 【開始】→【執行】→【powershell】
技術文件
- Technet 專欄
- Windows PowerShell 講座 (1)—指令、重導、別名
- Windows PowerShell 講座 (2)—自訂工作環境
- Windows PowerShell 講座 (3)— PS 磁碟機
- Windows PowerShell 講座(4)—變數
- Windows PowerShell 講座 (5)—存資料的其他方式及編寫指令碼的前置準備
常用指令
- Get-Help
- 取得指令的使用說明
- exit
- 離開PowerShell
- HELP
- 線上說明
- kill
- 停止執行中的程序
- ps
- 顯示執行中的程序狀態
相關套件
應用
- 如何使用 Windows PowerShell 以便在應用程式終止時收到通知?
- How Can I Use Windows PowerShell to Delete All the Files in a Folder Older Than 90 Days?
- 檢查檔案是否存在?如不存在則發email通知
- Download files from websites programatically via powershell
C#
FAQ
取得網路卡資訊
Get-WmiObject win32_NetworkAdapter | %{ if ($_.PhysicalAdapter -and $_.Name -notmatch "Virtual") {$_ } }
相關
- PowerShell 中文博客 - 收集和分享PowerShell相关教程,技术和最新动态