There IS no one liner. You have variance over OS release and powershell versions.
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
does it work on any Windows version and any PS version?
-
No. It's only for Win10, I think. Can't check right now. Definitely doesn't work on Win7.
- Show replies
New conversation -
-
-
Is that persistent? Hmm
-
That will disable PowerShell permanently, yes.
- Show replies
New conversation -
-
-
Why "Disable-*" instead of a command option? Why "OptionalFeature" as, if it's not optional, I can't disable it.
#ReasonsIHatePowershell -
And specifying the FeatureName is optional? Should be more like WindowsFeature -Disable -Online smb1protocol
#PowershellIsPoorlyDesigned
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.