Running Powershell Command

Hello,
I would like to run this command

Disable-NetAdapter -name “Wi-Fi” -Confirm:$false

What is the best way to deploy this on my clients?

TIA!

In very basic format you could use

waithidden powershell.exe Disable-NetAdapter -name "Wi-Fi" -Confirm:$false

If you wanted to be a bit more advanced with it you could use

action uses wow64 redirection false
waithidden powershell.exe Disable-NetAdapter -name "Wi-Fi" -Confirm:$false
continueif {exit code of action = 0}

Or if you really wanted and you are using BigFix 10.0.4 - you an just change the script type to PowerShell and use native powershell scripting :slight_smile:

1 Like