Trying to remove SMB1Protocol via powershell and PDQ

Looking online, they say run this command. So I had a PDQ job setup to run this

Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol -Remove 

But every time I run it, it says:

Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available.

So I try

-Confirm:$false -Force -Recursive 

they all keep getting this error

Disable-WindowsOptionalFeature : A parameter cannot be found that matches parameter name ‘Confirm’. (or force, etc)

What am I doing wrong

edit:

Forgot to mention, It’s win 10

But I think I was trying to remove smbv1 too, not just disable. The disable powershell script worked, but I was also trying to remove it. I think it was overkill, disable is probably good enough. Thx all.

submitted by /u/dude2k5
[link] [comments]

Leave a Reply