> The get-member cmdlet in PowerShell shows both internal and external methods
> from the internal class.
> The only supported public properties and methods are documented under
> Microsoft.UpdateServices.Administration, and in this case the IUpdateServer
> interface.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wsus...>
> So - the methods you're referring to are internal only methods, and should
> not be called.
>
> You should look at the documentation for the IPublisher interface instead.
> That documentation is currently rather sparse beyond just type of the
> arguments - the semantics aren't there yet. Our writer tells me that there's
> a set of conceptual documentation underway for how to use publishing. It
> will be an extensive set of documentation around the feature.
>
> In the meantime, have a look at this sample for how to publish a .MSP:
http://www.microsoft.com/technet/scriptcenter/scripts/sus/server/susv...>
> Regarding the fact you do get-members and see internal implementation:
> greater support for PowerShell cmdlets and administration of the WSUS server
> from PowerShell is already under consideration for a future update to WSUS,
> but there is no ETA.
>
> --
> Matthew Wetmore
> Developer, WSUS (Windows Server Update Services)
>
> This posting is provided "As Is" with no warranties, and confers no rights.
> Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm>
> "ClaudioG64" <Claudio...[ at ]gmail.com> wrote in message
>
> news:1179523818.468657.5400[ at ]h2g2000hsg.googlegroups.com...
>
> > On May 17, 7:33 pm, "Matthew Wetmore \(MSFT\)"
> > <mat...[ at ]online.microsoft.com> wrote:
> >> The .Internal.BaseApi. namespace is internal implementation, and not
> >> meant
> >> to be called outside of the product.
>
> >> Stick to Microsoft.UpdateServices.Administration, and you'll get
> >> everything
> >> there is.
>
> >> Calling the internal methods is not supported, and you can very easily
> >> foul
> >> up your server - plus there's absolutely no guarantee that the methods
> >> will
> >> be supported/work the same after even a patch.
>
> >> Check out the Windows Update script repository for some server PowerShell
> >> API sample
> >> scripts:
http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mf...>
> >> --
> >> Matthew Wetmore
> >> Developer, WSUS (Windows Server Update Services)
>
> >> This posting is provided "As Is" with no warranties, and confers no
> >> rights.
> >> Use of included script samples are subject to the terms specified
> >> at
http://www.microsoft.com/info/cpyright.htm>
> >> "Winfried Sonntag [MVP]" <Winfried.Sonn...[ at ]gmx.de> wrote in
> >> messagenews:1r86qaiju52e1$.dlg[ at ]ID-163725.user.individual.de...
>
> >> > ClaudioG64 schrieb:
>
> >> >> I'm trying to write some Powershell scripts to manage WSUS 3.0.
>
> >> >> I've noticed two new methods of the
> >> >> Microsoft.UpdateServices.Internal.BaseApi.UpdateServer class:
> >> >> ExportUpdates and ImportUpdates. They are not documented on the MSDN
> >> >> (or am I drunk ?).
>
> >> > What's New in Windows Server Update Services 3.0 API:
> >> >
http://msdn2.microsoft.com/en-us/library/aa348173.aspx>
> >> > Winfried
> >> > --
> >> >
http://www.microsoft.com/germany/windowsserver2003/technologien/updat...> >> >
http://www.wsuswiki.com/Home>
> > Matthew,
> > I didn't call any internal/undocumented method ... it's just how the
> > object advertise itself when queried with the Powershell Get-member
> > cmdlet.
>
> > $wsusrv =
> > [Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer()
> > $wsusrv | get-member
>
> > It prints:
> > TypeName: Microsoft.UpdateServices.Internal.BaseApi.UpdateServer
>
> > In the same list you'll find the two methods I'm talking about.
>
> > If you then run something like:
>
> > $wsusrv.ExportUpdates('C:\WSUS\Export.cab','C:\WSUS\Export.xml')
>
> > it runs and generates the metadata cab and log file, but how to use
> > those with ImportUpdates ?
> > Anybody from the WSUS team can clarify ?
>
> > Thanks,
> > Claudio