Powershell to run SSIS package using dtexec

Sivasankar Rebba 51 Reputation points
2023-03-08T22:21:25.68+00:00

Hi,

I need to develop powershell script to run SSISpackage using dtexec

below is my code.

$dtexecLocation="D:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\DTExec.exe"

$dtexecLocation /FILE "D:\SSIS\abc.dtsx" /CONFIGFILE "D:\SSIS\abc.config"

I am getting Unexpected token 'FILE' in expression or statement.

Thanks,

Siva.

SQL Server Integration Services
0 comments No comments
{count} votes

Answer accepted by question author
  1. ZoeHui-MSFT 41,536 Reputation points
    2023-03-09T02:33:36.6733333+00:00

    Hi @Sivasankar Rebba,

    Why not directly use dtexec to run the package?

    User's image

    Such as:

    DTExec /FILE "D:\SSIS\abc.dtsx" /CONFIGFILE "D:\SSIS\abc.config"

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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