Scripts/Get-PoshWSUSConfig.ps1
function Get-PoshWSUSConfig { <# .SYNOPSIS Shows WSUS Server config. .DESCRIPTION Gets an IUpdateServerConfiguration that you use to configure the WSUS server. .EXAMPLE Get-PoshWSUSConfig Description ----------- This command will show full list of configuration parameters .OUTPUTS Microsoft.UpdateServices.Internal.BaseApi.UpdateServerConfiguration .NOTES Name: Get-PoshWSUSConfig Author: Dubinsky Evgeny DateCreated: 1DEC2013 .LINK http://blog.itstuff.in.ua/?p=62#Get-PoshWSUSConfig .LINK http://msdn.microsoft.com/en-us/library/microsoft.updateservices.administration.iupdateserver.getconfiguration%28v=vs.85%29.aspx #> [CmdletBinding()] Param ( ) Begin { if($wsus){}#endif else { Write-Warning "Use Connect-PoshWSUSServer for establish connection with your Windows Update Server" Break } } Process { Write-Verbose "Getting WSUS Configuration" $wsus.GetConfiguration() } End{} } |