Powershell script to install Windows Updates (msu) from folder
#########################################################
#
# Name: InstallWindowsUpdates.ps1
# Author: Tony Murray
# Version: 1.0
# Date: 16/11/2010
# Comment: PowerShell script to install
# Windows Update files
#
######################################################### # Specify the location of the *.msu files
$updatedir = "C:\E2010 SP1 Prereqs\"
### $files = Get-ChildItem $updatedir -Recurse
$msus = $files | ? {$_.extension -eq ".msu"} foreach ($msu in $msus)
{
write-host "Installing update $msu ..."
$fullname = $msu.fullname
# Need to wrap in quotes as folder path may contain spaces
$fullname = "`"" + $fullname + "`""
# Specify the command line parameters for wusa.exe
$parameters = $fullname + " /quiet /norestart"
# Start wusa.exe and pass in the parameters
$install = [System.Diagnostics.Process]::Start( "wusa",$parameters )
$install.WaitForExit()
write-host "Finished installing $msu"
} write-host "Restarting Computer"
#Restart-Computer
Powershell script to install Windows Updates (msu) from folder的更多相关文章
- Send email alert from Performance Monitor using PowerShell script (检测windows服务器的cpu 硬盘 服务等性能,发email的方法) -摘自网络
		
I have created an alert in Performance Monitor (Windows Server 2008 R2) that should be triggered whe ...
 - 微软 PowerShell Script Explorer 满血复活,正式发布
		
一年前的今天,微软在其Windows PowerShell官方博客声明中止 ‘Script Explorer’ 应用程序的开发. 一年后的今天,微软为其Script Explorer注入了新的生命.一 ...
 - 微软 PowerShell Script Explorer
		
微软 PowerShell Script Explorer 满血复活,正式发布 一年前的今天,微软在其Windows PowerShell官方博客声明中止 ‘Script Explorer’ 应用程序 ...
 - SharePoint 2013 How to Backup Site Collection Automatically With a PowerShell Script
		
In this post I will introduce a way how to run a script for backing up SharePoint data which could b ...
 - [转]Install Windows Server 2012 in VMware Workstation
		
本文转自:http://kb4you.wordpress.com/2012/06/28/install-windows-server-2012-in-vmware-workstation-2/ Thi ...
 - SharePoint2013 Powershell script to get site Title, Site Owner, Site user count and usage
		
Powershell script to get site Title, Site Owner, Site user count and usage Add-PSSnapin microsoft.sh ...
 - Install Windows 2016 on VirtualBox
		
Download ISO file for Windows 2016 (180 days free). https://www.microsoft.com/en-us/evalcenter/eval ...
 - Windows 上的 SSH?使用 PowerShell Remoting 远程管理 Windows 服务器
		
作者:陈计节 个人博客:https://blog.jijiechen.com/post/powershell-remoting/ 在 Linux/Unix 世界里 SSH 是个好东西,SSH 是 Se ...
 - How to install Windows 7 SP1 on Skylake
		
Download gigabyte windows usb installation tool http://www.gigabyte.cn/WebPage/-79/usb.html get Wind ...
 
随机推荐
- Winio驱动在64位windows下无法使用的解决方法
			
C#在使用WinIo的驱动开发类似按键精灵一类工具的时候,需要对相关的驱动进行注册才能正常启动,找了下资料,资料来自: http://jingyan.baidu.com/article/642c9d3 ...
 - [python][spark]wholeTextFiles 读入多个文件的例子
			
$pwd /home/training/mydir $cat file1.json {"firstName":"Fred", "lastName&qu ...
 - cython学习
			
学习网址:http://blog.csdn.net/i2cbus/article/details/23791309
 - Linux运维笔记-日常操作命令总结(2)
			
回想起来,从事linux运维工作已近5年之久了,日常工作中会用到很多常规命令,之前简单罗列了一些命令:http://www.cnblogs.com/kevingrace/p/5985486.html今 ...
 - StackOverflow  问题
			
StackOverflow 这个问题一般是你的程序里头可能是有死循环或递归调用所产生的:可以查看一下你的程序,也可以增大你JVM的内存~~~在Eclipse中JDK的配置中加上 -XX:MaxD ...
 - 【个人博客作业II】有关代码规范问题的讨论
			
参考课程辅导书<构建之法>可以知道,程序的代码规范常指代码风格规范和代码设计规范两个方面,其中:代码风格规范包括(缩进,行宽,括号,断行与空白行,分行,命名,下划线,大小写,注释这几个部分 ...
 - BugPhobia开发篇章:Beta阶段第IX次Scrum Meeting
			
0x01 :Scrum Meeting基本摘要 Beta阶段第九次Scrum Meeting 敏捷开发起始时间 2015/12/25 00:00 A.M. 敏捷开发终止时间 2015/12/28 23 ...
 - 团队作业Week14——源代码管理
			
0. 在吹牛之前,先回答这个问题: 如果你的团队来了一个新队员,有一台全新的机器, 你们是否有一个文档,只要设置了相应的权限,她就可以根据文档,从头开始搭建环境,并成功地把最新.最稳定版本的软件编译出 ...
 - DELPHI XE10,JSON 生成和解析,再利用INDYHTTP控件POST
			
Delphi XE10,Json 生成和解析,再利用indyhttp控件Post 年09月20日 :: 阅读数: --不多说,直接上代码 procedure TFrmMain.Brand; var J ...
 - js screen
			
windows.screen對象包含包含對象屏幕的信息: screen.availheight;屏幕高度 screen.availwidth;屏幕寬度