forked from proxb/PoshWSUS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGet-PSWSUSConfig.ps1
53 lines (42 loc) · 1.08 KB
/
Get-PSWSUSConfig.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
function Get-PSWSUSConfig {
<#
.SYNOPSIS
Shows WSUS Server config.
.DESCRIPTION
Gets an IUpdateServerConfiguration that you use to configure the WSUS server.
.EXAMPLE
Get-PSWSUSConfig
Description
-----------
This command will show full list of configuration parameters
.OUTPUTS
Microsoft.UpdateServices.Internal.BaseApi.UpdateServerConfiguration
.NOTES
Name: Get-PSWSUSConfig
Author: Dubinsky Evgeny
DateCreated: 1DEC2013
.LINK
http://blog.itstuff.in.ua/?p=62#Get-PSWSUSConfig
.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-PSWSUSServer to establish connection with your Windows Update Server"
Break
}
}
Process
{
Write-Verbose "Getting WSUS Configuration"
$wsus.GetConfiguration()
}
End{}
}