
- PowerShell 教程
- PowerShell - 主頁
- PowerShell - 概述
- PowerShell - 環境設定
- PowerShell - Cmdlet
- PowerShell - 檔案和資料夾
- PowerShell - 日期和計時器
- PowerShell - 檔案 I/O
- PowerShell - 高階 Cmdlet
- PowerShell - 指令碼
- PowerShell - 特殊變數
- PowerShell - 運算子
- PowerShell - 迴圈
- PowerShell - 條件
- PowerShell - 陣列
- PowerShell - 雜湊表
- PowerShell - Regex
- PowerShell - 反引號
- PowerShell - 方括號
- PowerShell - 別名
- PowerShell 有用資源
- PowerShell - 快速指南
- PowerShell - 有用資源
- PowerShell - 討論
Powershell - Write-Warning Cmdlet
Cmdlet
Write-Warning cmdlet 用於編寫警告訊息。
在這些示例中,我們將看到 Write-Warning cmdlet 的實際應用。
示例
在此示例中,我們將展示一條警告訊息。
Write-Warning "Test Warning"
輸出
你可以看到該程序有很高的記憶體佔用。
WARNING: Test Warning
powershell_advanced_cmdlets.htm
廣告