New-PSDrive does not support credentials?

后端 未结 3 1693
鱼传尺愫
鱼传尺愫 2020-12-19 05:34

I am trying to map a drive in PowerShell 2.0 and getting this error?

New-PSDrive –Name ftp –PSProvider FileSystem –Root “\\\\server\\folder” -Credential $cre         


        
3条回答
  •  [愿得一人]
    2020-12-19 06:24

    If you still get the error after installing KB2819745 (powershell 4) then you might have forgotten Dotnet 4.5.

    DotNet 4.5 is a requirement for WinRM 4 / Powershell 4, yet the msu installs without it.

    This was the issue i was facing, after installing KB2819745 i still got the error. Install Dotnet 4.5 and then rerun KB2819745. Strangely it will reinstall when you installed dotnet, but without dotnet it says its already installed

提交回复
热议问题