SharpWSUS icon indicating copy to clipboard operation
SharpWSUS copied to clipboard

Does not work on Windows 2016, updates not downloaded so won't be deployed

Open CaledoniaProject opened this issue 2 years ago • 4 comments

I've created a update package with SharpWSUS but on the WSUS server it seems to be non-downloadable, what's wrong?

shot 2023-04-19 at 20 30 43

CaledoniaProject avatar Apr 19 '23 12:04 CaledoniaProject

@CaledoniaProject The problem is that the binary you specified is not copied to the right location - this is a bug in the app. If you look in the update information, you'll see the path being something like

http://hostname:8530/Content/23/1234.exe

However, there's nothing at that URL. What you need to do is manually copy your executable into that directory, for example

C:\Wsus\WsusContent\23\1234.exe

You can find the exact URL by looking into the logfiles:

$(get-eventlog -logname "Application"  -newest 10 -instanceid 364).message

Or with a bit of powershell

[void][reflection.assembly]::LoadwithPartialName(“Microsoft.UpdateServices.Administration”)
$wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer() 
$updates = $wsus.GetUpdates() 
Foreach ($u in $updates){         
(($u.GetInstallableItems() | Select-Object -ExpandProperty Files).FileURI).AbsoluteURI 
}

lorenzog avatar Dec 16 '24 23:12 lorenzog

Just being curious, is C:\Wsus a canonical path designated by Windows or defined by SharpWSUS?

CaledoniaProject avatar Dec 17 '24 01:12 CaledoniaProject

Just being curious, is C:\Wsus a canonical path designated by Windows or defined by SharpWSUS?

It's neither, but it's typically where sysadmins store WSUS database (and content).

lorenzog avatar Dec 18 '24 13:12 lorenzog

@lorenzog I found the file path with powershell get-eventlog command, I copied psexec64.exe to that path.

Image

Now I clicked on Retry Download, and the file is automatically removed, and the status entered Failed again. Do you know what's wrong?

Image

CaledoniaProject avatar Sep 04 '25 05:09 CaledoniaProject