用于安装更新的Powershell脚本 [英] Powershell script to install updates

查看:86
本文介绍了用于安装更新的Powershell脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Team,


我想触发一个脚本,可以安装每月的Windows更新并在输出文件中共享结果。


我对窗户不太好。能帮忙吗?


谢谢


Atul Chadha

解决方案

< blockquote>

您好,


对于Windows Update PowerShell脚本,请尝试
这个
。要记录活动,请包含以下内容:

 


Logfile =" C:\ Logs \

(gc env:computername).log"

函数LogWrite
{
Param([string]


Hi Team,

I want to trigger a script which can install monthly windows updates and share the result in output file.

I am not that good with windows. Could you please help.

Thank you

Atul Chadha

解决方案

Hi,

For Windows Update PowerShell script, try this one. To log the activity, include something like this


Logfile = "C:\Logs\


(gc env:computername).log" Function LogWrite { Param ([string]


这篇关于用于安装更新的Powershell脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆