Please feel free to provide feedback or file bugs here.

New-SmbShare -Whatif not working

New-SmbShare with -Whatif switch NOT working, it runs the command instead of showing the whatif massage

Test with vscode insider

Name Value
---- -----
PSVersion 5.1.17134.228
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17134.228
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

2 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Alon Gvili shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Thomas Lee commented  ·   ·  Flag as inappropriate

        I can duplicate this.

        Also, -CONFIRM also is not respected. And there is no -Verbose output either.

      Feedback and Knowledge Base