This repository has been archived by the owner on Nov 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathSCCM.psm1
712 lines (610 loc) · 21 KB
/
SCCM.psm1
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
<#
.SYNOPSIS
Command line interface for an assortment of SCCM operations.
.DESCRIPTION
The functions in this module provide a command line and scripting interface for automating
management of SCCM environments.
.NOTES
File Name : SCCM.psm1
Author : Andre Bocchini <[email protected]>
.LINK
https://github.com/andrebocchini/SCCM-Powershell-Automation-Module
#>
<#
.SYNOPSIS
Attempts to discover the local computer's site provider.
.DESCRIPTION
When a user does not specify a site provider for a function that requires that information, we call this
code to try to determine who the provider is automatically. If we cannot find it, we throw an exception.
#>
Function Get-SCCMSiteProvider {
$ErrorActionPreference = "Stop"
try {
# We need to find this client's management point
$ccmAuthorityInfo = Get-WMIObject -Namespace "root\ccm" -Class "CCM_Authority"
foreach($item in $ccmAuthorityInfo) {
if($item.__CLASS -eq "SMS_Authority") {
$currentManagementPoint = $item.CurrentManagementPoint
}
}
# Now we ask the management point for the site provider
if($currentManagementPoint) {
$providerLocations = Get-WMIObject -ComputerName $currentManagementPoint -Namespace "root\sms" -Query "Select * From SMS_ProviderLocation"
foreach($location in $providerLocations) {
if($location.ProviderForLocalSite) {
return $location.Machine
}
}
}
} catch {
Throw "Unable to determine site provider"
} finally{
$ErrorActionPreference = "Continue"
}
}
<#
.SYNOPSIS
Attempts to discover the local computer's site code.
.DESCRIPTION
When a user does not specify a site code for a function that requires that information, we call this code
to try to determine what the code is automatically. If we cannot find it, we throw an exception.
#>
Function Get-SCCMSiteCode {
$ErrorActionPreference = "Stop"
try {
# We need to find this client's management point
$ccmAuthorityInfo = Get-WMIObject -Namespace "root\ccm" -Class "CCM_Authority"
foreach($item in $ccmAuthorityInfo) {
if($item.__CLASS -eq "SMS_Authority") {
$currentManagementPoint = $item.CurrentManagementPoint
}
}
# Now we ask the management point for the site code
if($currentManagementPoint) {
$providerLocations = Get-WMIObject -ComputerName $currentManagementPoint -Namespace "root\sms" -Query "Select * From SMS_ProviderLocation"
foreach($location in $providerLocations) {
if($location.ProviderForLocalSite) {
return $location.SiteCode
}
}
}
} catch {
Throw "Unable to determine site code"
} finally{
$ErrorActionPreference = "Continue"
}
}
<#
.SYNOPSIS
Creates a recurring SCCM interval schedule token.
.DESCRIPTION
Creates a recurring SCCM interval schedule token.
.PARAMETER siteProvider
The name of the site provider.
.PARAMETER siteCode
The 3 character site code.
.PARAMETER dayDuration
The number of days in the interval.
.PARAMETER daySpan
The number of days spanning the interval. Range 0-31.
.PARAMETER hourDuration
The number of hours in the interval. Range is 0-23.
.PARAMETER hourSpan
Number of hours spanning intervals. Range is 0-23.
.PARAMETER isGmt
Determines whether the schedule time is based on GMT.
.PARAMETER minuteDuration
The number of minutes in the interval. Range is 0-59.
.PARAMETER minuteSpan
Number of minutes spanning intervals. Range is 0-59.
.PARAMETER startTime
The time and date when the interval will be available.
.LINK
http://msdn.microsoft.com/en-us/library/cc145924.aspx
.LINK
http://msdn.microsoft.com/en-us/library/cc146489.aspx
#>
Function New-SCCMRecurIntervalScheduleToken {
[CmdletBinding()]
param(
[string]
$siteProvider,
[string]
$siteCode,
[parameter(Position=0)]
[ValidateScript( { $_ -gt 0 } )]
[int]
$dayDuration = 0,
[parameter(Position=1)]
[ValidateRange(0,31)]
[int]
$daySpan = 0,
[parameter(Position=2)]
[ValidateRange(0,23)]
[int]
$hourDuration = 0,
[parameter(Position=3)]
[ValidateRange(0,23)]
[int]
$hourSpan = 0,
[parameter(Position=4)]
[boolean]
$isGmt = 0,
[parameter(Position=5)]
[ValidateRange(0,59)]
[int]
$minuteDuration = 0,
[parameter(Position=6)]
[ValidateRange(0,59)]
[int]
$minuteSpan = 0,
[parameter(Mandatory=$true, Position=7)]
[DateTime]
$startTime
)
if(!($PSBoundParameters) -or !($PSBoundParameters.siteProvider)) {
$siteProvider = Get-SCCMSiteProvider
}
if(!($PSBoundParameters) -or !($PSBoundParameters.siteCode)) {
$siteCode = Get-SCCMSiteCode
}
$scheduleToken = ([WMIClass]("\\$siteProvider\root\sms\site_" + "$siteCode" + ":SMS_ST_RecurInterval")).CreateInstance()
if($scheduleToken) {
$scheduleToken.DayDuration = $dayDuration
$scheduleToken.DaySpan = $daySpan
$scheduleToken.HourDuration = $hourDuration
$scheduleToken.HourSpan = $hourSpan
$scheduleToken.IsGMT = $isGmt
$scheduleToken.MinuteDuration = $minuteDuration
$scheduleToken.MinuteSpan = $minuteSpan
$scheduleToken.StartTime = (Convert-DateToSCCMDate $startTime)
return $scheduleToken
} else {
Throw "Unable to create a new recurring interval schedule token"
}
}
<#
.SYNOPSIS
Creates a non recurring SCCM interval schedule token.
.DESCRIPTION
Creates a non recurring SCCM interval schedule token.
.PARAMETER siteProvider
The name of the site provider.
.PARAMETER siteCode
The 3 character site code.
.PARAMETER dayDuration
The number of days in the interval.
.PARAMETER hourDuration
The number of hours in the interval. Range is 0-23.
.PARAMETER isGmt
Determines whether the schedule time is based on GMT.
.PARAMETER minuteDuration
The number of minutes in the interval. Range is 0-59.
.PARAMETER startTime
The time and date when the interval will be available.
.LINK
http://msdn.microsoft.com/en-us/library/cc145924.aspx
.LINK
http://msdn.microsoft.com/en-us/library/cc143487.aspx
#>
Function New-SCCMNonRecurringScheduleToken {
[CmdletBinding()]
param(
[string]
$siteProvider,
[string]
$siteCode,
[parameter(Position=0)]
[ValidateScript( { $_ -gt 0 } )]
[int]
$dayDuration = 0,
[parameter(Position=1)]
[ValidateRange(0,23)]
[int]
$hourDuration = 0,
[parameter(Position=2)]
[boolean]
$isGmt = 0,
[parameter(Position=3)]
[ValidateRange(0,59)]
[int]
$minuteDuration = 0,
[parameter(Mandatory=$true, Position=4)]
[DateTime]
$startTime
)
if(!($PSBoundParameters) -or !($PSBoundParameters.siteProvider)) {
$siteProvider = Get-SCCMSiteProvider
}
if(!($PSBoundParameters) -or !($PSBoundParameters.siteCode)) {
$siteCode = Get-SCCMSiteCode
}
$scheduleToken = ([WMIClass]("\\$siteProvider\root\sms\site_" + "$siteCode" + ":SMS_ST_NonRecurring")).CreateInstance()
if($scheduleToken) {
$scheduleToken.DayDuration = $dayDuration
$scheduleToken.HourDuration = $hourDuration
$scheduleToken.IsGMT = $isGmt
$scheduleToken.MinuteDuration = $minuteDuration
$scheduleToken.StartTime = (Convert-DateToSCCMDate $startTime)
return $scheduleToken
} else {
Throw "Unable to create a new non-recurring interval schedule token"
}
}
<#
.SYNOPSIS
Creates a recurring schedule token that happens on specific days of the month at specific monthly intervals.
.DESCRIPTION
Creates a recurring schedule token that happens on specific days of the month at specific monthly intervals.
.PARAMETER siteProvider
The name of the site provider.
.PARAMETER siteCode
The 3 character site code.
.PARAMETER dayDuration
The number of days in the interval.
.PARAMETER forNumberOfMonths
Number of months in the interval. Range is 1-12.
.PARAMETER hourDuration
The number of hours in the interval. Range is 0-23.
.PARAMETER isGmt
Determines whether the schedule time is based on GMT.
.PARAMETER minuteDuration
The number of minutes in the interval. Range is 0-59.
.PARAMETER monthDay
Day of the month when the event happens. Range is 0-31 with 0 indicating the last day of the month.
.PARAMETER startTime
The time and date when the interval will be available.
.LINK
http://msdn.microsoft.com/en-us/library/cc145924.aspx
.LINK
http://msdn.microsoft.com/en-us/library/cc146724.aspx
#>
Function New-SCCMRecurMonthlyByDateScheduleToken {
[CmdletBinding()]
param(
[string]
$siteProvider,
[string]
$siteCode,
[parameter(Position=0)]
[ValidateScript( { $_ -gt 0 } )]
[int]
$dayDuration = 0,
[parameter(Position=1)]
[ValidateRange(1,12)]
[int]
$forNumberofMonths = 0,
[parameter(Position=2)]
[ValidateRange(0,23)]
[int]
$hourDuration = 0,
[parameter(Position=3)]
[boolean]
$isGmt = 0,
[parameter(Position=4)]
[ValidateRange(0,59)]
[int]
$minuteDuration = 0,
[parameter(Position=5)]
[ValidateRange(0,31)]
[int]
$monthDay = 0,
[parameter(Mandatory=$true, Position=6)]
[DateTime]
$startTime
)
if(!($PSBoundParameters) -or !($PSBoundParameters.siteProvider)) {
$siteProvider = Get-SCCMSiteProvider
}
if(!($PSBoundParameters) -or !($PSBoundParameters.siteCode)) {
$siteCode = Get-SCCMSiteCode
}
$scheduleToken = ([WMIClass]("\\$siteProvider\root\sms\site_" + "$siteCode" + ":SMS_ST_RecurMonthlyByDate")).CreateInstance()
if($scheduleToken) {
$scheduleToken.DayDuration = $dayDuration
$scheduleToken.ForNumberofMonths = $forNumberofMonths
$scheduleToken.HourDuration = $hourDuration
$scheduleToken.IsGMT = $isGmt
$scheduleToken.MinuteDuration = $minuteDuration
$scheduleToken.MonthDay = $monthDay
$scheduleToken.StartTime = (Convert-DateToSCCMDate $startTime)
return $scheduleToken
} else {
Throw "Unable to create a new monthly-by-date recurring interval schedule token"
}
}
<#
.SYNOPSIS
Creates a recurring schedule token that happens on specific days of the week at specific monthly intervals.
.DESCRIPTION
Creates a recurring schedule token that happens on specific days of the week at specific monthly intervals.
.PARAMETER siteProvider
The name of the site provider.
.PARAMETER siteCode
The 3 character site code.
.PARAMETER day
The day of the month when the event happens.
.PARAMETER dayDuration
The number of days in the interval.
.PARAMETER forNumberOfMonths
Number of months in the interval. Range is 1-12.
.PARAMETER hourDuration
The number of hours in the interval. Range is 0-23.
.PARAMETER isGmt
Determines whether the schedule time is based on GMT.
.PARAMETER minuteDuration
The number of minutes in the interval. Range is 0-59.
.PARAMETER startTime
The time and date when the interval will be available.
.PARAMETER weekOrder
The week of the month when the event happens. Range is 0-4.
0 - LAST
1 - FIRST
2 - SECOND
3 - THIRD
4 - FOURTH
.LINK
http://msdn.microsoft.com/en-us/library/cc144566.aspx
.LINK
http://msdn.microsoft.com/en-us/library/cc146724.aspx
#>
Function New-SCCMRecurMonthlyByWeekdayScheduleToken {
[CmdletBinding()]
param(
[string]
$siteProvider,
[string]
$siteCode,
[parameter(Position=0)]
[ValidateRange(1,7)]
[int]
$day = 0,
[parameter(Position=1)]
[ValidateScript( { $_ -gt 0 } )]
[int]
$dayDuration = 0,
[parameter(Position=2)]
[ValidateRange(1,12)]
[int]
$forNumberofMonths = 0,
[parameter(Position=3)]
[ValidateRange(0,23)]
[int]
$hourDuration = 0,
[parameter(Position=4)]
[boolean]
$isGmt = 0,
[parameter(Position=5)]
[ValidateRange(0,59)]
[int]
$minuteDuration = 0,
[parameter(Mandatory=$true, Position=6)]
[DateTime]
$startTime,
[parameter(Position=7)]
[ValidateRange(0,4)]
[int]
$weekOrder = 0
)
if(!($PSBoundParameters) -or !($PSBoundParameters.siteProvider)) {
$siteProvider = Get-SCCMSiteProvider
}
if(!($PSBoundParameters) -or !($PSBoundParameters.siteCode)) {
$siteCode = Get-SCCMSiteCode
}
$scheduleToken = ([WMIClass]("\\$siteProvider\root\sms\site_" + "$siteCode" + ":SMS_ST_RecurMonthlyByWeekday")).CreateInstance()
if($scheduleToken) {
$scheduleToken.Day = $day
$scheduleToken.DayDuration = $dayDuration
$scheduleToken.ForNumberofMonths = $forNumberofMonths
$scheduleToken.HourDuration = $hourDuration
$scheduleToken.IsGMT = $isGmt
$scheduleToken.MinuteDuration = $minuteDuration
$scheduleToken.StartTime = (Convert-DateToSCCMDate $startTime)
$scheduleToken.WeekOrder = $weekOrder
return $scheduleToken
} else {
Throw "Unable to create a new monthly-by-weekday recurring interval schedule token"
}
}
<#
.SYNOPSIS
Creates a recurring schedule token that happens on a weekly interval.
.DESCRIPTION
Creates a recurring schedule token that happens on a weekly interval.
.PARAMETER siteProvider
The name of the site provider.
.PARAMETER siteCode
The 3 character site code.
.PARAMETER day
The day of the week when the event happens.
.PARAMETER dayDuration
The number of days in the interval.
.PARAMETER forNumberOfWeeks
Number of weeks for recurrence. Range is 1-4.
.PARAMETER hourDuration
The number of hours in the interval. Range is 0-23.
.PARAMETER isGmt
Determines whether the schedule time is based on GMT.
.PARAMETER minuteDuration
The number of minutes in the interval. Range is 0-59.
.PARAMETER startTime
The time and date when the interval will be available.
.LINK
http://msdn.microsoft.com/en-us/library/cc146527.aspx
.LINK
http://msdn.microsoft.com/en-us/library/cc146724.aspx
#>
Function New-SCCMRecurWeeklyScheduleToken {
[CmdletBinding()]
param(
[string]
$siteProvider,
[string]
$siteCode,
[parameter(Position=0)]
[ValidateRange(1,7)]
[int]
$day = 0,
[parameter(Position=1)]
[ValidateScript( { $_ -gt 0 } )]
[int]
$dayDuration = 0,
[parameter(Position=2)]
[ValidateRange(1,4)]
[int]
$forNumberofWeeks = 0,
[parameter(Position=3)]
[ValidateRange(0,23)]
[int]
$hourDuration = 0,
[parameter(Position=4)]
[boolean]
$isGmt = 0,
[parameter(Position=5)]
[ValidateRange(0,59)]
[int]
$minuteDuration = 0,
[parameter(Mandatory=$true, Position=6)]
[DateTime]
$startTime
)
if(!($PSBoundParameters) -or !($PSBoundParameters.siteProvider)) {
$siteProvider = Get-SCCMSiteProvider
}
if(!($PSBoundParameters) -or !($PSBoundParameters.siteCode)) {
$siteCode = Get-SCCMSiteCode
}
$scheduleToken = ([WMIClass]("\\$siteProvider\root\sms\site_" + "$siteCode" + ":SMS_ST_RecurWeekly")).CreateInstance()
if($scheduleToken) {
$scheduleToken.Day = $day
$scheduleToken.DayDuration = $dayDuration
$scheduleToken.ForNumberofWeeks = $forNumberofWeeks
$scheduleToken.HourDuration = $hourDuration
$scheduleToken.IsGMT = $isGmt
$scheduleToken.MinuteDuration = $minuteDuration
$scheduleToken.StartTime = (Convert-DateToSCCMDate $startTime)
return $scheduleToken
} else {
Throw "Unable to create a new weekly recurring interval schedule token"
}
}
<#
.SYNOPSIS
Utility function to convert DMTF date strings into something readable and usable by PowerShell.
.DESCRIPTION
This function exists for convenience so users of the module do not have to try to figure out, if they are not familiar with it, ways
to convert DMTF date strings into something readable.
#>
Function Convert-SCCMDateToDate {
[CmdletBinding()]
param (
[parameter(Mandatory=$true, ValueFromPipeline=$true)]
[string]
$date
)
[System.Management.ManagementDateTimeconverter]::ToDateTime($date);
}
<#
.SYNOPSIS
Utility function to convert PowerShell date strings into DMTF dates.
.DESCRIPTION
This function exists for convenience so users of the module do not have to try to figure out, if they are not familiar with it, ways
to convert PowerShell date strings into DMTF dates.
.PARAMETER date
The date string to be converted to a DMTF date.
.EXAMPLE
Convert-DateToSCCMDate $(Get-Date)
Description
-----------
This will convert the current date and time into a DMTF date string that SCCM understands.
#>
Function Convert-DateToSCCMDate {
[CmdletBinding()]
param (
[parameter(Mandatory=$true, ValueFromPipeline=$true)]
[string]
$date
)
[System.Management.ManagementDateTimeconverter]::ToDMTFDateTime($date)
}
Set-Alias -Name "gsa" -Value Get-SCCMAdvertisement
Set-Alias -Name "gscol" -Value Get-SCCMCollection
Set-Alias -Name "gsc" -Value Get-SCCMComputer
Set-Alias -Name "gsdist" -Value Get-SCCMDistributionPoints
Set-Alias -Name "gsf" -Value Get-SCCMFolder
Set-Alias -Name "gspk" -Value Get-SCCMPackage
Set-Alias -Name "gspg" -Value Get-SCCMProgram
Export-ModuleMember Add-SCCMComputerToCollection
Export-ModuleMember Add-SCCMPackageToDistributionPoint
Export-ModuleMember Clear-SCCMLastPxeAdvertisement
Export-ModuleMember Convert-DateToSCCMDate
Export-ModuleMember Convert-SCCMDateToDate
Export-ModuleMember Get-SCCMAdvertisement -Alias "gsa"
Export-ModuleMember Get-SCCMAdvertisementAssignedSchedule
Export-ModuleMember Get-SCCMAdvertisementsForCollection
Export-ModuleMember Get-SCCMAdvertisementsForComputer
Export-ModuleMember Get-SCCMAdvertisementsForPackage
Export-ModuleMember Get-SCCMAdvertisementStatusForComputer
Export-ModuleMember Get-SCCMClientAdvertisementScheduleId
Export-ModuleMember Get-SCCMClientAssignedSite
Export-ModuleMember Get-SCCMClientCacheSize
Export-ModuleMember Get-SCCMClientSoftwareDistributionHistory
Export-ModuleMember Get-SCCMCollection -Alias "gscol"
Export-ModuleMember Get-SCCMCollectionMembers
Export-ModuleMember Get-SCCMCollectionRefreshSchedule
Export-ModuleMember Get-SCCMCollectionsForComputer
Export-ModuleMember Get-SCCMCollectionVariables
Export-ModuleMember Get-SCCMComputer -Alias "gsc"
Export-ModuleMember Get-SCCMComputerVariables
Export-ModuleMember Get-SCCMDistributionPoints -Alias "gsdist"
Export-ModuleMember Get-SCCMFolder -Alias "gsf"
Export-ModuleMember Get-SCCMMaintenanceWindows
Export-ModuleMember Get-SCCMMaintenanceWindowSchedules
Export-ModuleMember Get-SCCMPackage -Alias "gspk"
Export-ModuleMember Get-SCCMProgram -Alias "gspg"
Export-ModuleMember Get-SCCMProgramSupportedPlatforms
Export-ModuleMember Get-SCCMSiteCode
Export-ModuleMember Get-SCCMSiteProvider
Export-ModuleMember Get-SCCMSupportedPlatforms
Export-ModuleMember Invoke-SCCMClientAction
Export-ModuleMember Invoke-SCCMClientSchedule
Export-ModuleMember Move-SCCMAdvertisementToFolder
Export-ModuleMember Move-SCCMFolder
Export-ModuleMember Move-SCCMPackageToFolder
Export-ModuleMember New-SCCMAdvertisement
Export-ModuleMember New-SCCMCollectionVariable
Export-ModuleMember New-SCCMComputer
Export-ModuleMember New-SCCMComputerVariable
Export-ModuleMember New-SCCMFolder
Export-ModuleMember New-SCCMMaintenanceWindow
Export-ModuleMember New-SCCMNonRecurringScheduleToken
Export-ModuleMember New-SCCMPackage
Export-ModuleMember New-SCCMProgram
Export-ModuleMember New-SCCMRecurIntervalScheduleToken
Export-ModuleMember New-SCCMRecurMonthlyByDateScheduleToken
Export-ModuleMember New-SCCMRecurMonthlyByWeekdayScheduleToken
Export-ModuleMember New-SCCMRecurWeeklyScheduleToken
Export-ModuleMember New-SCCMStaticCollection
Export-ModuleMember New-SCCMSupportedPlatform
Export-ModuleMember Remove-SCCMAdvertisement
Export-ModuleMember Remove-SCCMCollection
Export-ModuleMember Remove-SCCMComputer
Export-ModuleMember Remove-SCCMComputerFromCollection
Export-ModuleMember Remove-SCCMFolder
Export-ModuleMember Remove-SCCMPackage
Export-ModuleMember Remove-SCCMPackageFromDistributionPoint
Export-ModuleMember Remove-SCCMProgram
Export-ModuleMember Save-SCCMAdvertisement
Export-ModuleMember Save-SCCMCollection
Export-ModuleMember Save-SCCMFolder
Export-ModuleMember Save-SCCMPackage
Export-ModuleMember Save-SCCMProgram
Export-ModuleMember Set-SCCMAdvertisementAssignedSchedule
Export-ModuleMember Set-SCCMClientAssignedSite
Export-ModuleMember Set-SCCMClientCacheSize
Export-ModuleMember Set-SCCMCollectionMaintenanceWindows
Export-ModuleMember Set-SCCMCollectionRefreshSchedule
Export-ModuleMember Set-SCCMCollectionVariables
Export-ModuleMember Set-SCCMComputerVariables
Export-ModuleMember Set-SCCMProgramSupportedPlatforms