【问题标题】:Excel RefreshAll using powershell script along with credentialsExcel RefreshAll 使用 powershell 脚本和凭据
【发布时间】:2017-10-16 13:46:33
【问题描述】:

我需要使用 Powershell 脚本刷新 Excel(以便稍后在任务调度程序中安排它)。此刷新需要输入凭据。有谁知道从 powershell 脚本传递这些凭据的方法? excel 在 RefreshAll() 处挂起,供用户输入凭据。

【问题讨论】:

  • 分享代码。刷新是什么意思。您是否尝试重新加载文件?

标签: excel powershell refresh credentials windows-security


【解决方案1】:

您可能可以使用 pscredential 对象来提供凭据。 可以将其存储到文件中(加密)。

save PSCredential in the file

可能是您正在寻找的。

【讨论】:

    猜你喜欢
    • 2016-08-21
    • 2013-07-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-08-10
    • 1970-01-01
    • 1970-01-01
    • 2018-03-05
    相关资源
    最近更新 更多