[SQL Server] sql作业代理使用powershell挂载共享盘问题

issue

sql agent使用powershell挂载共享盘不能识别.
New-PSDrive -Persist -Name Z -Root \\ip\path 挂载的盘识别不了

solution

  1. 第一种
New-PSDrive -Persist -Name Z -Root \\ip\path -Scope Global

2.第二种

使用\ip\path共享目录

posted @ 2022-03-09 18:53  单眼皮Boy  阅读(61)  评论(0)    收藏  举报