-
-
Save joefitzgerald/8203265 to your computer and use it in GitHub Desktop.
param($global:RestartRequired=0, | |
$global:MoreUpdates=0, | |
$global:MaxCycles=10) | |
function Check-ContinueRestartOrEnd() { | |
$RegistryKey = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" | |
$RegistryEntry = "InstallWindowsUpdates" | |
switch ($global:RestartRequired) { | |
0 { | |
$prop = (Get-ItemProperty $RegistryKey).$RegistryEntry | |
if ($prop) { | |
Write-Host "Restart Registry Entry Exists - Removing It" | |
Remove-ItemProperty -Path $RegistryKey -Name $RegistryEntry -ErrorAction SilentlyContinue | |
} | |
Write-Host "No Restart Required" | |
Check-WindowsUpdates | |
if (($global:MoreUpdates -eq 1) -and ($script:Cycles -le $global:MaxCycles)) { | |
Stop-Service $script:ServiceName -Force | |
Set-Service -Name $script:ServiceName -StartupType Disabled -Status Stopped | |
Install-WindowsUpdates | |
} elseif ($script:Cycles -gt $global:MaxCycles) { | |
Write-Host "Exceeded Cycle Count - Stopping" | |
} else { | |
Write-Host "Done Installing Windows Updates" | |
Set-Service -Name $script:ServiceName -StartupType Automatic -Status Running | |
} | |
} | |
1 { | |
$prop = (Get-ItemProperty $RegistryKey).$RegistryEntry | |
if (-not $prop) { | |
Write-Host "Restart Registry Entry Does Not Exist - Creating It" | |
Set-ItemProperty -Path $RegistryKey -Name $RegistryEntry -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File $($script:ScriptPath)" | |
} else { | |
Write-Host "Restart Registry Entry Exists Already" | |
} | |
Write-Host "Restart Required - Restarting..." | |
Restart-Computer | |
} | |
default { | |
Write-Host "Unsure If A Restart Is Required" | |
break | |
} | |
} | |
} | |
function Install-WindowsUpdates() { | |
$script:Cycles++ | |
Write-Host 'Evaluating Available Updates:' | |
$UpdatesToDownload = New-Object -ComObject 'Microsoft.Update.UpdateColl' | |
foreach ($Update in $SearchResult.Updates) { | |
if (($Update -ne $null) -and (!$Update.IsDownloaded)) { | |
[bool]$addThisUpdate = $false | |
if ($Update.InstallationBehavior.CanRequestUserInput) { | |
Write-Host "> Skipping: $($Update.Title) because it requires user input" | |
} else { | |
if (!($Update.EulaAccepted)) { | |
Write-Host "> Note: $($Update.Title) has a license agreement that must be accepted. Accepting the license." | |
$Update.AcceptEula() | |
[bool]$addThisUpdate = $true | |
} else { | |
[bool]$addThisUpdate = $true | |
} | |
} | |
if ([bool]$addThisUpdate) { | |
Write-Host "Adding: $($Update.Title)" | |
$UpdatesToDownload.Add($Update) |Out-Null | |
} | |
} | |
} | |
if ($UpdatesToDownload.Count -eq 0) { | |
Write-Host "No Updates To Download..." | |
} else { | |
Write-Host 'Downloading Updates...' | |
$Downloader = $UpdateSession.CreateUpdateDownloader() | |
$Downloader.Updates = $UpdatesToDownload | |
$Downloader.Download() | |
} | |
$UpdatesToInstall = New-Object -ComObject 'Microsoft.Update.UpdateColl' | |
[bool]$rebootMayBeRequired = $false | |
Write-Host 'The following updates are downloaded and ready to be installed:' | |
foreach ($Update in $SearchResult.Updates) { | |
if (($Update.IsDownloaded)) { | |
Write-Host "> $($Update.Title)" | |
$UpdatesToInstall.Add($Update) |Out-Null | |
if ($Update.InstallationBehavior.RebootBehavior -gt 0){ | |
[bool]$rebootMayBeRequired = $true | |
} | |
} | |
} | |
if ($UpdatesToInstall.Count -eq 0) { | |
Write-Host 'No updates available to install...' | |
$global:MoreUpdates=0 | |
$global:RestartRequired=0 | |
break | |
} | |
if ($rebootMayBeRequired) { | |
Write-Host 'These updates may require a reboot' | |
$global:RestartRequired=1 | |
} | |
Write-Host 'Installing updates...' | |
$Installer = $script:UpdateSession.CreateUpdateInstaller() | |
$Installer.Updates = $UpdatesToInstall | |
$InstallationResult = $Installer.Install() | |
Write-Host "Installation Result: $($InstallationResult.ResultCode)" | |
Write-Host "Reboot Required: $($InstallationResult.RebootRequired)" | |
Write-Host 'Listing of updates installed and individual installation results:' | |
if ($InstallationResult.RebootRequired) { | |
$global:RestartRequired=1 | |
} else { | |
$global:RestartRequired=0 | |
} | |
for($i=0; $i -lt $UpdatesToInstall.Count; $i++) { | |
New-Object -TypeName PSObject -Property @{ | |
Title = $UpdatesToInstall.Item($i).Title | |
Result = $InstallationResult.GetUpdateResult($i).ResultCode | |
} | |
} | |
Check-ContinueRestartOrEnd | |
} | |
function Check-WindowsUpdates() { | |
Write-Host "Checking For Windows Updates" | |
$Username = $env:USERDOMAIN + "\" + $env:USERNAME | |
New-EventLog -Source $ScriptName -LogName 'Windows Powershell' -ErrorAction SilentlyContinue | |
$Message = "Script: " + $ScriptPath + "`nScript User: " + $Username + "`nStarted: " + (Get-Date).toString() | |
Write-EventLog -LogName 'Windows Powershell' -Source $ScriptName -EventID "104" -EntryType "Information" -Message $Message | |
Write-Host $Message | |
$script:UpdateSearcher = $script:UpdateSession.CreateUpdateSearcher() | |
$script:SearchResult = $script:UpdateSearcher.Search("IsInstalled=0 and Type='Software' and IsHidden=0") | |
if ($SearchResult.Updates.Count -ne 0) { | |
$script:SearchResult.Updates |Select-Object -Property Title, Description, SupportUrl, UninstallationNotes, RebootRequired, EulaAccepted |Format-List | |
$global:MoreUpdates=1 | |
} else { | |
Write-Host 'There are no applicable updates' | |
$global:RestartRequired=0 | |
$global:MoreUpdates=0 | |
} | |
} | |
$script:ScriptName = $MyInvocation.MyCommand.ToString() | |
$script:ScriptPath = $MyInvocation.MyCommand.Path | |
$script:UpdateSession = New-Object -ComObject 'Microsoft.Update.Session' | |
$script:UpdateSession.ClientApplicationID = 'Packer Windows Update Installer' | |
$script:UpdateSearcher = $script:UpdateSession.CreateUpdateSearcher() | |
$script:SearchResult = New-Object -ComObject 'Microsoft.Update.UpdateColl' | |
$script:Cycles = 0 | |
$script:ServiceName = "OpenSSHd" | |
Stop-Service $script:ServiceName -Force | |
Set-Service -Name $script:ServiceName -StartupType Disabled -Status Stopped | |
Check-WindowsUpdates | |
if ($global:MoreUpdates -eq 1) { | |
Install-WindowsUpdates | |
} else { | |
Check-ContinueRestartOrEnd | |
} |
I believe it was more suited to his needs. I have removed this in my own copy of the script (not published on Github).
I commented out lines 166, 168, 169
I'm trying to exclude SQL updates from this. I've modified the following:
`function Install-WindowsUpdates() {
$script:Cycles++
Write-Host 'Evaluating Available Updates:'
$UpdatesToDownload = New-Object -ComObject 'Microsoft.Update.UpdateColl'
foreach ($Update in $SearchResult.Updates) {
if (($Update -ne $null) -and (!$Update.IsDownloaded)) {
[bool]$addThisUpdate = $false
if ($Update.InstallationBehavior.CanRequestUserInput) {
Write-Host "> Skipping: $($Update.Title) because it requires user input"
} else {
if (!($Update.EulaAccepted)) {
Write-Host "> Note: $($Update.Title) has a license agreement that must be accepted. Accepting the license."
$Update.AcceptEula()
[bool]$addThisUpdate = $true
} else {
if (!($Update.Title) -eq 'SQL') {
[bool]$addThisUpdate = $false
Write-Host "> Note: $($Update.Title) is an MS SQL update that must be skipped as per DD DBA requirements."
} else {
[bool]$addThisUpdate = $true
}
}
if ([bool]$addThisUpdate) {
Write-Host "Adding: $($Update.Title)"
$UpdatesToDownload.Add($Update) |Out-Null
}
}
}`
but it is not having the desired effect. The script still runs but I still get SQL updates. Any thoughts?
This Script is Really Amazing!! can this script be used to install windows updates on remote computers? I would really appreciate if you can help me with it.
Today I tried running this script, it started fine and then it got stuck in between, then i just hit enter while copying powershell commands and it started working then it rebooted automatically and then started installing failed and pending updates but then it throws error while installing updates post reboot. please see below
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Checking For Windows Updates
Script: C:\WindowsUpdate\WinUpdateScriptV2.ps1
Script User: domainname\username
Started: 5/17/2018 11:27:47 PM
Title : Update for Microsoft Publisher 2016 (KB3178696) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Publisher 2016 32-Bit Edition. This update
provides the latest fixes to Microsoft Publisher 2016 32-Bit Edition. Additionally, this update
contains stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Title : Security Update for Microsoft Office 2016 (KB4011126) 32-Bit Edition
Description : A security vulnerability exists in Microsoft Office 2016 32-Bit Edition that could allow
arbitrary code to run when a maliciously modified file is opened. This update resolves that
vulnerability.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Title : Update Oracle Java JRE, version 8u151, Highly Critical
Description : Made by the Flexera Corporate Software Inspector
csi_product_id:49763
csi_version:8u151
csi_arch:21
csi_package_guid:9e9b7961-9e8d-4643-ad72-79ffae4813ae
csi_creation_date:2017-11-17 15:30:33
SupportUrl :
UninstallationNotes :
RebootRequired : False
EulaAccepted : True
Title : Update for Microsoft Office 2016 (KB4011225) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Title : Update for Microsoft Office 2016 (KB3178662) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Title : Update Oracle Java JRE, version 8u161
Description : Made by the Flexera Corporate Software Inspector
csi_product_id:49763
csi_version:8u161
csi_arch:21
csi_package_guid:27cffc04-dff4-42b5-a9ce-df37b416950b
csi_creation_date:2018-02-09 14:36:48
SupportUrl :
UninstallationNotes :
RebootRequired : False
EulaAccepted : True
Title : Security Update for SQL Server 2012 Service Pack 3 GDR (KB4057115)
Description : Security issues have been identified in the SQL Server 2012 Service Pack 3 GDR that could allow
an attacker to compromise your system and gain control over it. You can help protect your
computer by installing this update from Microsoft. After you install this item, you may have to
restart your computer.
SupportUrl : http://support.microsoft.com
UninstallationNotes : This software update can be removed via Add or Remove Programs in Control Panel.
RebootRequired : False
EulaAccepted : True
Title : Security Update for Microsoft Access 2016 (KB4011665) 32-Bit Edition
Description : A security vulnerability exists in Microsoft Access 2016 32-Bit Edition that could allow
arbitrary code to run when a maliciously modified file is opened. This update resolves that
vulnerability.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Title : Update for Microsoft Office 2016 (KB4011667) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Title : Update for Microsoft Office 2016 (KB3203479) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Title : Update for Microsoft OneNote 2016 (KB4018321) 32-Bit Edition
Description : Microsoft has released an update for Microsoft OneNote 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft OneNote 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Evaluating Available Updates:
No Updates To Download...
The following updates are downloaded and ready to be installed:
Update for Microsoft Publisher 2016 (KB3178696) 32-Bit Edition
Security Update for Microsoft Office 2016 (KB4011126) 32-Bit Edition
Update Oracle Java JRE, version 8u151, Highly Critical
Update for Microsoft Office 2016 (KB4011225) 32-Bit Edition
Update for Microsoft Office 2016 (KB3178662) 32-Bit Edition
Update Oracle Java JRE, version 8u161
Security Update for SQL Server 2012 Service Pack 3 GDR (KB4057115)
Security Update for Microsoft Access 2016 (KB4011665) 32-Bit Edition
Update for Microsoft Office 2016 (KB4011667) 32-Bit Edition
Update for Microsoft Office 2016 (KB3203479) 32-Bit Edition
Update for Microsoft OneNote 2016 (KB4018321) 32-Bit Edition
These updates may require a reboot
Installing updates...
Exception from HRESULT: 0x80240044
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:120 char:5
-
$InstallationResult = $Installer.Install()
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : OperationStopped: (:) [], COMException
- FullyQualifiedErrorId : System.Runtime.InteropServices.COMException
Installation Result:
Reboot Required:
Listing of updates installed and individual installation results:
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
Restart Registry Entry Exists - Removing It
No Restart Required
Checking For Windows Updates
Script: C:\WindowsUpdate\WinUpdateScriptV2.ps1
Script User: MTC-MAERSK\sgs035adm
Started: 5/17/2018 11:43:24 PM
Title : Update for Microsoft Publisher 2016 (KB3178696) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Publisher 2016 32-Bit Edition. This update
provides the latest fixes to Microsoft Publisher 2016 32-Bit Edition. Additionally, this update
contains stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Title : Security Update for Microsoft Office 2016 (KB4011126) 32-Bit Edition
Description : A security vulnerability exists in Microsoft Office 2016 32-Bit Edition that could allow
arbitrary code to run when a maliciously modified file is opened. This update resolves that
vulnerability.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Title : Update Oracle Java JRE, version 8u151, Highly Critical
Description : Made by the Flexera Corporate Software Inspector
csi_product_id:49763
csi_version:8u151
csi_arch:21
csi_package_guid:9e9b7961-9e8d-4643-ad72-79ffae4813ae
csi_creation_date:2017-11-17 15:30:33
SupportUrl :
UninstallationNotes :
RebootRequired : False
EulaAccepted : True
Title : Update for Microsoft Office 2016 (KB4011225) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Title : Update for Microsoft Office 2016 (KB3178662) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Title : Update Oracle Java JRE, version 8u161
Description : Made by the Flexera Corporate Software Inspector
csi_product_id:49763
csi_version:8u161
csi_arch:21
csi_package_guid:27cffc04-dff4-42b5-a9ce-df37b416950b
csi_creation_date:2018-02-09 14:36:48
SupportUrl :
UninstallationNotes :
RebootRequired : False
EulaAccepted : True
Title : Security Update for SQL Server 2012 Service Pack 3 GDR (KB4057115)
Description : Security issues have been identified in the SQL Server 2012 Service Pack 3 GDR that could allow
an attacker to compromise your system and gain control over it. You can help protect your
computer by installing this update from Microsoft. After you install this item, you may have to
restart your computer.
SupportUrl : http://support.microsoft.com
UninstallationNotes : This software update can be removed via Add or Remove Programs in Control Panel.
RebootRequired : False
EulaAccepted : True
Title : Security Update for Microsoft Access 2016 (KB4011665) 32-Bit Edition
Description : A security vulnerability exists in Microsoft Access 2016 32-Bit Edition that could allow
arbitrary code to run when a maliciously modified file is opened. This update resolves that
vulnerability.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Title : Update for Microsoft Office 2016 (KB4011667) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Title : Update for Microsoft Office 2016 (KB3203479) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Title : Update for Microsoft OneNote 2016 (KB4018321) 32-Bit Edition
Description : Microsoft has released an update for Microsoft OneNote 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft OneNote 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Stop-Service : Cannot validate argument on parameter 'InputObject'. The argument is null or empty. Provide an argument
that is not null or empty, and then try the command again.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:26 char:30
-
Stop-Service $script:ServiceName -Force
-
~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidData: (:) [Stop-Service], ParameterBindingValidationException
- FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.StopServiceCommand
Evaluating Available Updates:
No Updates To Download...
The following updates are downloaded and ready to be installed:
Update for Microsoft Publisher 2016 (KB3178696) 32-Bit Edition
Security Update for Microsoft Office 2016 (KB4011126) 32-Bit Edition
Update Oracle Java JRE, version 8u151, Highly Critical
Update for Microsoft Office 2016 (KB4011225) 32-Bit Edition
Update for Microsoft Office 2016 (KB3178662) 32-Bit Edition
Update Oracle Java JRE, version 8u161
Security Update for SQL Server 2012 Service Pack 3 GDR (KB4057115)
Security Update for Microsoft Access 2016 (KB4011665) 32-Bit Edition
Update for Microsoft Office 2016 (KB4011667) 32-Bit Edition
Update for Microsoft Office 2016 (KB3203479) 32-Bit Edition
Update for Microsoft OneNote 2016 (KB4018321) 32-Bit Edition
These updates may require a reboot
Installing updates...
Exception from HRESULT: 0x80240044
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:120 char:5
-
$InstallationResult = $Installer.Install()
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : OperationStopped: (:) [], COMException
- FullyQualifiedErrorId : System.Runtime.InteropServices.COMException
Installation Result:
Reboot Required:
Listing of updates installed and individual installation results:
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
Restart Registry Entry Exists - Removing It
No Restart Required
Checking For Windows Updates
Script: C:\WindowsUpdate\WinUpdateScriptV2.ps1
Script User: MTC-MAERSK\sgs035adm
Started: 5/17/2018 11:49:33 PM
Title : Update for Microsoft Publisher 2016 (KB3178696) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Publisher 2016 32-Bit Edition. This update
provides the latest fixes to Microsoft Publisher 2016 32-Bit Edition. Additionally, this update
contains stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Title : Security Update for Microsoft Office 2016 (KB4011126) 32-Bit Edition
Description : A security vulnerability exists in Microsoft Office 2016 32-Bit Edition that could allow
arbitrary code to run when a maliciously modified file is opened. This update resolves that
vulnerability.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Title : Update Oracle Java JRE, version 8u151, Highly Critical
Description : Made by the Flexera Corporate Software Inspector
csi_product_id:49763
csi_version:8u151
csi_arch:21
csi_package_guid:9e9b7961-9e8d-4643-ad72-79ffae4813ae
csi_creation_date:2017-11-17 15:30:33
SupportUrl :
UninstallationNotes :
RebootRequired : False
EulaAccepted : True
Title : Update for Microsoft Office 2016 (KB4011225) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Title : Update for Microsoft Office 2016 (KB3178662) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Title : Update Oracle Java JRE, version 8u161
Description : Made by the Flexera Corporate Software Inspector
csi_product_id:49763
csi_version:8u161
csi_arch:21
csi_package_guid:27cffc04-dff4-42b5-a9ce-df37b416950b
csi_creation_date:2018-02-09 14:36:48
SupportUrl :
UninstallationNotes :
RebootRequired : False
EulaAccepted : True
Title : Security Update for SQL Server 2012 Service Pack 3 GDR (KB4057115)
Description : Security issues have been identified in the SQL Server 2012 Service Pack 3 GDR that could allow
an attacker to compromise your system and gain control over it. You can help protect your
computer by installing this update from Microsoft. After you install this item, you may have to
restart your computer.
SupportUrl : http://support.microsoft.com
UninstallationNotes : This software update can be removed via Add or Remove Programs in Control Panel.
RebootRequired : False
EulaAccepted : True
Title : Security Update for Microsoft Access 2016 (KB4011665) 32-Bit Edition
Description : A security vulnerability exists in Microsoft Access 2016 32-Bit Edition that could allow
arbitrary code to run when a maliciously modified file is opened. This update resolves that
vulnerability.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Title : Update for Microsoft Office 2016 (KB4011667) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Title : Update for Microsoft Office 2016 (KB3203479) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Title : Update for Microsoft OneNote 2016 (KB4018321) 32-Bit Edition
Description : Microsoft has released an update for Microsoft OneNote 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft OneNote 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : True
Stop-Service : Cannot validate argument on parameter 'InputObject'. The argument is null or empty. Provide an argument
that is not null or empty, and then try the command again.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:26 char:30
-
Stop-Service $script:ServiceName -Force
-
~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidData: (:) [Stop-Service], ParameterBindingValidationException
- FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.StopServiceCommand
Evaluating Available Updates:
No Updates To Download...
The following updates are downloaded and ready to be installed:
Update for Microsoft Publisher 2016 (KB3178696) 32-Bit Edition
Security Update for Microsoft Office 2016 (KB4011126) 32-Bit Edition
Update Oracle Java JRE, version 8u151, Highly Critical
Update for Microsoft Office 2016 (KB4011225) 32-Bit Edition
Update for Microsoft Office 2016 (KB3178662) 32-Bit Edition
Update Oracle Java JRE, version 8u161
Security Update for SQL Server 2012 Service Pack 3 GDR (KB4057115)
Security Update for Microsoft Access 2016 (KB4011665) 32-Bit Edition
Update for Microsoft Office 2016 (KB4011667) 32-Bit Edition
Update for Microsoft Office 2016 (KB3203479) 32-Bit Edition
Update for Microsoft OneNote 2016 (KB4018321) 32-Bit Edition
These updates may require a reboot
Installing updates...
Exception from HRESULT: 0x80240044
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:120 char:5
-
$InstallationResult = $Installer.Install()
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : OperationStopped: (:) [], COMException
- FullyQualifiedErrorId : System.Runtime.InteropServices.COMException
Installation Result:
Reboot Required:
Listing of updates installed and individual installation results:
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
-
New-Object -TypeName PSObject -Property @{
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
Restart Registry Entry Exists - Removing It
No Restart Required
Checking For Windows Updates
Script: C:\WindowsUpdate\WinUpdateScriptV2.ps1
Script User: domain\username
Started: 5/17/2018 11:55:40 PM
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Today I tried running this script, it started fine and then it got stuck in between, then i just hit enter while copying powershell commands and it started working then it rebooted automatically and then started installing failed and pending updates but then it throws error while installing updates post reboot. please see below
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Checking For Windows Updates
Script: C:\WindowsUpdate\WinUpdateScriptV2.ps1
Script User: domainname\username
Started: 5/17/2018 11:27:47 PMTitle : Update for Microsoft Publisher 2016 (KB3178696) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Publisher 2016 32-Bit Edition. This update
provides the latest fixes to Microsoft Publisher 2016 32-Bit Edition. Additionally, this update
contains stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueTitle : Security Update for Microsoft Office 2016 (KB4011126) 32-Bit Edition
Description : A security vulnerability exists in Microsoft Office 2016 32-Bit Edition that could allow
arbitrary code to run when a maliciously modified file is opened. This update resolves that
vulnerability.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueTitle : Update Oracle Java JRE, version 8u151, Highly Critical
Description : Made by the Flexera Corporate Software Inspector
csi_product_id:49763
csi_version:8u151
csi_arch:21
csi_package_guid:9e9b7961-9e8d-4643-ad72-79ffae4813ae
csi_creation_date:2017-11-17 15:30:33
SupportUrl :
UninstallationNotes :
RebootRequired : False
EulaAccepted : TrueTitle : Update for Microsoft Office 2016 (KB4011225) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueTitle : Update for Microsoft Office 2016 (KB3178662) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueTitle : Update Oracle Java JRE, version 8u161
Description : Made by the Flexera Corporate Software Inspector
csi_product_id:49763
csi_version:8u161
csi_arch:21
csi_package_guid:27cffc04-dff4-42b5-a9ce-df37b416950b
csi_creation_date:2018-02-09 14:36:48
SupportUrl :
UninstallationNotes :
RebootRequired : False
EulaAccepted : TrueTitle : Security Update for SQL Server 2012 Service Pack 3 GDR (KB4057115)
Description : Security issues have been identified in the SQL Server 2012 Service Pack 3 GDR that could allow
an attacker to compromise your system and gain control over it. You can help protect your
computer by installing this update from Microsoft. After you install this item, you may have to
restart your computer.
SupportUrl : http://support.microsoft.com
UninstallationNotes : This software update can be removed via Add or Remove Programs in Control Panel.
RebootRequired : False
EulaAccepted : TrueTitle : Security Update for Microsoft Access 2016 (KB4011665) 32-Bit Edition
Description : A security vulnerability exists in Microsoft Access 2016 32-Bit Edition that could allow
arbitrary code to run when a maliciously modified file is opened. This update resolves that
vulnerability.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueTitle : Update for Microsoft Office 2016 (KB4011667) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueTitle : Update for Microsoft Office 2016 (KB3203479) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueTitle : Update for Microsoft OneNote 2016 (KB4018321) 32-Bit Edition
Description : Microsoft has released an update for Microsoft OneNote 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft OneNote 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueEvaluating Available Updates:
No Updates To Download...
The following updates are downloaded and ready to be installed:Update for Microsoft Publisher 2016 (KB3178696) 32-Bit Edition
Security Update for Microsoft Office 2016 (KB4011126) 32-Bit Edition
Update Oracle Java JRE, version 8u151, Highly Critical
Update for Microsoft Office 2016 (KB4011225) 32-Bit Edition
Update for Microsoft Office 2016 (KB3178662) 32-Bit Edition
Update Oracle Java JRE, version 8u161
Security Update for SQL Server 2012 Service Pack 3 GDR (KB4057115)
Security Update for Microsoft Access 2016 (KB4011665) 32-Bit Edition
Update for Microsoft Office 2016 (KB4011667) 32-Bit Edition
Update for Microsoft Office 2016 (KB3203479) 32-Bit Edition
Update for Microsoft OneNote 2016 (KB4018321) 32-Bit Edition
These updates may require a reboot
Installing updates...
Exception from HRESULT: 0x80240044
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:120 char:5
$InstallationResult = $Installer.Install()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : OperationStopped: (:) [], COMException
- FullyQualifiedErrorId : System.Runtime.InteropServices.COMException
Installation Result:
Reboot Required:
Listing of updates installed and individual installation results:
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
Restart Registry Entry Exists - Removing It
No Restart Required
Checking For Windows Updates
Script: C:\WindowsUpdate\WinUpdateScriptV2.ps1
Script User: MTC-MAERSK\sgs035adm
Started: 5/17/2018 11:43:24 PMTitle : Update for Microsoft Publisher 2016 (KB3178696) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Publisher 2016 32-Bit Edition. This update
provides the latest fixes to Microsoft Publisher 2016 32-Bit Edition. Additionally, this update
contains stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueTitle : Security Update for Microsoft Office 2016 (KB4011126) 32-Bit Edition
Description : A security vulnerability exists in Microsoft Office 2016 32-Bit Edition that could allow
arbitrary code to run when a maliciously modified file is opened. This update resolves that
vulnerability.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueTitle : Update Oracle Java JRE, version 8u151, Highly Critical
Description : Made by the Flexera Corporate Software Inspector
csi_product_id:49763
csi_version:8u151
csi_arch:21
csi_package_guid:9e9b7961-9e8d-4643-ad72-79ffae4813ae
csi_creation_date:2017-11-17 15:30:33
SupportUrl :
UninstallationNotes :
RebootRequired : False
EulaAccepted : TrueTitle : Update for Microsoft Office 2016 (KB4011225) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueTitle : Update for Microsoft Office 2016 (KB3178662) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueTitle : Update Oracle Java JRE, version 8u161
Description : Made by the Flexera Corporate Software Inspector
csi_product_id:49763
csi_version:8u161
csi_arch:21
csi_package_guid:27cffc04-dff4-42b5-a9ce-df37b416950b
csi_creation_date:2018-02-09 14:36:48
SupportUrl :
UninstallationNotes :
RebootRequired : False
EulaAccepted : TrueTitle : Security Update for SQL Server 2012 Service Pack 3 GDR (KB4057115)
Description : Security issues have been identified in the SQL Server 2012 Service Pack 3 GDR that could allow
an attacker to compromise your system and gain control over it. You can help protect your
computer by installing this update from Microsoft. After you install this item, you may have to
restart your computer.
SupportUrl : http://support.microsoft.com
UninstallationNotes : This software update can be removed via Add or Remove Programs in Control Panel.
RebootRequired : False
EulaAccepted : TrueTitle : Security Update for Microsoft Access 2016 (KB4011665) 32-Bit Edition
Description : A security vulnerability exists in Microsoft Access 2016 32-Bit Edition that could allow
arbitrary code to run when a maliciously modified file is opened. This update resolves that
vulnerability.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueTitle : Update for Microsoft Office 2016 (KB4011667) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueTitle : Update for Microsoft Office 2016 (KB3203479) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueTitle : Update for Microsoft OneNote 2016 (KB4018321) 32-Bit Edition
Description : Microsoft has released an update for Microsoft OneNote 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft OneNote 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueStop-Service : Cannot validate argument on parameter 'InputObject'. The argument is null or empty. Provide an argument
that is not null or empty, and then try the command again.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:26 char:30
Stop-Service $script:ServiceName -Force
~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidData: (:) [Stop-Service], ParameterBindingValidationException
- FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.StopServiceCommand
Evaluating Available Updates:
No Updates To Download...
The following updates are downloaded and ready to be installed:Update for Microsoft Publisher 2016 (KB3178696) 32-Bit Edition
Security Update for Microsoft Office 2016 (KB4011126) 32-Bit Edition
Update Oracle Java JRE, version 8u151, Highly Critical
Update for Microsoft Office 2016 (KB4011225) 32-Bit Edition
Update for Microsoft Office 2016 (KB3178662) 32-Bit Edition
Update Oracle Java JRE, version 8u161
Security Update for SQL Server 2012 Service Pack 3 GDR (KB4057115)
Security Update for Microsoft Access 2016 (KB4011665) 32-Bit Edition
Update for Microsoft Office 2016 (KB4011667) 32-Bit Edition
Update for Microsoft Office 2016 (KB3203479) 32-Bit Edition
Update for Microsoft OneNote 2016 (KB4018321) 32-Bit Edition
These updates may require a reboot
Installing updates...
Exception from HRESULT: 0x80240044
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:120 char:5
$InstallationResult = $Installer.Install()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : OperationStopped: (:) [], COMException
- FullyQualifiedErrorId : System.Runtime.InteropServices.COMException
Installation Result:
Reboot Required:
Listing of updates installed and individual installation results:
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
Restart Registry Entry Exists - Removing It
No Restart Required
Checking For Windows Updates
Script: C:\WindowsUpdate\WinUpdateScriptV2.ps1
Script User: MTC-MAERSK\sgs035adm
Started: 5/17/2018 11:49:33 PMTitle : Update for Microsoft Publisher 2016 (KB3178696) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Publisher 2016 32-Bit Edition. This update
provides the latest fixes to Microsoft Publisher 2016 32-Bit Edition. Additionally, this update
contains stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueTitle : Security Update for Microsoft Office 2016 (KB4011126) 32-Bit Edition
Description : A security vulnerability exists in Microsoft Office 2016 32-Bit Edition that could allow
arbitrary code to run when a maliciously modified file is opened. This update resolves that
vulnerability.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueTitle : Update Oracle Java JRE, version 8u151, Highly Critical
Description : Made by the Flexera Corporate Software Inspector
csi_product_id:49763
csi_version:8u151
csi_arch:21
csi_package_guid:9e9b7961-9e8d-4643-ad72-79ffae4813ae
csi_creation_date:2017-11-17 15:30:33
SupportUrl :
UninstallationNotes :
RebootRequired : False
EulaAccepted : TrueTitle : Update for Microsoft Office 2016 (KB4011225) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueTitle : Update for Microsoft Office 2016 (KB3178662) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueTitle : Update Oracle Java JRE, version 8u161
Description : Made by the Flexera Corporate Software Inspector
csi_product_id:49763
csi_version:8u161
csi_arch:21
csi_package_guid:27cffc04-dff4-42b5-a9ce-df37b416950b
csi_creation_date:2018-02-09 14:36:48
SupportUrl :
UninstallationNotes :
RebootRequired : False
EulaAccepted : TrueTitle : Security Update for SQL Server 2012 Service Pack 3 GDR (KB4057115)
Description : Security issues have been identified in the SQL Server 2012 Service Pack 3 GDR that could allow
an attacker to compromise your system and gain control over it. You can help protect your
computer by installing this update from Microsoft. After you install this item, you may have to
restart your computer.
SupportUrl : http://support.microsoft.com
UninstallationNotes : This software update can be removed via Add or Remove Programs in Control Panel.
RebootRequired : False
EulaAccepted : TrueTitle : Security Update for Microsoft Access 2016 (KB4011665) 32-Bit Edition
Description : A security vulnerability exists in Microsoft Access 2016 32-Bit Edition that could allow
arbitrary code to run when a maliciously modified file is opened. This update resolves that
vulnerability.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueTitle : Update for Microsoft Office 2016 (KB4011667) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueTitle : Update for Microsoft Office 2016 (KB3203479) 32-Bit Edition
Description : Microsoft has released an update for Microsoft Office 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft Office 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueTitle : Update for Microsoft OneNote 2016 (KB4018321) 32-Bit Edition
Description : Microsoft has released an update for Microsoft OneNote 2016 32-Bit Edition. This update provides
the latest fixes to Microsoft OneNote 2016 32-Bit Edition. Additionally, this update contains
stability and performance improvements.
SupportUrl : https://support.microsoft.com/?LN=en-us
UninstallationNotes : To remove this update, use the Add or Remove Programs item or the Programs and Features item in
Control Panel. For more detailed information about removing updates please see KB903771.
RebootRequired : False
EulaAccepted : TrueStop-Service : Cannot validate argument on parameter 'InputObject'. The argument is null or empty. Provide an argument
that is not null or empty, and then try the command again.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:26 char:30
Stop-Service $script:ServiceName -Force
~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidData: (:) [Stop-Service], ParameterBindingValidationException
- FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.StopServiceCommand
Evaluating Available Updates:
No Updates To Download...
The following updates are downloaded and ready to be installed:Update for Microsoft Publisher 2016 (KB3178696) 32-Bit Edition
Security Update for Microsoft Office 2016 (KB4011126) 32-Bit Edition
Update Oracle Java JRE, version 8u151, Highly Critical
Update for Microsoft Office 2016 (KB4011225) 32-Bit Edition
Update for Microsoft Office 2016 (KB3178662) 32-Bit Edition
Update Oracle Java JRE, version 8u161
Security Update for SQL Server 2012 Service Pack 3 GDR (KB4057115)
Security Update for Microsoft Access 2016 (KB4011665) 32-Bit Edition
Update for Microsoft Office 2016 (KB4011667) 32-Bit Edition
Update for Microsoft Office 2016 (KB3203479) 32-Bit Edition
Update for Microsoft OneNote 2016 (KB4018321) 32-Bit Edition
These updates may require a reboot
Installing updates...
Exception from HRESULT: 0x80240044
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:120 char:5
$InstallationResult = $Installer.Install()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : OperationStopped: (:) [], COMException
- FullyQualifiedErrorId : System.Runtime.InteropServices.COMException
Installation Result:
Reboot Required:
Listing of updates installed and individual installation results:
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\WindowsUpdate\WinUpdateScriptV2.ps1:132 char:9
New-Object -TypeName PSObject -Property @{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
Restart Registry Entry Exists - Removing It
No Restart Required
Checking For Windows Updates
Script: C:\WindowsUpdate\WinUpdateScriptV2.ps1
Script User: domain\username
Started: 5/17/2018 11:55:40 PM
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Did you ever find a solution to this error?
I don't understand part with OpenSSHd service. Why it is needed?