【发布时间】:2021-02-25 16:03:41
【问题描述】:
我想用 ftp 创建一个持久的映射网络驱动器。我已经使用 windows 的文件资源管理器安装了一个 ftp 路径,以便不再输入凭据。请问有什么解决办法?
这是我的代码:
New-PSDrive -Persist -Name "X" -PSProvider "FileSystem" -Root "ftp://localhost/"
我有这个错误:
New-PSDrive: D:\powershell\Untitled-2.ps1:1:1 1号线 New-PSDrive -Persist -Name "X" -PSProvider "FileSystem" -Root "ftp:// ...
When you use the Persist parameter, the root must be a file system location on a remote computer.
【问题讨论】:
-
非常感谢!它有效!
-
很高兴知道(:
标签: powershell