Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CaledoniaProject opened this issue Apr 19, 2023 · 3 comments

Comments

@CaledoniaProject
Copy link

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

@lorenzog
Copy link

@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 
}

@CaledoniaProject
Copy link
Author

CaledoniaProject commented Dec 17, 2024

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

@lorenzog
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants