IPublisher.PublishPackage Method (String, String)

Publishes a new package to the WSUS server.

Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

void PublishPackage (
	string sourcePath,
	string packageDirectoryName
void PublishPackage (
	String sourcePath, 
	String packageDirectoryName
function PublishPackage (
	sourcePath : String, 
	packageDirectoryName : String



Location of the source files to use to copy the InstallableItem InstallPointDirectory.


Optional name to use for the Package directory under the Applications server path. Can be null, in which case the directory name will be the Title_PackageId.

This operation requires WSUS Administrator privileges.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Server 2008 R2
© 2015 Microsoft