So I'm trying to run the below commands:
$creds = Get-Credential
$session = New-PSSession -ComputerName <computerName> -Credential $creds
Invoke-Command -Session $session -ScriptBlock { Start-Process C:\Windows\System32\msiexec.exe -ArgumentList "/update c:\temp\Exchange2013-KB5000871-x64-en.msp /qn /log c:\temp\logfile.txt" }
And inside the logfile, I see a couple of different errors. Error 1:
Action start 15:52:25: CA_PATCH_OWA_PERMISSION.
1: ExPatchCa: GetProperty: Get property: RunCommandCmdLine (RunCommandCmdLine): C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe "add-PSSnapin -Name Microsoft.Exchange.Management.PowerShell.SnapIn
$exitcode=0
$exserver=Get-ExchangeServer ([Environment]::MachineName) -ErrorVariable exerr 2> $null
if($exerr.count -gt 0)
{
if (($exerr[0].Exception -eq $null)-or($exerr[0].Exception.InnerException -eq $null)-or($exerr[0].Exception.InnerException.ErrorCode -eq 0))
{
$exitcode=5
}
else
{
$exitcode=$exerr[0].Exception.InnerException.ErrorCode
}
}
remove-PSSnapin -Name Microsoft.Exchange.Management.PowerShell.SnapIn
Exit ($exitcode)". (ec: 0x0)
1: ExPatchCa: GetProperty: Get property: RunCommandTimeout (RunCommandTimeout): 300000. (ec: 0x0)
1: ExPatchCa: RunCommand: ExecCommand: exit code: 0x5. timeout: 300000 ms(user set). (ec: 0x0)
1: ExPatchCa: SetProperty: Set property: RunCommandResult: 5. (ec: 0x0)
Action ended 14:43:14: CA_PATCH_OWA_PERMISSION. Return value 1.
Action start 14:43:14: CA_PATCH_OWA_PERMISSION_ERROR.
MSI (s) (48:30) [14:43:14:360]: Product: Microsoft Exchange Server -- The user who's currently logged on doesn't have sufficient permissions to install this package. You need at least Exchange Server Administrator permissions on the current computer to complete this task.
The user who's currently logged on doesn't have sufficient permissions to install this package. You need at least Exchange Server Administrator permissions on the current computer to complete this task.
Action ended 14:43:14: CA_PATCH_OWA_PERMISSION_ERROR. Return value 3.
Action ended 14:43:14: INSTALL. Return value 3.
Error 2:
Property(S): msgInterimIncorrectRollup = Installation cannot continue. The Setup Wizard has determined that this Interim Update is incompatible with the current Microsoft Exchange Server 2013 Cumulative Update 23 configuration.
Property(S): KB5000871 = KB5000871
Property(S): INTERIM_UPDATE_INSTALLED = 4581424
Property(S): _F86B72D172CA4EF3A28E7E64AFB89076 = C:\Windows\Installer\45e3d8.msp
MSI (s) (90:0C) [15:52:43:927]: Product: Microsoft Exchange Server - Update 'Security Update for Exchange Server 2013 Cumulative Update 23 (KB5000871) 15.0.1497.12' could not be installed. Error code 1603. Additional information is available in the log file c:\temp\logfile.txt.
To dispel that I might not be running as a correct user, the logfile.txt does show
Property(S): LogonUser = <user account I ran the Invoke-Command with>
The Interim update showing as supposedly installed (4581424) is not actually installed. I tried installing that update also and it didn't work. I'm trying to install the patch that will indeed work if I run it locally. So the action "CA_PATCH_OWA_PERMISSION" fails because the user account supposedly doesn't have permissions and something about an InterimUpdate being installed that isn't...
As another note, anyone know how to bypass CRL checking from the command line?74347-logfile.txt