![](/img/trans.png)
[英]Powershell Function -WhatIf for cmdlet without the -WhatIf support?
[英]-Whatif cmdlet for powershell
我有一個兩部分的問題。
我正在 Powershell 中尋找-whatif
cmdlet。
我想運行一個腳本而不會破壞任何東西,當我使用參數-Whatif
運行時
Import-Module : A parameter cannot be found that matches parameter name 'whatif'.
第二部分是,在使用Get-Module -ListAvailable
查看可用的 cmdlet 時,是否有一種方法可以列出所有 cmdlet?
使用Get-Command
顯示 Cmdlet 和命令
要查找 ie Netadpter 模塊的所有命令,請使用
Get-Command -Module Netadapter
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.