potatoqualitee / kbupdate

🛡 KB Viewer, Saver, Installer and Uninstaller
MIT License
326 stars 48 forks source link

Offline Patching Errors #203

Open jeff-johnson opened 1 year ago

jeff-johnson commented 1 year ago

Hi,

I'm trying to implement the offline patching use case and am running into an issue in version 2.0.16. When issuing the Install-KbUpdate -ComputerName localhost -AllNeeded -ScanFilePath C:\temp\wsusscn2.cab -RepositoryPath C:\temp\updates command, the module appears to correctly evaluate wsusscn2.cab, but appears to be installing the same patch over (same ID and FileName) and over before throwing errors. If I restart the machine and run the command again, the same thing happens. None of the patches (including kb2894856) are showing as installed. Any suggestions?

ComputerName : localhost
Title        : Security Update for Microsoft Visual C++ 2008 Service Pack 1 Redistributable Package (KB2538243)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Microsoft .NET Framework 4.5.1 on Windows 8.1 and Windows Server 2012 R2 for
               x64-based Systems (KB2894856)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Microsoft .NET Framework 4.5.1 and 4.5.2 on Windows 8.1 and Windows Server 2012 R2
               x64-based Systems (KB2977765)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Microsoft .NET Framework 4.5.1 and 4.5.2 on Windows 8.1 and Windows Server 2012 R2
               x64-based Systems (KB2978126)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Windows Server 2012 R2 (KB3023266)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Windows Server 2012 R2 (KB3019978)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Windows Server 2012 R2 (KB3000483)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Windows Server 2012 R2 (KB3045999)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Windows Server 2012 R2 (KB3045685)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Microsoft .NET Framework 4.5.1 and 4.5.2 on Windows 8.1 and Windows Server 2012 R2
               x64-based Systems (KB3037579)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Microsoft .NET Framework 4.5.1 and 4.5.2 on Windows 8.1 and Windows Server 2012 R2
               x64-based Systems (KB3032663)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Microsoft .NET Framework 4.5.1 and 4.5.2 on Windows 8.1 and Windows Server 2012 R2
               x64-based Systems (KB3023222)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Windows Server 2012 R2 (KB3059317)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Windows Server 2012 R2 (KB3061512)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Windows Server 2012 R2 (KB3046017)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Windows Server 2012 R2 (KB3071756)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Windows Server 2012 R2 (KB3082089)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Windows Server 2012 R2 (KB3084135)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Microsoft .NET Framework 4.5.1 and 4.5.2 on Windows 8.1 and Windows Server 2012 R2
               x64-based Systems (KB3074228)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Microsoft .NET Framework 4.5.1 and 4.5.2 on Windows 8.1 and Windows Server 2012 R2
               x64-based Systems (KB3074548)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Windows Server 2012 R2 (KB3086255)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Windows Server 2012 R2 (KB3081320)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Microsoft .NET Framework 4.5.1 and 4.5.2 on Windows 8.1 and Windows Server 2012 R2
               x64-based Systems (KB3098779)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Microsoft .NET Framework 4.5.1 and 4.5.2 for Windows 8.1 for x64-based Systems
               (KB3097997)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Windows Server 2012 R2 (KB3109103)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Windows Server 2012 R2 (KB3110329)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Windows Server 2012 R2 (KB3133043)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Windows Server 2012 R2 (KB3126434)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Windows Server 2012 R2 (KB3126587)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Windows Server 2012 R2 (KB3139914)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Windows Server 2012 R2 (KB3146723)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Windows Server 2012 R2 (KB3156059)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

ComputerName : localhost
Title        : Security Update for Windows Server 2012 R2 (KB3159398)
ID           : 729a0dcb-df9e-4d02-b603-ed1aee074428
Status       : Install successful
FileName     : vcredist_x64_a7c83077b8a28d409e36316d2d7321fa0ccdb7e8.exe

WARNING: [22:54:24][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:54:26][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:54:29][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:54:31][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:54:34][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:54:36][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:54:39][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:54:41][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:54:44][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:54:47][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:54:49][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:54:51][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:54:54][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:54:56][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:54:59][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:01][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:03][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:06][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:09][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:11][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:14][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:16][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:19][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:21][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:24][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:26][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:29][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:31][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:34][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:36][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:39][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:41][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:43][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:46][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:48][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:51][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:53][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:56][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:55:58][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:01][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:03][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:05][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:08][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:10][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:13][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:15][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:18][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:20][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:23][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:25][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:27][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:30][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:32][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:35][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:37][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:40][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:42][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:45][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:47][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:49][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:52][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:55][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
WARNING: [22:56:57][<ScriptBlock><Process>] Failure on localhost | Index operation failed; the array index evaluated to null.
[22:56:57][<ScriptBlock><Process>] Downloaded files may still exist on your local drive and other servers as well, in the Downloads directory.
[22:56:58][<ScriptBlock><Process>] If you ran this as SYSTEM, the downloads will be in windows\system32\config\systemprofile.
potatoqualitee commented 1 year ago

Thanks for the report, Jeff. This was a confirmed issue in an earlier version. Can you do a Get-Module kbupdate to ensure it's using the reported version?

jeff-johnson commented 1 year ago
Thanks for the reply. I'm showing the following versions for kbupdate and its dependencies: Name Version
kbupdate 2.0.16
kbupdate-library 1.1.15
PSFramework 1.7.249
PSSQLite 1.1.0
NuGet 1.3.3
potatoqualitee commented 1 year ago

That's all correct, thank you!

potatoqualitee commented 1 year ago

Are there files in C:\temp\updates ? Can you paste the sanitized output of Verbose, please?

potatoqualitee commented 1 year ago

Also can you test with the new version, released today? I made a couple of changes tho i dont suspect they'll help.