0

I have a two part question.

I am looking for the -whatif cmdlet in Powershell.
I would like to run a script without the potential to break anything and when I run with the parameter -Whatif

  Import-Module : A parameter cannot be found that matches parameter name 'whatif'. 

The second part is, is there a way to list all of the cmdlets that when using the Get-Module -ListAvailable to see what cmdlets are available ?

4

1 Answer 1

0

Cmdlets and commands are displayed using Get-Command

To find all commands for i.e. the Netadpter module use

Get-Command -Module Netadapter
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.