当涉及到编程时,我是一个完全的新手,所以请容忍我。我确实对这个网站进行了彻底的搜索,但没有找到任何帮助我弄清楚问题的东西。
我正在对域中的PC列表运行以下WMI脚本,以便从计算机列表中远程静默卸载Java Auto Updater。
wmic /failfast:on /node:@"c:\names.txt" product where "name like 'Java Auto
Updater'" call uninstall /nointeractive我想要做的就是这样。我希望将此脚本的输出转到一个文本文件中,并显示卸载是否成功。当我运行脚本时,我收到一条消息“工作站名称”-如果PC当时处于离线状态,则没有实例可用。我想让它在我运行脚本时显示在文本文件输出中,因为我的老板想让我记录下我成功卸载了软件的事实。
发布于 2012-06-29 04:23:32
尝试以下操作:
wmic /failfast:on /node:@"c:\names.txt" product where "name like 'Java Auto
Updater'" call uninstall /nointeractive | Out-File -FilePath C:\results.txthttps://stackoverflow.com/questions/11251169
复制相似问题