SSIS 运行 PS1 (powershell) 作业但 SSMS 代理不运行

SSIS runs PS1 (powershell) job but SSMS Agent don't

我在 SSIS 上有一个包,它 运行 是一个 .BAT 文件,因此 运行 是一个 .PS1 文件 (powershell)。这个 Powershell 文件将一个 Excel 文件转换为 CSV,因此我可以更轻松方便地导入数据。

问题是,当通过 SQL 代理作业创建计划并 运行 执行此作业时,它没有执行打开 Excel 文件并正常转换的步骤.通过 SSIS 它可以工作,运行通过 SSMS(集成服务目录)安装包也可以,但是通过代理它不能。

我试过的:

I have already given permission in the folder for several SQL and SSIS users (I don't know if I gave it to everyone).

I already activated the functionality to use via SQL window (but the command also doesn't work, it gives an error). As answer: Enable 'xp_cmdshell' SQL Server

I have already given permission for the components through DCOMCNFG. As answer: DCOM, DCOM 2

I have already given permission within the SSMS itself.

I have already created a proxy and used a credential and when running the job with that proxy, it also does not run. As answer: Proxy answer, Proxy answer 2

但我不知道如何通过代理、手动和通过 SSIS 使流程正确地 运行 它工作得很好。但不是自动的。 运行 SSIS 是否有任何特定用户有权限而 SSMS 代理没有? (虽然我到处都试过授权)

谢谢!

问题出在 DCOM 配置中的 Excel 应用程序中,因此查看此 link DCOM config,我能够修复它并且 运行 正确。