Running a remote .cmd / .bat from SSIS Process Task

Northface 161 Reputation points
2021-01-28T20:11:35.89+00:00

Hi there,

I am trying to run this from this task with these two properties:

Executable: \servername\c$\Program Files (x86)\Common Files\xxx\Batch\Monthly_Total.cmd
Working directory:\servername\c$\Program Files (x86)\Common Files\xxx\Batch\

But it is failing and I getting this message:

'path.....

CMD.EXE was started with the above path as the current directoy.
UNC paths are not supported. Defaulting to Windows directory

The user has fully permissions on the remote virtual machine, it is Local Admin

Any thoughts? I remember have used this task in the past successfully against a remote server

Thanks in advance,

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,732 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yitzhak Khabinsky 25,851 Reputation points
    2021-01-28T20:16:24.087+00:00

    You need to create a network file share for the UNC to be functional.
    Along the following:

    \\server\share\theRestOfThePath
    
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.