问题描述
我想运行一个 Powershell 脚本来查找多台远程计算机上的特定文件。 我的脚本看起来像这样:
$files=('file1','file2','file3')
$data=Get-ChildItem c:\ -Recurse -Force -ErrorAction SilentlyContinue
foreach($file in $files){
$data | where name -EQ $file |
out-file C:\test\output.txt -Append
}
我知道我可以使用 PSremoting 和 invoke-command 来运行它。这在我的组织中目前不可用。是否有其他解决方案可以在多台计算机上远程运行此程序(可能通过 GPO)?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)