######################################################### # # 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
相關文章
- Get your Windows product key from a scriptWindows
- install mysql from sourceMySql
- execute shell script from stored procedure
- Windows PowerShellWindows
- 【RMAN】Run Allocate Channel For Maintenance From Script FailsAINaN
- Script of Narrative Writing from different point of viewView
- Disable Dynamic DNS Updates in Windows 2008DNSWindows
- Powershell and Windows RAW SOCKETWindows
- Windows 升級 powershellWindows
- 1分鐘試用PowerShell 5.0新功能PowerShellGet安裝Script Browser和Script Analyzer
- Script to generate AWR report from remote sql clientREMSQLclient
- Windows啟動ServerDB ScriptWindowsServer
- 更改 Windows cmd 以及 PowerShell 字型Windows
- Windows 下如何除錯 PowerShellWindows除錯
- 安裝 Windows PowerShell 3.0【轉】Windows
- Windows Powershell & 環境變數;Powershell where命令無輸出Windows變數
- Sqoop1.99.6 Install And From MySQL To HdfsOOPMySql
- Use windows batch script to create menuWindowsBAT
- Script: To remove Chained Rows from a Table (Doc ID 1019556.6)REMAI
- checkboxList operate in windows fromWindows
- DHCPINFORM requests from Windows clientsORMWindowsclient
- Mysql 5.7.22 install for windowsMySqlWindows
- Win10系統如何開啟Windows Powershell_Win10開啟Windows Powershell圖文教程Win10Windows
- Windows下cmd/powershell命令混淆繞過Windows
- Docker for windows 入門三(PowerShell命令使用)DockerWindows
- PowerShell讀取Windows產品金鑰Windows
- Useful powershell command for Windows SYS AdminWindows
- Install Tensorflow on windows(Anaconda)Windows
- /****install oracle patch 9169457 for windows****/OracleWindows
- Install MongoDB Community Edition on WindowsMongoDBUnityWindows
- Windows 命令列終端 PowerShell 美化計劃Windows命令列
- 使用Windows PowerShell來檢視硬體資訊Windows
- [Mysql] 2.Mysql 5.7 Install (Windows)MySqlWindows
- Powershell 命令列安裝 Windows 作業系統命令列Windows作業系統
- 【黑客基礎】Windows PowerShell 指令碼學習(上)黑客Windows指令碼
- 使用 PowerShell 將資料磁碟附加到 Windows VMWindows
- PowerShell呼叫COM來讓Windows為你讀小說Windows
- Reinstall ASM or DB HOME on One RAC Node From the Install Media_864614.1ASM