【问题标题】:start wmi_exporter with task scheduler使用任务调度程序启动 wmi_exporter
【发布时间】:2018-08-16 11:35:36
【问题描述】:

我在系统启动时安排了一个任务来运行 wmi_exporter 的“msi”文件,参数 LISTEN_PORT=9100。预计任务将安装 msi 并在 9100 端口上侦听,但是在触发计划任务时不会发生安装过程。我可以在任务管理器中看到正在运行的任务。

注意:如果你想知道 wmi_exporter 是干什么用的,可以参考this页面

【问题讨论】:

    标签: scheduled-tasks windows-installer


    【解决方案1】:

    您是否安排它以静默模式运行?如果不是,它可能会卡在正在显示的设置对话框上(在您看不到的登录会话中运行)。还有其他的可能性。您设置了哪个用户来启动计划任务?

    这是一个示例msiexec.exe 命令行静默安装 MSI 文件:

    msiexec.exe /I "enterprise_gsync.msi" /QN /L*V "msilog.log"
    

    我不想在 superuser.com 上复制我之前的答案,请在此处打开它:How to deploy MSI which has no silence install switch? (this answer elaborates and explains the above command line)。


    一些链接

    【讨论】:

    • 感谢您的回答!我确实尝试了 /QN 开关,但没有尝试“/I”开关。另外,我不是通过 msiexec.exe D:\cr_monitoring\wmi_exporter-0.4.2-amd64.msi /Q LISTEN_PORT=9100 直接调用了 msi 文件。这就是我正在尝试的
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-11
    • 1970-01-01
    • 2016-07-15
    • 1970-01-01
    相关资源
    最近更新 更多