powershell - PowerShell ScheduledJob 运行但不保存输出或返回数据
问题描述
我有一个每天运行以清除缓存的 PowerShell 计划作业。该作业在环境中除一个以外的所有工作站上运行并成功完成。作业运行并清除缓存,但不将输出返回到 Users\User1\AppData\Local\Microsoft\Windows\PowerShell\ScheduledJobs\DailyClearCache\Output。此外,get-job 不会返回任何内容。
任何帮助深表感谢。
Windows 10 PowerShell 5
[computer1]: PS C:\> Get-ScheduledJob
Id Name JobTriggers Command Enabled
-- ---- ----------- ------- -------
1 DailyClearCache 1 C:\DailyClearCache.ps1 True
[computer1]: PS C:\> Get-Job
[computer1]: PS C:\>
解决方案
推荐阅读
- python - 在 Numpy Python 中格式化浮点值数组
- python-3.x - 枕头贴没有正确覆盖
- javascript - 在 laravel 中上传具有多个文件的元数据
- typescript - Typescript:实现基类的类型方法参数
- django - 使用 s3 aws amazon 存储媒体和静态文件时出现服务器错误 (500)
- elasticsearch - 6.2.4 elasticsearch需要重命名索引
- javascript - 选择中的JS选项禁用值?
- javascript - JS / Blazor 像 windows 资源管理器一样检索拖放数据流
- python - 在 pandas col 中将每第二行乘以 -1
- asp.net - 在 MAC OS 中使用 docker MSSQL 服务器恢复 .bak 文件