forked from proxb/PoshWSUS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Get-PSWSUSSyncUpdateCategories.ps1
38 lines (33 loc) · 1.36 KB
/
Get-PSWSUSSyncUpdateCategories.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
function Get-PoshWSUSSyncUpdateCategories {
<#
.SYNOPSIS
Displays update product categories that you will sync from Windows Server Update Services (WSUS).
.DESCRIPTION
Displays update product categories that you will sync from Windows Server Update Services (WSUS).
.NOTES
Name: Get-PoshWSUSSyncUpdateCategories
Author: Dubinsky Evgeny
DateCreated: 10MAY2013
.EXAMPLE
Get-PoshWSUSSyncUpdateCategories
Type Id Title UpdateSource ArrivalDate
---- -- ----- ------------ -----------
Product 558f4bc3-4827-49e... Windows XP MicrosoftUpdate 29.11.2009 9:48:01
Description
-----------
This command will get list of categories that enabled and will sync with Windows Server Update Services (WSUS).
#>
[cmdletbinding(DefaultParameterSetName = 'Null')]
Param ()
Process {
if ($wsus)
{
$wsus.GetSubscription().GetUpdateCategories()
}
else
{
Write-Warning "Use Connect-PSWSUSServer to establish connection with your Windows Update Server"
Break
}
}
}