PSWindowsUpdate.dll-Help.xml

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
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
<?xml version="1.0" encoding="utf-8"?>
<helpItems schema="maml" xmlns="http://msh">
  <!-- Cmdlet: Set-PSWUSettings -->
  <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10">
    <command:details>
      <command:name>Set-PSWUSettings</command:name>
      <command:verb>Set</command:verb>
      <command:noun>PSWUSettings</command:noun>
      <maml:description>
        <maml:para>Save PSWUSettings.</maml:para>
      </maml:description>
    </command:details>
    <maml:description>
      <maml:para>Use Set-PSWUSettings save PSWindowsUpdate module settings to XML file.</maml:para>
    </maml:description>
    <command:syntax>
      <!-- Parameter set: __AllParameterSets -->
      <command:syntaxItem>
        <maml:name>Set-PSWUSettings</maml:name>
        <!-- Parameter: Credential -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Credential</maml:name>
          <maml:description>
            <maml:para>Specify alternative credential.</maml:para>
          </maml:description>
          <command:parameterValue required="true">PSCredential</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.PSCredential</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: Debuger -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Debuger</maml:name>
          <maml:description>
            <maml:para>Debuger return original exceptions.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: Properties -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Properties</maml:name>
          <maml:description>
            <maml:para>Alternative report message propertie.s</maml:para>
          </maml:description>
          <command:parameterValue required="true">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: SaveAsSystem -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>SaveAsSystem</maml:name>
          <maml:description>
            <maml:para>Invoke-WUJob to save credential as system user</maml:para>
          </maml:description>
          <command:parameterValue required="true">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: SendReport -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>SendReport</maml:name>
          <maml:description>
            <maml:para>Send report email to specific recipients.</maml:para>
            <maml:para>Requires the parameter -PSWUSettings or declare the PSWUSettings.xml file in ModuleBase path.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: SmtpCredential -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>SmtpCredential</maml:name>
          <maml:description>
            <maml:para>Save smtp credential to Credential Manager.</maml:para>
          </maml:description>
          <command:parameterValue required="true">PSCredential</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.PSCredential</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: SmtpEnableSsl -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>SmtpEnableSsl</maml:name>
          <maml:description>
            <maml:para>Save enable ssl to PSWUSettings file.</maml:para>
          </maml:description>
          <command:parameterValue required="true">bool</command:parameterValue>
          <dev:type>
            <maml:name>System.Boolean</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: SmtpFrom -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>SmtpFrom</maml:name>
          <maml:description>
            <maml:para>Save smtp sernder to PSWUSettings file.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: SmtpPort -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>SmtpPort</maml:name>
          <maml:description>
            <maml:para>Save smtp port to PSWUSettings file.</maml:para>
          </maml:description>
          <command:parameterValue required="true">int</command:parameterValue>
          <dev:type>
            <maml:name>System.Int32</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>25</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: SmtpServer -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>SmtpServer</maml:name>
          <maml:description>
            <maml:para>Save smtp server to PSWUSettings file.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: SmtpSubject -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>SmtpSubject</maml:name>
          <maml:description>
            <maml:para>Save alternative message subject to PSWUSettings file.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: SmtpTo -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>SmtpTo</maml:name>
          <maml:description>
            <maml:para>Save smtp recipient to PSWUSettings file.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: Style -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Style</maml:name>
          <maml:description>
            <maml:para>Alternative report message format style.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
      </command:syntaxItem>
    </command:syntax>
    <command:parameters>
      <!-- Parameter: Credential -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>Credential</maml:name>
        <maml:description>
          <maml:para>Specify alternative credential.</maml:para>
        </maml:description>
        <command:parameterValue required="true">PSCredential</command:parameterValue>
        <dev:type>
          <maml:name>System.Management.Automation.PSCredential</maml:name>
          <maml:uri />
        </dev:type>
      </command:parameter>
      <!-- Parameter: SendReport -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>SendReport</maml:name>
        <maml:description>
          <maml:para>Send report email to specific recipients.</maml:para>
          <maml:para>Requires the parameter -PSWUSettings or declare the PSWUSettings.xml file in ModuleBase path.</maml:para>
        </maml:description>
        <command:parameterValue required="true">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
      <!-- Parameter: SmtpServer -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>SmtpServer</maml:name>
        <maml:description>
          <maml:para>Save smtp server to PSWUSettings file.</maml:para>
        </maml:description>
        <command:parameterValue required="true">string</command:parameterValue>
        <dev:type>
          <maml:name>System.String</maml:name>
          <maml:uri />
        </dev:type>
      </command:parameter>
      <!-- Parameter: SmtpPort -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>SmtpPort</maml:name>
        <maml:description>
          <maml:para>Save smtp port to PSWUSettings file.</maml:para>
        </maml:description>
        <command:parameterValue required="true">int</command:parameterValue>
        <dev:type>
          <maml:name>System.Int32</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>25</dev:defaultValue>
      </command:parameter>
      <!-- Parameter: SmtpEnableSsl -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>SmtpEnableSsl</maml:name>
        <maml:description>
          <maml:para>Save enable ssl to PSWUSettings file.</maml:para>
        </maml:description>
        <command:parameterValue required="true">bool</command:parameterValue>
        <dev:type>
          <maml:name>System.Boolean</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
      <!-- Parameter: SmtpCredential -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>SmtpCredential</maml:name>
        <maml:description>
          <maml:para>Save smtp credential to Credential Manager.</maml:para>
        </maml:description>
        <command:parameterValue required="true">PSCredential</command:parameterValue>
        <dev:type>
          <maml:name>System.Management.Automation.PSCredential</maml:name>
          <maml:uri />
        </dev:type>
      </command:parameter>
      <!-- Parameter: SmtpTo -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>SmtpTo</maml:name>
        <maml:description>
          <maml:para>Save smtp recipient to PSWUSettings file.</maml:para>
        </maml:description>
        <command:parameterValue required="true">string</command:parameterValue>
        <dev:type>
          <maml:name>System.String</maml:name>
          <maml:uri />
        </dev:type>
      </command:parameter>
      <!-- Parameter: SmtpFrom -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>SmtpFrom</maml:name>
        <maml:description>
          <maml:para>Save smtp sernder to PSWUSettings file.</maml:para>
        </maml:description>
        <command:parameterValue required="true">string</command:parameterValue>
        <dev:type>
          <maml:name>System.String</maml:name>
          <maml:uri />
        </dev:type>
      </command:parameter>
      <!-- Parameter: SmtpSubject -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>SmtpSubject</maml:name>
        <maml:description>
          <maml:para>Save alternative message subject to PSWUSettings file.</maml:para>
        </maml:description>
        <command:parameterValue required="true">string</command:parameterValue>
        <dev:type>
          <maml:name>System.String</maml:name>
          <maml:uri />
        </dev:type>
      </command:parameter>
      <!-- Parameter: Properties -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>Properties</maml:name>
        <maml:description>
          <maml:para>Alternative report message propertie.s</maml:para>
        </maml:description>
        <command:parameterValue required="true">string</command:parameterValue>
        <dev:type>
          <maml:name>System.String</maml:name>
          <maml:uri />
        </dev:type>
      </command:parameter>
      <!-- Parameter: Style -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>Style</maml:name>
        <maml:description>
          <maml:para>Alternative report message format style.</maml:para>
        </maml:description>
        <command:parameterValue required="true">string</command:parameterValue>
        <dev:type>
          <maml:name>System.String</maml:name>
          <maml:uri />
        </dev:type>
      </command:parameter>
      <!-- Parameter: SaveAsSystem -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>SaveAsSystem</maml:name>
        <maml:description>
          <maml:para>Invoke-WUJob to save credential as system user</maml:para>
        </maml:description>
        <command:parameterValue required="true">string</command:parameterValue>
        <dev:type>
          <maml:name>System.String</maml:name>
          <maml:uri />
        </dev:type>
      </command:parameter>
      <!-- Parameter: Debuger -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>Debuger</maml:name>
        <maml:description>
          <maml:para>Debuger return original exceptions.</maml:para>
        </maml:description>
        <command:parameterValue required="true">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
    </command:parameters>
    <command:inputTypes />
    <command:returnValues />
    <command:examples>
      <command:example>
        <maml:title>----------  EXAMPLE 1  ----------</maml:title>
        <dev:code>Set Office 365 as smtp server for PSWindowsUpdate module.

Set-PSWUSettings -SmtpServer smtp.office365.com -SmtpPort 587 -SmtpEnableSsl $true -SmtpSubject "PSWindowsUpdate Report" -SmtpTo mgajda@psmvp.pl -SmtpFrom mgajda@psmvp.pl -SmtpCredential (Get-Credential mgajda@psmvp.pl)</dev:code>
      </command:example>
    </command:examples>
    <maml:relatedLinks>
      <maml:navigationLink>
        <maml:linkText>Author Blog</maml:linkText>
        <maml:uri>http://commandlinegeeks.com/</maml:uri>
      </maml:navigationLink>
    </maml:relatedLinks>
  </command:command>
  <!-- Cmdlet: Get-WindowsUpdate -->
  <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10">
    <command:details>
      <command:name>Get-WindowsUpdate</command:name>
      <command:verb>Get</command:verb>
      <command:noun>WindowsUpdate</command:noun>
      <maml:description>
        <maml:para>Get list of available updates meeting the criteria.</maml:para>
      </maml:description>
    </command:details>
    <maml:description>
      <maml:para>Use Get-WindowsUpdate (aka Get-WUList) cmdlet to get list of available or installed updates meeting specific criteria.</maml:para>
      <maml:para>Use Download-WindowsUpdate alias to get list of updates and download it. Equivalent Get-WindowsUpdate -Download.</maml:para>
      <maml:para>Use Install-WindowsUpdate (aka Get-WUInstall) alias to get list of updates and install it. Equivalent Get-WindowsUpdate -Install.</maml:para>
      <maml:para>Use Hide-WindowsUpdate alias to get list of updates and hide it. Equivalent Get-WindowsUpdate -Hide.</maml:para>
      <maml:para>Use Show-WindowsUpdate (aka UnHide-WindowsUpdate) alias to get list of updates and unhide it. Equivalent Get-WindowsUpdate -Hide:$false.</maml:para>
      <maml:para>There are two types of filtering update: Pre search criteria, Post search criteria.</maml:para>
      <maml:para>- Pre search works on server side, like example: (IsInstalled = 0 and IsHidden = 0 and CategoryIds contains '0fa1201d-4330-4fa8-8ae9-b877473b6441' )</maml:para>
      <maml:para>- Post search work on client side after get the pre-filtered list of updates, like example $KBArticleID -match $Update.KBArticleIDs</maml:para>
      <maml:para>Status info list:\r\n[A|R]DIMHUB\r\nA-IsAccetped\r\nR-IsRejected\r\n D-IsDownloaded\r\n F-DownloadFailed\r\n ?-IsInvoked\r\n I-IsInstalled\r\n F-InstallFailed\r\n ?-IsInvoked\r\n R-RebootRequired\r\n M-IsMandatory\r\n H-IsHidden\r\n U-IsUninstallable\r\n B-IsBeta</maml:para>
    </maml:description>
    <command:syntax>
      <!-- Parameter set: ServiceID -->
      <command:syntaxItem>
        <maml:name>Get-WindowsUpdate</maml:name>
        <!-- Parameter: AcceptAll -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>AcceptAll</maml:name>
          <maml:description>
            <maml:para>Do not ask confirmation for updates. Download or Install all available updates.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: AutoReboot -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>AutoReboot</maml:name>
          <maml:description>
            <maml:para>Do not ask for reboot if it needed.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: AutoSelectOnly -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>AutoSelectOnly</maml:name>
          <maml:description>
            <maml:para>Install only the updates that have status AutoSelectOnWebsites on true.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: AutoSelectOnWebSites -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>AutoSelectOnWebSites</maml:name>
          <maml:description>
            <maml:para>Pre search criteria - native for WUAPI. Finds updates where the AutoSelectOnWebSites property has the specified value.</maml:para>
            <maml:para>"AutoSelectOnWebSites=1" finds updates that are flagged to be automatically selected by Windows Update.</maml:para>
            <maml:para>"AutoSelectOnWebSites=0" finds updates that are not flagged for Automatic Updates.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: BrowseOnly -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>BrowseOnly</maml:name>
          <maml:description>
            <maml:para>Pre search criteria - native for WUAPI. "BrowseOnly=1" finds updates that are considered optional. "BrowseOnly=0" finds updates that are not considered optional.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: Category -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Category</maml:name>
          <maml:description>
            <maml:para>Post search criteria. Finds updates that contain a specified category name (or sets of categories name), such as 'Updates', 'Security Updates', 'Critical Updates', etc...</maml:para>
          </maml:description>
          <command:parameterValue required="true">string[]</command:parameterValue>
          <dev:type>
            <maml:name>System.String[]</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: CategoryIDs -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>CategoryIDs</maml:name>
          <maml:description>
            <maml:para>Pre search criteria - native for WUAPI. Finds updates that belong to a specified category (or sets of UUIDs), such as '0fa1201d-4330-4fa8-8ae9-b877473b6441'.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string[]</command:parameterValue>
          <dev:type>
            <maml:name>System.String[]</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: ComputerName -->
        <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named">
          <maml:name>ComputerName</maml:name>
          <maml:description>
            <maml:para>Specify one or more computer names for remote connection. Interactive remote connection works only for checking updates. For download or install cmdlet creates an Invoke-WUJob task.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string[]</command:parameterValue>
          <dev:type>
            <maml:name>System.String[]</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: Criteria -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Criteria</maml:name>
          <maml:description>
            <maml:para>Pre search criteria - native for WUAPI. Set own string that specifies the search criteria. https://docs.microsoft.com/pl-pl/windows/desktop/api/wuapi/nf-wuapi-iupdatesearcher-search</maml:para>
          </maml:description>
          <command:parameterValue required="true">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: Debuger -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Debuger</maml:name>
          <maml:description>
            <maml:para>Debuger return original exceptions. For additional debug information use $DebugPreference = "Continue"</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: DeploymentAction -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>DeploymentAction</maml:name>
          <maml:description>
            <maml:para>Pre search criteria - native for WUAPI. Finds updates that are deployed for a specific action, such as an installation or uninstallation that the administrator of a server specifies. "DeploymentAction='Installation'" finds updates that are deployed for installation on a destination computer. "DeploymentAction='Uninstallation'" depends on the other query criteria.</maml:para>
            <maml:para>"DeploymentAction='Uninstallation'" finds updates that are deployed for uninstallation on a destination computer. "DeploymentAction='Uninstallation'" depends on the other query criteria.</maml:para>
            <maml:para>If this criterion is not explicitly specified, each group of criteria that is joined to an AND operator implies "DeploymentAction='Installation'".</maml:para>
          </maml:description>
          <command:parameterValue required="true">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: Download -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Download</maml:name>
          <maml:description>
            <maml:para>Get list of updates and download approved updates, but do not install it.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: ForceDownload -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>ForceDownload</maml:name>
          <maml:description>
            <maml:para>Forces the download of updates that are already installed or that cannot be installed. Works only with -Download.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: ForceInstall -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>ForceInstall</maml:name>
          <maml:description>
            <maml:para>A forced installation is an installation in which an update is installed even if the metadata indicates that the update is already installed. Before you use ForceInstall to force an installation, determine whether the update is installed and available. If an update is not installed, a forced installation fails. Works only with -Install.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: Hide -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Hide</maml:name>
          <maml:description>
            <maml:para>Get list of updates and hide/unhide approved updates.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: IgnoreReboot -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>IgnoreReboot</maml:name>
          <maml:description>
            <maml:para>Do not ask for reboot if it needed, but do not reboot automaticaly.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: IgnoreRebootRequired -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>IgnoreRebootRequired</maml:name>
          <maml:description>
            <maml:para>Post search criteria. Finds updates that specifies the restart behavior that not occurs when you install or uninstall the update.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: IgnoreUserInput -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named" aliases="Silent">
          <maml:name>IgnoreUserInput</maml:name>
          <maml:description>
            <maml:para>Post search criteria. Finds updates that the installation or uninstallation of an update can't prompt for user input.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: Install --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Install</maml:name> <maml:description> <maml:para>Get list of updates and install approved updates.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: IsAssigned --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>IsAssigned</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates that are intended for deployment by Automatic Updates. "IsAssigned=1" finds updates that are intended for deployment by Automatic Updates, which depends on the other query criteria.At most, one assigned Windows-based driver update is returned for each local device on a destination computer.</maml:para> <maml:para>"IsAssigned=0" finds updates that are not intended to be deployed by Automatic Updates.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: IsHidden --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>IsHidden</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates that are marked as hidden on the destination computer. Default search criteria is only not hidden upadates.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: IsInstalled --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>IsInstalled</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates that are installed on the destination computer.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: IsPresent --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>IsPresent</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. When set to 1, finds updates that are present on a computer.</maml:para> <maml:para>"IsPresent=1" finds updates that are present on a destination computer.If the update is valid for one or more products, the update is considered present if it is installed for one or more of the products.</maml:para> <maml:para>"IsPresent=0" finds updates that are not installed for any product on a destination computer.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: KBArticleID --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>KBArticleID</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that contain a KBArticleID (or sets of KBArticleIDs), such as 'KB982861'.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: MaxSize --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>MaxSize</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that have MaxDownloadSize less or equal. Size is in Bytes.</maml:para> </maml:description> <command:parameterValue required="true">long</command:parameterValue> <dev:type> <maml:name>System.Int64</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>0</dev:defaultValue> </command:parameter> <!-- Parameter: MinSize --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>MinSize</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that have MaxDownloadSize greater or equal. Size is in Bytes.</maml:para> </maml:description> <command:parameterValue required="true">long</command:parameterValue> <dev:type> <maml:name>System.Int64</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>0</dev:defaultValue> </command:parameter> <!-- Parameter: NotCategory --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>NotCategory</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that not contain a specified category name (or sets of categories name), such as 'Updates', 'Security Updates', 'Critical Updates', etc...</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: NotKBArticleID --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>NotKBArticleID</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that not contain a KBArticleID (or sets of KBArticleIDs), such as 'KB982861'.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: NotSeverity --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>NotSeverity</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that not match part of severity.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: NotTitle --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>NotTitle</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that not match part of title (case sensitive).</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: NotUpdateID --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>NotUpdateID</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates without a specific UUID (or sets of UUIDs), such as '12345678-9abc-def0-1234-56789abcdef0'.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: PSWUSettings --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>PSWUSettings</maml:name> <maml:description> <maml:para>Required parameter for -SendReport.</maml:para> <maml:para>Passes the parameters (as hashtable) necessary to send the report: \r\n@{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25];[Subject="Alternative Subject"];[Properties="Alternative object properties"];[Style="Table|List"]}</maml:para> <maml:para>Send parameters can also be saved to a PSWUSettings.xml file in ModuleBase path: \r\nExport-Clixml @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25]}"</maml:para> </maml:description> <command:parameterValue required="true">Hashtable</command:parameterValue> <dev:type> <maml:name>System.Collections.Hashtable</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: RecurseCycle --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>RecurseCycle</maml:name> <maml:description> <maml:para>Specify number of cycles for check updates after successful update installation or system startup. First run is always main cycle (-RecurseCycle 1 or none). Second (-RecurseCycle 2) and n (-RecurseCycle n) cycle are recursive.</maml:para> </maml:description> <command:parameterValue required="true">int</command:parameterValue> <dev:type> <maml:name>System.Int32</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>0</dev:defaultValue> </command:parameter> <!-- Parameter: RevisionNumber --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>RevisionNumber</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates with a specific RevisionNumber, such as '100'. This criterion must be combined with the UpdateID param.</maml:para> </maml:description> <command:parameterValue required="true">int</command:parameterValue> <dev:type> <maml:name>System.Int32</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>0</dev:defaultValue> </command:parameter> <!-- Parameter: RootCategories --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>RootCategories</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that contain a specified root category name 'Critical Updates', 'Definition Updates', 'Drivers', 'Feature Packs', 'Security Updates', 'Service Packs', 'Tools', 'Update Rollups', 'Updates', 'Upgrades', 'Microsoft'.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: ScheduleJob --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ScheduleJob</maml:name> <maml:description> <maml:para>Specify time when job will start.</maml:para> </maml:description> <command:parameterValue required="true">DateTime</command:parameterValue> <dev:type> <maml:name>System.DateTime</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue> </command:parameter> <!-- Parameter: ScheduleReboot --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ScheduleReboot</maml:name> <maml:description> <maml:para>Specify time when system will be rebooted.</maml:para> </maml:description> <command:parameterValue required="true">DateTime</command:parameterValue> <dev:type> <maml:name>System.DateTime</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue> </command:parameter> <!-- Parameter: SendHistory --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>SendHistory</maml:name> <maml:description> <maml:para>Send install history (Get-WUHistory) report after successful update installation or system startup.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: SendReport --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>SendReport</maml:name> <maml:description> <maml:para>Send report email to specific recipients.</maml:para> <maml:para>Requires the parameter -PSWUSettings or declare the PSWUSettings.xml file (more preferred) in ModuleBase path.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: ServiceID --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ServiceID</maml:name> <maml:description> <maml:para>Use specific Service Manager if it's available.</maml:para>
            <maml:para>Examples Of ServiceID: \r\n \r\n -- Windows Update 9482f4b4-e343-43b6-b170-9a65bc822c77 \r\n -- Microsoft Update 7971f918-a847-4430-9279-4a52d1efe18d \r\n -- Windows Store 117cab2d-82b1-4b5a-a08c-4d62dbee7782 \r\n -- Windows Server Update Service 3da21691-e39d-4da6-8a4b-b43877bcb1b7</maml:para>
          </maml:description>
          <command:parameterValue required="true">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: Severity -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Severity</maml:name>
          <maml:description>
            <maml:para>Post search criteria. Finds updates that match part of severity, such as 'Important', 'Critical', 'Moderate', etc...</maml:para>
          </maml:description>
          <command:parameterValue required="true">string[]</command:parameterValue>
          <dev:type>
            <maml:name>System.String[]</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: ShowPreSearchCriteria -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>ShowPreSearchCriteria</maml:name>
          <maml:description>
            <maml:para>Show choosen search criteria. Only works for pre search criteria.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: Title -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Title</maml:name>
          <maml:description>
            <maml:para>Post search criteria. Finds updates that match part of title (case sensitive), such as '.NET Framework 4'.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: UpdateID -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>UpdateID</maml:name>
          <maml:description>
            <maml:para>Pre search criteria - native for WUAPI. Finds updates with a specific UUID (or sets of UUIDs), such as '12345678-9abc-def0-1234-56789abcdef0'.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string[]</command:parameterValue>
          <dev:type>
            <maml:name>System.String[]</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: UpdateType -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>UpdateType</maml:name>
          <maml:description>
            <maml:para>Pre search criteria - native for WUAPI. Finds updates with a specific type, such as 'Driver' and 'Software'. Default value contains all updates.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: WithHidden -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>WithHidden</maml:name>
          <maml:description>
            <maml:para>Pre search criteria - native for WUAPI. Finds updates that are both hidden and not on the destination computer. Overwrite IsHidden param. Default search criteria is only not hidden upadates.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
      </command:syntaxItem>
      <!-- Parameter set: WindowsUpdate -->
      <command:syntaxItem>
        <maml:name>Get-WindowsUpdate</maml:name>
        <!-- Parameter: AcceptAll -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>AcceptAll</maml:name>
          <maml:description>
            <maml:para>Do not ask confirmation for updates. Download or Install all available updates.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: AutoReboot -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>AutoReboot</maml:name>
          <maml:description>
            <maml:para>Do not ask for reboot if it needed.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: AutoSelectOnly -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>AutoSelectOnly</maml:name>
          <maml:description>
            <maml:para>Install only the updates that have status AutoSelectOnWebsites on true.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: AutoSelectOnWebSites -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>AutoSelectOnWebSites</maml:name>
          <maml:description>
            <maml:para>Pre search criteria - native for WUAPI. Finds updates where the AutoSelectOnWebSites property has the specified value.</maml:para>
            <maml:para>"AutoSelectOnWebSites=1" finds updates that are flagged to be automatically selected by Windows Update.</maml:para>
            <maml:para>"AutoSelectOnWebSites=0" finds updates that are not flagged for Automatic Updates.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: BrowseOnly -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>BrowseOnly</maml:name>
          <maml:description>
            <maml:para>Pre search criteria - native for WUAPI. "BrowseOnly=1" finds updates that are considered optional. "BrowseOnly=0" finds updates that are not considered optional.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: Category -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Category</maml:name>
          <maml:description>
            <maml:para>Post search criteria. Finds updates that contain a specified category name (or sets of categories name), such as 'Updates', 'Security Updates', 'Critical Updates', etc...</maml:para>
          </maml:description>
          <command:parameterValue required="true">string[]</command:parameterValue>
          <dev:type>
            <maml:name>System.String[]</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: CategoryIDs -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>CategoryIDs</maml:name>
          <maml:description>
            <maml:para>Pre search criteria - native for WUAPI. Finds updates that belong to a specified category (or sets of UUIDs), such as '0fa1201d-4330-4fa8-8ae9-b877473b6441'.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string[]</command:parameterValue>
          <dev:type>
            <maml:name>System.String[]</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: ComputerName -->
        <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named">
          <maml:name>ComputerName</maml:name>
          <maml:description>
            <maml:para>Specify one or more computer names for remote connection. Interactive remote connection works only for checking updates. For download or install cmdlet creates an Invoke-WUJob task.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string[]</command:parameterValue>
          <dev:type>
            <maml:name>System.String[]</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: Criteria -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Criteria</maml:name>
          <maml:description>
            <maml:para>Pre search criteria - native for WUAPI. Set own string that specifies the search criteria. https://docs.microsoft.com/pl-pl/windows/desktop/api/wuapi/nf-wuapi-iupdatesearcher-search</maml:para>
          </maml:description>
          <command:parameterValue required="true">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: Debuger -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Debuger</maml:name>
          <maml:description>
            <maml:para>Debuger return original exceptions. For additional debug information use $DebugPreference = "Continue"</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: DeploymentAction -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>DeploymentAction</maml:name>
          <maml:description>
            <maml:para>Pre search criteria - native for WUAPI. Finds updates that are deployed for a specific action, such as an installation or uninstallation that the administrator of a server specifies. "DeploymentAction='Installation'" finds updates that are deployed for installation on a destination computer. "DeploymentAction='Uninstallation'" depends on the other query criteria.</maml:para>
            <maml:para>"DeploymentAction='Uninstallation'" finds updates that are deployed for uninstallation on a destination computer. "DeploymentAction='Uninstallation'" depends on the other query criteria.</maml:para>
            <maml:para>If this criterion is not explicitly specified, each group of criteria that is joined to an AND operator implies "DeploymentAction='Installation'".</maml:para>
          </maml:description>
          <command:parameterValue required="true">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: Download -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Download</maml:name>
          <maml:description>
            <maml:para>Get list of updates and download approved updates, but do not install it.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: ForceDownload -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>ForceDownload</maml:name>
          <maml:description>
            <maml:para>Forces the download of updates that are already installed or that cannot be installed. Works only with -Download.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: ForceInstall -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>ForceInstall</maml:name>
          <maml:description>
            <maml:para>A forced installation is an installation in which an update is installed even if the metadata indicates that the update is already installed. Before you use ForceInstall to force an installation, determine whether the update is installed and available. If an update is not installed, a forced installation fails. Works only with -Install.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: Hide -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Hide</maml:name>
          <maml:description>
            <maml:para>Get list of updates and hide/unhide approved updates.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: IgnoreReboot -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>IgnoreReboot</maml:name>
          <maml:description>
            <maml:para>Do not ask for reboot if it needed, but do not reboot automaticaly.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: IgnoreRebootRequired -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>IgnoreRebootRequired</maml:name>
          <maml:description>
            <maml:para>Post search criteria. Finds updates that specifies the restart behavior that not occurs when you install or uninstall the update.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: IgnoreUserInput -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named" aliases="Silent">
          <maml:name>IgnoreUserInput</maml:name>
          <maml:description>
            <maml:para>Post search criteria. Finds updates that the installation or uninstallation of an update can't prompt for user input.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: Install --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Install</maml:name> <maml:description> <maml:para>Get list of updates and install approved updates.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: IsAssigned --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>IsAssigned</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates that are intended for deployment by Automatic Updates. "IsAssigned=1" finds updates that are intended for deployment by Automatic Updates, which depends on the other query criteria.At most, one assigned Windows-based driver update is returned for each local device on a destination computer.</maml:para> <maml:para>"IsAssigned=0" finds updates that are not intended to be deployed by Automatic Updates.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: IsHidden --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>IsHidden</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates that are marked as hidden on the destination computer. Default search criteria is only not hidden upadates.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: IsInstalled --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>IsInstalled</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates that are installed on the destination computer.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: IsPresent --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>IsPresent</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. When set to 1, finds updates that are present on a computer.</maml:para> <maml:para>"IsPresent=1" finds updates that are present on a destination computer.If the update is valid for one or more products, the update is considered present if it is installed for one or more of the products.</maml:para> <maml:para>"IsPresent=0" finds updates that are not installed for any product on a destination computer.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: KBArticleID --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>KBArticleID</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that contain a KBArticleID (or sets of KBArticleIDs), such as 'KB982861'.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: MaxSize --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>MaxSize</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that have MaxDownloadSize less or equal. Size is in Bytes.</maml:para> </maml:description> <command:parameterValue required="true">long</command:parameterValue> <dev:type> <maml:name>System.Int64</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>0</dev:defaultValue> </command:parameter> <!-- Parameter: MinSize --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>MinSize</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that have MaxDownloadSize greater or equal. Size is in Bytes.</maml:para> </maml:description> <command:parameterValue required="true">long</command:parameterValue> <dev:type> <maml:name>System.Int64</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>0</dev:defaultValue> </command:parameter> <!-- Parameter: NotCategory --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>NotCategory</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that not contain a specified category name (or sets of categories name), such as 'Updates', 'Security Updates', 'Critical Updates', etc...</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: NotKBArticleID --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>NotKBArticleID</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that not contain a KBArticleID (or sets of KBArticleIDs), such as 'KB982861'.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: NotSeverity --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>NotSeverity</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that not match part of severity.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: NotTitle --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>NotTitle</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that not match part of title (case sensitive).</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: NotUpdateID --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>NotUpdateID</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates without a specific UUID (or sets of UUIDs), such as '12345678-9abc-def0-1234-56789abcdef0'.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: PSWUSettings --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>PSWUSettings</maml:name> <maml:description> <maml:para>Required parameter for -SendReport.</maml:para> <maml:para>Passes the parameters (as hashtable) necessary to send the report: \r\n@{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25];[Subject="Alternative Subject"];[Properties="Alternative object properties"];[Style="Table|List"]}</maml:para> <maml:para>Send parameters can also be saved to a PSWUSettings.xml file in ModuleBase path: \r\nExport-Clixml @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25]}"</maml:para> </maml:description> <command:parameterValue required="true">Hashtable</command:parameterValue> <dev:type> <maml:name>System.Collections.Hashtable</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: RecurseCycle --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>RecurseCycle</maml:name> <maml:description> <maml:para>Specify number of cycles for check updates after successful update installation or system startup. First run is always main cycle (-RecurseCycle 1 or none). Second (-RecurseCycle 2) and n (-RecurseCycle n) cycle are recursive.</maml:para> </maml:description> <command:parameterValue required="true">int</command:parameterValue> <dev:type> <maml:name>System.Int32</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>0</dev:defaultValue> </command:parameter> <!-- Parameter: RevisionNumber --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>RevisionNumber</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates with a specific RevisionNumber, such as '100'. This criterion must be combined with the UpdateID param.</maml:para> </maml:description> <command:parameterValue required="true">int</command:parameterValue> <dev:type> <maml:name>System.Int32</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>0</dev:defaultValue> </command:parameter> <!-- Parameter: RootCategories --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>RootCategories</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that contain a specified root category name 'Critical Updates', 'Definition Updates', 'Drivers', 'Feature Packs', 'Security Updates', 'Service Packs', 'Tools', 'Update Rollups', 'Updates', 'Upgrades', 'Microsoft'.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: ScheduleJob --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ScheduleJob</maml:name> <maml:description> <maml:para>Specify time when job will start.</maml:para> </maml:description> <command:parameterValue required="true">DateTime</command:parameterValue> <dev:type> <maml:name>System.DateTime</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue> </command:parameter> <!-- Parameter: ScheduleReboot --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ScheduleReboot</maml:name> <maml:description> <maml:para>Specify time when system will be rebooted.</maml:para> </maml:description> <command:parameterValue required="true">DateTime</command:parameterValue> <dev:type> <maml:name>System.DateTime</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue> </command:parameter> <!-- Parameter: SendHistory --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>SendHistory</maml:name> <maml:description> <maml:para>Send install history (Get-WUHistory) report after successful update installation or system startup.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: SendReport --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>SendReport</maml:name> <maml:description> <maml:para>Send report email to specific recipients.</maml:para> <maml:para>Requires the parameter -PSWUSettings or declare the PSWUSettings.xml file (more preferred) in ModuleBase path.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: Severity --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Severity</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that match part of severity, such as 'Important', 'Critical', 'Moderate', etc...</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: ShowPreSearchCriteria --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ShowPreSearchCriteria</maml:name> <maml:description> <maml:para>Show choosen search criteria. Only works for pre search criteria.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: Title --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Title</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that match part of title (case sensitive), such as '.NET Framework 4'.</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: UpdateID --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>UpdateID</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates with a specific UUID (or sets of UUIDs), such as '12345678-9abc-def0-1234-56789abcdef0'.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: UpdateType --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>UpdateType</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates with a specific type, such as 'Driver' and 'Software'. Default value contains all updates.</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: WindowsUpdate --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>WindowsUpdate</maml:name> <maml:description> <maml:para>Use Microsoft Update Service Manager - '7971f918-a847-4430-9279-4a52d1efe18d'</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: WithHidden --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>WithHidden</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates that are both hidden and not on the destination computer. Overwrite IsHidden param. Default search criteria is only not hidden upadates.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:syntaxItem> <!-- Parameter set: MicrosoftUpdate --> <command:syntaxItem> <maml:name>Get-WindowsUpdate</maml:name> <!-- Parameter: AcceptAll --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>AcceptAll</maml:name> <maml:description> <maml:para>Do not ask confirmation for updates. Download or Install all available updates.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: AutoReboot --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>AutoReboot</maml:name> <maml:description> <maml:para>Do not ask for reboot if it needed.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: AutoSelectOnly --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>AutoSelectOnly</maml:name> <maml:description> <maml:para>Install only the updates that have status AutoSelectOnWebsites on true.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: AutoSelectOnWebSites --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>AutoSelectOnWebSites</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates where the AutoSelectOnWebSites property has the specified value.</maml:para> <maml:para>"AutoSelectOnWebSites=1" finds updates that are flagged to be automatically selected by Windows Update.</maml:para> <maml:para>"AutoSelectOnWebSites=0" finds updates that are not flagged for Automatic Updates.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: BrowseOnly --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>BrowseOnly</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. "BrowseOnly=1" finds updates that are considered optional. "BrowseOnly=0" finds updates that are not considered optional.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: Category --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Category</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that contain a specified category name (or sets of categories name), such as 'Updates', 'Security Updates', 'Critical Updates', etc...</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: CategoryIDs --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>CategoryIDs</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates that belong to a specified category (or sets of UUIDs), such as '0fa1201d-4330-4fa8-8ae9-b877473b6441'.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: ComputerName --> <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named"> <maml:name>ComputerName</maml:name> <maml:description> <maml:para>Specify one or more computer names for remote connection. Interactive remote connection works only for checking updates. For download or install cmdlet creates an Invoke-WUJob task.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Criteria --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Criteria</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Set own string that specifies the search criteria. https://docs.microsoft.com/pl-pl/windows/desktop/api/wuapi/nf-wuapi-iupdatesearcher-search</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Debuger --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Debuger</maml:name> <maml:description> <maml:para>Debuger return original exceptions. For additional debug information use $DebugPreference = "Continue"</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: DeploymentAction --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>DeploymentAction</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates that are deployed for a specific action, such as an installation or uninstallation that the administrator of a server specifies. "DeploymentAction='Installation'" finds updates that are deployed for installation on a destination computer. "DeploymentAction='Uninstallation'" depends on the other query criteria.</maml:para> <maml:para>"DeploymentAction='Uninstallation'" finds updates that are deployed for uninstallation on a destination computer. "DeploymentAction='Uninstallation'" depends on the other query criteria.</maml:para> <maml:para>If this criterion is not explicitly specified, each group of criteria that is joined to an AND operator implies "DeploymentAction='Installation'".</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Download --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Download</maml:name> <maml:description> <maml:para>Get list of updates and download approved updates, but do not install it.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: ForceDownload --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ForceDownload</maml:name> <maml:description> <maml:para>Forces the download of updates that are already installed or that cannot be installed. Works only with -Download.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: ForceInstall --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ForceInstall</maml:name> <maml:description> <maml:para>A forced installation is an installation in which an update is installed even if the metadata indicates that the update is already installed. Before you use ForceInstall to force an installation, determine whether the update is installed and available. If an update is not installed, a forced installation fails. Works only with -Install.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: Hide --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Hide</maml:name> <maml:description> <maml:para>Get list of updates and hide/unhide approved updates.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: IgnoreReboot --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>IgnoreReboot</maml:name> <maml:description> <maml:para>Do not ask for reboot if it needed, but do not reboot automaticaly.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: IgnoreRebootRequired --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>IgnoreRebootRequired</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that specifies the restart behavior that not occurs when you install or uninstall the update.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: IgnoreUserInput --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named" aliases="Silent"> <maml:name>IgnoreUserInput</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that the installation or uninstallation of an update can't prompt for user input.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: Install -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Install</maml:name>
          <maml:description>
            <maml:para>Get list of updates and install approved updates.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: IsAssigned -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>IsAssigned</maml:name>
          <maml:description>
            <maml:para>Pre search criteria - native for WUAPI. Finds updates that are intended for deployment by Automatic Updates. "IsAssigned=1" finds updates that are intended for deployment by Automatic Updates, which depends on the other query criteria.At most, one assigned Windows-based driver update is returned for each local device on a destination computer.</maml:para>
            <maml:para>"IsAssigned=0" finds updates that are not intended to be deployed by Automatic Updates.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: IsHidden -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>IsHidden</maml:name>
          <maml:description>
            <maml:para>Pre search criteria - native for WUAPI. Finds updates that are marked as hidden on the destination computer. Default search criteria is only not hidden upadates.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: IsInstalled -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>IsInstalled</maml:name>
          <maml:description>
            <maml:para>Pre search criteria - native for WUAPI. Finds updates that are installed on the destination computer.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: IsPresent -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>IsPresent</maml:name>
          <maml:description>
            <maml:para>Pre search criteria - native for WUAPI. When set to 1, finds updates that are present on a computer.</maml:para>
            <maml:para>"IsPresent=1" finds updates that are present on a destination computer.If the update is valid for one or more products, the update is considered present if it is installed for one or more of the products.</maml:para>
            <maml:para>"IsPresent=0" finds updates that are not installed for any product on a destination computer.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: KBArticleID -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>KBArticleID</maml:name>
          <maml:description>
            <maml:para>Post search criteria. Finds updates that contain a KBArticleID (or sets of KBArticleIDs), such as 'KB982861'.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string[]</command:parameterValue>
          <dev:type>
            <maml:name>System.String[]</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: MaxSize -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>MaxSize</maml:name>
          <maml:description>
            <maml:para>Post search criteria. Finds updates that have MaxDownloadSize less or equal. Size is in Bytes.</maml:para>
          </maml:description>
          <command:parameterValue required="true">long</command:parameterValue>
          <dev:type>
            <maml:name>System.Int64</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>0</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: MicrosoftUpdate -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>MicrosoftUpdate</maml:name>
          <maml:description>
            <maml:para>Use Windows Update Service Manager - '9482f4b4-e343-43b6-b170-9a65bc822c77'</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: MinSize -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>MinSize</maml:name>
          <maml:description>
            <maml:para>Post search criteria. Finds updates that have MaxDownloadSize greater or equal. Size is in Bytes.</maml:para>
          </maml:description>
          <command:parameterValue required="true">long</command:parameterValue>
          <dev:type>
            <maml:name>System.Int64</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>0</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: NotCategory -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>NotCategory</maml:name>
          <maml:description>
            <maml:para>Post search criteria. Finds updates that not contain a specified category name (or sets of categories name), such as 'Updates', 'Security Updates', 'Critical Updates', etc...</maml:para>
          </maml:description>
          <command:parameterValue required="true">string[]</command:parameterValue>
          <dev:type>
            <maml:name>System.String[]</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: NotKBArticleID -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>NotKBArticleID</maml:name>
          <maml:description>
            <maml:para>Post search criteria. Finds updates that not contain a KBArticleID (or sets of KBArticleIDs), such as 'KB982861'.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string[]</command:parameterValue>
          <dev:type>
            <maml:name>System.String[]</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: NotSeverity -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>NotSeverity</maml:name>
          <maml:description>
            <maml:para>Post search criteria. Finds updates that not match part of severity.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string[]</command:parameterValue>
          <dev:type>
            <maml:name>System.String[]</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: NotTitle -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>NotTitle</maml:name>
          <maml:description>
            <maml:para>Post search criteria. Finds updates that not match part of title (case sensitive).</maml:para>
          </maml:description>
          <command:parameterValue required="true">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: NotUpdateID -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>NotUpdateID</maml:name>
          <maml:description>
            <maml:para>Pre search criteria - native for WUAPI. Finds updates without a specific UUID (or sets of UUIDs), such as '12345678-9abc-def0-1234-56789abcdef0'.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string[]</command:parameterValue>
          <dev:type>
            <maml:name>System.String[]</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: PSWUSettings -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>PSWUSettings</maml:name>
          <maml:description>
            <maml:para>Required parameter for -SendReport.</maml:para>
            <maml:para>Passes the parameters (as hashtable) necessary to send the report: \r\n@{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25];[Subject="Alternative Subject"];[Properties="Alternative object properties"];[Style="Table|List"]}</maml:para>
            <maml:para>Send parameters can also be saved to a PSWUSettings.xml file in ModuleBase path: \r\nExport-Clixml @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25]}"</maml:para>
          </maml:description>
          <command:parameterValue required="
true">Hashtable</command:parameterValue> <dev:type> <maml:name>System.Collections.Hashtable</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: RecurseCycle --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>RecurseCycle</maml:name> <maml:description> <maml:para>Specify number of cycles for check updates after successful update installation or system startup. First run is always main cycle (-RecurseCycle 1 or none). Second (-RecurseCycle 2) and n (-RecurseCycle n) cycle are recursive.</maml:para> </maml:description> <command:parameterValue required="true">int</command:parameterValue> <dev:type> <maml:name>System.Int32</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>0</dev:defaultValue> </command:parameter> <!-- Parameter: RevisionNumber --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>RevisionNumber</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates with a specific RevisionNumber, such as '100'. This criterion must be combined with the UpdateID param.</maml:para> </maml:description> <command:parameterValue required="true">int</command:parameterValue> <dev:type> <maml:name>System.Int32</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>0</dev:defaultValue> </command:parameter> <!-- Parameter: RootCategories --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>RootCategories</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that contain a specified root category name 'Critical Updates', 'Definition Updates', 'Drivers', 'Feature Packs', 'Security Updates', 'Service Packs', 'Tools', 'Update Rollups', 'Updates', 'Upgrades', 'Microsoft'.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: ScheduleJob --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ScheduleJob</maml:name> <maml:description> <maml:para>Specify time when job will start.</maml:para> </maml:description> <command:parameterValue required="true">DateTime</command:parameterValue> <dev:type> <maml:name>System.DateTime</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue> </command:parameter> <!-- Parameter: ScheduleReboot --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ScheduleReboot</maml:name> <maml:description> <maml:para>Specify time when system will be rebooted.</maml:para> </maml:description> <command:parameterValue required="true">DateTime</command:parameterValue> <dev:type> <maml:name>System.DateTime</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue> </command:parameter> <!-- Parameter: SendHistory --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>SendHistory</maml:name> <maml:description> <maml:para>Send install history (Get-WUHistory) report after successful update installation or system startup.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: SendReport --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>SendReport</maml:name> <maml:description> <maml:para>Send report email to specific recipients.</maml:para> <maml:para>Requires the parameter -PSWUSettings or declare the PSWUSettings.xml file (more preferred) in ModuleBase path.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: Severity --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Severity</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that match part of severity, such as 'Important', 'Critical', 'Moderate', etc...</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: ShowPreSearchCriteria --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ShowPreSearchCriteria</maml:name> <maml:description> <maml:para>Show choosen search criteria. Only works for pre search criteria.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: Title --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Title</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that match part of title (case sensitive), such as '.NET Framework 4'.</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: UpdateID --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>UpdateID</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates with a specific UUID (or sets of UUIDs), such as '12345678-9abc-def0-1234-56789abcdef0'.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: UpdateType --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>UpdateType</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates with a specific type, such as 'Driver' and 'Software'. Default value contains all updates.</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: WithHidden --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>WithHidden</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates that are both hidden and not on the destination computer. Overwrite IsHidden param. Default search criteria is only not hidden upadates.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:syntaxItem> </command:syntax> <command:parameters> <!-- Parameter: ComputerName --> <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named"> <maml:name>ComputerName</maml:name> <maml:description> <maml:para>Specify one or more computer names for remote connection. Interactive remote connection works only for checking updates. For download or install cmdlet creates an Invoke-WUJob task.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: SendReport --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>SendReport</maml:name> <maml:description> <maml:para>Send report email to specific recipients.</maml:para> <maml:para>Requires the parameter -PSWUSettings or declare the PSWUSettings.xml file (more preferred) in ModuleBase path.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: PSWUSettings --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>PSWUSettings</maml:name> <maml:description> <maml:para>Required parameter for -SendReport.</maml:para> <maml:para>Passes the parameters (as hashtable) necessary to send the report: \r\n@{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25];[Subject="Alternative Subject"];[Properties="Alternative object properties"];[Style="Table|List"]}</maml:para> <maml:para>Send parameters can also be saved to a PSWUSettings.xml file in ModuleBase path: \r\nExport-Clixml @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25]}"</maml:para>
        </maml:description>
        <command:parameterValue required="true">Hashtable</command:parameterValue>
        <dev:type>
          <maml:name>System.Collections.Hashtable</maml:name>
          <maml:uri />
        </dev:type>
      </command:parameter>
      <!-- Parameter: SendHistory -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>SendHistory</maml:name>
        <maml:description>
          <maml:para>Send install history (Get-WUHistory) report after successful update installation or system startup.</maml:para>
        </maml:description>
        <command:parameterValue required="true">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
      <!-- Parameter: ScheduleJob -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>ScheduleJob</maml:name>
        <maml:description>
          <maml:para>Specify time when job will start.</maml:para>
        </maml:description>
        <command:parameterValue required="true">DateTime</command:parameterValue>
        <dev:type>
          <maml:name>System.DateTime</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue>
      </command:parameter>
      <!-- Parameter: AcceptAll -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>AcceptAll</maml:name>
        <maml:description>
          <maml:para>Do not ask confirmation for updates. Download or Install all available updates.</maml:para>
        </maml:description>
        <command:parameterValue required="true">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
      <!-- Parameter: RecurseCycle -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>RecurseCycle</maml:name>
        <maml:description>
          <maml:para>Specify number of cycles for check updates after successful update installation or system startup. First run is always main cycle (-RecurseCycle 1 or none). Second (-RecurseCycle 2) and n (-RecurseCycle n) cycle are recursive.</maml:para>
        </maml:description>
        <command:parameterValue required="true">int</command:parameterValue>
        <dev:type>
          <maml:name>System.Int32</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>0</dev:defaultValue>
      </command:parameter>
      <!-- Parameter: Hide -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>Hide</maml:name>
        <maml:description>
          <maml:para>Get list of updates and hide/unhide approved updates.</maml:para>
        </maml:description>
        <command:parameterValue required="true">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
      <!-- Parameter: Download -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>Download</maml:name>
        <maml:description>
          <maml:para>Get list of updates and download approved updates, but do not install it.</maml:para>
        </maml:description>
        <command:parameterValue required="true">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
      <!-- Parameter: ForceDownload -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>ForceDownload</maml:name>
        <maml:description>
          <maml:para>Forces the download of updates that are already installed or that cannot be installed. Works only with -Download.</maml:para>
        </maml:description>
        <command:parameterValue required="true">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
      <!-- Parameter: Install -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>Install</maml:name>
        <maml:description>
          <maml:para>Get list of updates and install approved updates.</maml:para>
        </maml:description>
        <command:parameterValue required="true">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
      <!-- Parameter: ForceInstall -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>ForceInstall</maml:name>
        <maml:description>
          <maml:para>A forced installation is an installation in which an update is installed even if the metadata indicates that the update is already installed. Before you use ForceInstall to force an installation, determine whether the update is installed and available. If an update is not installed, a forced installation fails. Works only with -Install.</maml:para>
        </maml:description>
        <command:parameterValue required="true">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
      <!-- Parameter: AutoReboot -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>AutoReboot</maml:name>
        <maml:description>
          <maml:para>Do not ask for reboot if it needed.</maml:para>
        </maml:description>
        <command:parameterValue required="true">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
      <!-- Parameter: IgnoreReboot -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>IgnoreReboot</maml:name>
        <maml:description>
          <maml:para>Do not ask for reboot if it needed, but do not reboot automaticaly.</maml:para>
        </maml:description>
        <command:parameterValue required="true">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
      <!-- Parameter: ScheduleReboot -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>ScheduleReboot</maml:name>
        <maml:description>
          <maml:para>Specify time when system will be rebooted.</maml:para>
        </maml:description>
        <command:parameterValue required="true">DateTime</command:parameterValue>
        <dev:type>
          <maml:name>System.DateTime</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue>
      </command:parameter>
      <!-- Parameter: ServiceID -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>ServiceID</maml:name>
        <maml:description>
          <maml:para>Use specific Service Manager if it's available.</maml:para> <maml:para>Examples Of ServiceID: \r\n \r\n -- Windows Update 9482f4b4-e343-43b6-b170-9a65bc822c77 \r\n -- Microsoft Update 7971f918-a847-4430-9279-4a52d1efe18d \r\n -- Windows Store 117cab2d-82b1-4b5a-a08c-4d62dbee7782 \r\n -- Windows Server Update Service 3da21691-e39d-4da6-8a4b-b43877bcb1b7</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: WindowsUpdate --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>WindowsUpdate</maml:name> <maml:description> <maml:para>Use Microsoft Update Service Manager - '7971f918-a847-4430-9279-4a52d1efe18d'</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: MicrosoftUpdate --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>MicrosoftUpdate</maml:name> <maml:description> <maml:para>Use Windows Update Service Manager - '9482f4b4-e343-43b6-b170-9a65bc822c77'</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: Criteria --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Criteria</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Set own string that specifies the search criteria. https://docs.microsoft.com/pl-pl/windows/desktop/api/wuapi/nf-wuapi-iupdatesearcher-search</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: UpdateType --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>UpdateType</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates with a specific type, such as 'Driver' and 'Software'. Default value contains all updates.</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: DeploymentAction --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>DeploymentAction</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates that are deployed for a specific action, such as an installation or uninstallation that the administrator of a server specifies. "DeploymentAction='Installation'" finds updates that are deployed for installation on a destination computer. "DeploymentAction='Uninstallation'" depends on the other query criteria.</maml:para> <maml:para>"DeploymentAction='Uninstallation'" finds updates that are deployed for uninstallation on a destination computer. "DeploymentAction='Uninstallation'" depends on the other query criteria.</maml:para> <maml:para>If this criterion is not explicitly specified, each group of criteria that is joined to an AND operator implies "DeploymentAction='Installation'".</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: IsAssigned --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>IsAssigned</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates that are intended for deployment by Automatic Updates. "IsAssigned=1" finds updates that are intended for deployment by Automatic Updates, which depends on the other query criteria.At most, one assigned Windows-based driver update is returned for each local device on a destination computer.</maml:para> <maml:para>"IsAssigned=0" finds updates that are not intended to be deployed by Automatic Updates.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: IsPresent --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>IsPresent</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. When set to 1, finds updates that are present on a computer.</maml:para> <maml:para>"IsPresent=1" finds updates that are present on a destination computer.If the update is valid for one or more products, the update is considered present if it is installed for one or more of the products.</maml:para> <maml:para>"IsPresent=0" finds updates that are not installed for any product on a destination computer.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: BrowseOnly --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>BrowseOnly</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. "BrowseOnly=1" finds updates that are considered optional. "BrowseOnly=0" finds updates that are not considered optional.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: AutoSelectOnWebSites --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>AutoSelectOnWebSites</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates where the AutoSelectOnWebSites property has the specified value.</maml:para> <maml:para>"AutoSelectOnWebSites=1" finds updates that are flagged to be automatically selected by Windows Update.</maml:para> <maml:para>"AutoSelectOnWebSites=0" finds updates that are not flagged for Automatic Updates.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: UpdateID --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>UpdateID</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates with a specific UUID (or sets of UUIDs), such as '12345678-9abc-def0-1234-56789abcdef0'.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: NotUpdateID --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>NotUpdateID</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates without a specific UUID (or sets of UUIDs), such as '12345678-9abc-def0-1234-56789abcdef0'.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: RevisionNumber --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>RevisionNumber</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates with a specific RevisionNumber, such as '100'. This criterion must be combined with the UpdateID param.</maml:para> </maml:description> <command:parameterValue required="true">int</command:parameterValue> <dev:type> <maml:name>System.Int32</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>0</dev:defaultValue> </command:parameter> <!-- Parameter: CategoryIDs --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>CategoryIDs</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates that belong to a specified category (or sets of UUIDs), such as '0fa1201d-4330-4fa8-8ae9-b877473b6441'.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: IsInstalled --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>IsInstalled</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates that are installed on the destination computer.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: IsHidden --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>IsHidden</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates that are marked as hidden on the destination computer. Default search criteria is only not hidden upadates.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: WithHidden --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>WithHidden</maml:name> <maml:description> <maml:para>Pre search criteria - native for WUAPI. Finds updates that are both hidden and not on the destination computer. Overwrite IsHidden param. Default search criteria is only not hidden upadates.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: ShowPreSearchCriteria --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ShowPreSearchCriteria</maml:name> <maml:description> <maml:para>Show choosen search criteria. Only works for pre search criteria.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: RootCategories --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>RootCategories</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that contain a specified root category name 'Critical Updates', 'Definition Updates', 'Drivers', 'Feature Packs', 'Security Updates', 'Service Packs', 'Tools', 'Update Rollups', 'Updates', 'Upgrades', 'Microsoft'.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Category --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Category</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that contain a specified category name (or sets of categories name), such as 'Updates', 'Security Updates', 'Critical Updates', etc...</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: KBArticleID --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>KBArticleID</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that contain a KBArticleID (or sets of KBArticleIDs), such as 'KB982861'.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Title --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Title</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that match part of title (case sensitive), such as '.NET Framework 4'.</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Severity --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Severity</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that match part of severity, such as 'Important', 'Critical', 'Moderate', etc...</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: NotCategory --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>NotCategory</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that not contain a specified category name (or sets of categories name), such as 'Updates', 'Security Updates', 'Critical Updates', etc...</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: NotKBArticleID --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>NotKBArticleID</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that not contain a KBArticleID (or sets of KBArticleIDs), such as 'KB982861'.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: NotTitle --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>NotTitle</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that not match part of title (case sensitive).</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: NotSeverity --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>NotSeverity</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that not match part of severity.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: IgnoreUserInput --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named" aliases="Silent"> <maml:name>IgnoreUserInput</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that the installation or uninstallation of an update can't prompt for user input.</maml:para>
        </maml:description>
        <command:parameterValue required="true">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named" aliases="Silent">
        <maml:name>Silent</maml:name>
        <maml:description>
          <maml:para>Post search criteria. Finds updates that the installation or uninstallation of an update can't prompt for user input.</maml:para> <maml:para>This is an alias of the IgnoreUserInput parameter.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: IgnoreRebootRequired --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>IgnoreRebootRequired</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that specifies the restart behavior that not occurs when you install or uninstall the update.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: AutoSelectOnly --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>AutoSelectOnly</maml:name> <maml:description> <maml:para>Install only the updates that have status AutoSelectOnWebsites on true.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: MaxSize --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>MaxSize</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that have MaxDownloadSize less or equal. Size is in Bytes.</maml:para> </maml:description> <command:parameterValue required="true">long</command:parameterValue> <dev:type> <maml:name>System.Int64</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>0</dev:defaultValue> </command:parameter> <!-- Parameter: MinSize --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>MinSize</maml:name> <maml:description> <maml:para>Post search criteria. Finds updates that have MaxDownloadSize greater or equal. Size is in Bytes.</maml:para> </maml:description> <command:parameterValue required="true">long</command:parameterValue> <dev:type> <maml:name>System.Int64</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>0</dev:defaultValue> </command:parameter> <!-- Parameter: Debuger --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Debuger</maml:name> <maml:description> <maml:para>Debuger return original exceptions. For additional debug information use $DebugPreference = "Continue"</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes> <command:inputType> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> <maml:description> <maml:para>Specify one or more computer names for remote connection. Interactive remote connection works only for checking updates. For download or install cmdlet creates an Invoke-WUJob task.</maml:para> </maml:description> </command:inputType> </command:inputTypes> <command:returnValues> <!-- OutputType: WindowsUpdate --> <command:returnValue> <dev:type> <maml:name>PSWindowsUpdate.WindowsUpdate</maml:name> <maml:uri /> </dev:type> <maml:description> <maml:para>OutputType for WindowsUpdate objects.</maml:para> </maml:description> </command:returnValue> </command:returnValues> <command:examples> <command:example> <maml:title>---------- EXAMPLE 1 ----------</maml:title> <dev:code>Get windows updates available from default service manager. Get-WindowsUpdate -Verbose VERBOSE: MG-PC: Connecting to Windows Server Update Service server. Please wait... VERBOSE: Found[4] Updates in pre search criteria VERBOSE: Found[4] Updates in post search criteria ComputerName Status KB Size Title ------------ ------ -- ---- ----- MG-PC ------- KB890830 44MB Narzędzie Windows do usuwania złośliwego oprogramowania dla systemów Window... MG-PC ------- KB4034658 1GB 2017-08 Aktualizacja zbiorcza dla systemu Windows 10 Version 1607 dla syste... MG-PC ------- KB4034662 21MB 2017-08 Aktualizacja zabezpieczeń Adobe Flash Player w Windows 10 Version 1... MG-PC ------- KB4035631 11MB 2017-08 Aktualizacja Windows 10 Version 1607 dla systemów opartych na archi...</dev:code> </command:example> <command:example> <maml:title>---------- EXAMPLE 2 ----------</maml:title> <dev:code>Get all installed drivers that are available at Windows Update. Additionaly show pre search criteria. Get-WindowsUpdate -WindowsUpdate -UpdateType Driver -IsInstalled -ShowPreSearchCriteria -Verbose PreSearchCriteria: IsInstalled = 0 and Type = 'Driver' and IsHidden = 0 VERBOSE: MG-PC: Connecting to Windows Update server.Please wait... VERBOSE: Found[1] Updates in pre search criteria VERBOSE: Found[1] Updates in post search criteria ComputerName Status KB Size Title ------------ ------ -- ---- ----- MGAJDALAP3 -DI---- 3MB Intel - Other hardware - Intel(R) Watchdog Timer Driver (Intel(R) WDT)</dev:code> </command:example> <command:example> <maml:title>---------- EXAMPLE 3 ----------</maml:title> <dev:code>Get all available update on remote machine MG-PC, that contains in Title this two words 'Aktualizacja' and 'Windows 10' (as regular expression). Get-WindowsUpdate -ComputerName MG-PC -MicrosoftUpdate -Title "Aktualizacja.*Windows 10" -Verbose VERBOSE: MG-PC: Connecting to Microsoft Update server. Please wait... VERBOSE: Found[14] Updates in pre search criteria VERBOSE: Found[5] Updates in post search criteria ComputerName Status KB Size Title ------------ ------ -- ---- ----- MG-PC ------- KB3150513 2MB 2017-06 Aktualizacja Windows 10 Version 1607 dla systemów opartych na archi... MG-PC ------- KB4034658 1GB 2017-08 Aktualizacja zbiorcza dla systemu Windows 10 Version 1607 dla syste... MG-PC ------- KB4034662 21MB 2017-08 Aktualizacja zabezpieczeń Adobe Flash Player w Windows 10 Version 1... MG-PC ------- KB4035631 11MB 2017-08 Aktualizacja Windows 10 Version 1607 dla systemów opartych na archi... MG-PC ------- KB4033637 4MB Aktualizacja systemu Windows 10 Version 1607 dla komputerów z procesorami x...</dev:code> </command:example> <command:example> <maml:title>---------- EXAMPLE 4 ----------</maml:title> <dev:code>Hide update with KBArticleID: KB4034658. Get-WindowsUpdate -KBArticleID KB4034658 -Hide -Verbose or use alias Hide-WindowsUpdate -KBArticleID KB4034658 -Verbose VERBOSE: MG-PC: Connecting to Windows Server Update Service server. Please wait... VERBOSE: Found[4] Updates in pre search criteria VERBOSE: Found[1] Updates in post search criteria Confirm Are you sure you want to perform this action? Performing the operation "Hide 2017-08 Aktualizacja zbiorcza dla systemu Windows 10 Version 1607 dla systemów opartych na architekturze x64 (KB4034658)[1GB]" on target "MG-PC". [Y] Yes[A] Yes to All [N] No[L] No to All [S] Suspend[?] Help (default is "Y"): Y ComputerName Status KB Size Title ------------ ------ -- ---- ----- MG-PC ---H-- KB4034658 1GB 2017-08 Aktualizacja zbiorcza dla systemu Windows 10 Version 1607 dla syste...</dev:code> </command:example> <command:example> <maml:title>---------- EXAMPLE 5 ----------</maml:title> <dev:code>Unhide update with KBArticleID: KB4034658. Get-WindowsUpdate -KBArticleID KB4034658 -WithHidden -Hide:$false -Verbose or use alias Show-WindowsUpdate -KBArticleID KB4034658 -Verbose VERBOSE: MG-PC: Connecting to Windows Server Update Service server. Please wait... VERBOSE: Found[4] Updates in pre search criteria VERBOSE: Found[1] Updates in post search criteria Confirm Are you sure you want to perform this action? Performing the operation "Show 2017-08 Aktualizacja zbiorcza dla systemu Windows 10 Version 1607 dla systemów opartych na architekturze x64 (KB4034658)[1GB]" on target "MG-PC". [Y] Yes[A] Yes to All [N] No[L] No to All [S] Suspend[?] Help (default is "Y"): Y ComputerName Status KB Size Title ------------ ------ -- ---- ----- MG-PC ------ KB4034658 1GB 2017-08 Aktualizacja zbiorcza dla systemu Windows 10 Version 1607 dla syste...</dev:code> </command:example> <command:example> <maml:title>---------- EXAMPLE 6 ----------</maml:title> <dev:code>Schedule job at 6:00 PM to install update with UpdateId='ddb74579-7a1f-4d1f-80c8-e8647055314e' and RevisionNumber=200. Update will be automaticaly accepted and after all serwer will be automaticaly restarted if needed. Get-WindowsUpdate -MicrosoftUpdate -UpdateID ddb74579-7a1f-4d1f-80c8-e8647055314e -RevisionNumber 200 -ScheduleJob (Get-Date -Hour 18 -Minute 0 -Second 0) -Install -AcceptAll -AutoReboot -Verbose or use alias Install-WindowsUpdate -MicrosoftUpdate -UpdateID ddb74579-7a1f-4d1f-80c8-e8647055314e -RevisionNumber 200 -ScheduleJob (Get-Date -Hour 18 -Minute 0 -Second 0) -AcceptAll -AutoReboot -Verbose VERBOSE: MG-PC: Connecting to Microsoft Update server. Please wait... VERBOSE: Found[1] Updates in pre search criteria VERBOSE: Found[1] Updates in post search criteria VERBOSE: Choosed pre Search Criteria: (UpdateID = 'ddb74579-7a1f-4d1f-80c8-e8647055314e' and RevisionNumber = 200) X ComputerName Result KB Size Title - ------------ ------ -- ---- ----- 1 MG-PC Accepted KB4023307 13MB Microsoft Silverlight(KB4023307) VERBOSE: Accepted[1] Updates ready to Download VERBOSE: Invoke-WUJob: MG-PC(31.08.2017 18:00:00): VERBOSE: powershell.exe -Command "Get-WindowsUpdate -Criteria \"(UpdateID = 'ddb74579-7a1f-4d1f-80c8-e8647055314e' and RevisionNumber = 200)\" -AcceptAll -AutoReboot -Download -Install -MicrosoftUpdate -Verbose *&gt;&amp;1 | Out-File $Env:TEMP\PSWindowsUpdate.log"</dev:code> </command:example> <command:example> <maml:title>---------- EXAMPLE 7 ----------</maml:title> <dev:code>Install updates on remote computer. After all send a report from the installation process. Install-WindowsUpdate -ComputerName MG-PC -MicrosoftUpdate -AcceptAll -AutoReboot -SendReport -PSWUSettings @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";Port=25} -Verbose or use global PSWUSettings @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";Port=25} | Export-Clixml -Path 'C:\Program Files\WindowsPowerShell\Modules\PSWindowsUpdate\PSWUSettings.xml' Install-WindowsUpdate -ComputerName MG-PC -MicrosoftUpdate -AcceptAll -AutoReboot -SendReport -Verbose VERBOSE: MG-PC: Connecting to Microsoft Update server. Please wait... VERBOSE: Found[4] Updates in pre search criteria VERBOSE: Found[4] Updates in post search criteria Confirm Are you sure you want to perform this action? Performing the operation "Microsoft Silverlight (KB4023307)[13MB]" on target "MG-PC". [Y] Yes[A] Yes to All [N] No[L] No to All [S] Suspend[?] Help (default is "Y"): Y Confirm Are you sure you want to perform this action? Performing the operation "2017-06 Aktualizacja Windows 10 Version 1607 dla systemów opartych na architekturze x64 (KB3150513)[2MB]" on target "MG-PC". [Y] Yes[A] Yes to All [N] No[L] No to All [S] Suspend[?] Help (default is "Y"): Y Confirm Are you sure you want to perform this action? Performing the operation "Aktualizacja pakietu językowego usługi Microsoft Dynamics 365 2.1[47MB]" on target "MG-PC". [Y] Yes[A] Yes to All [N] No[L] No to All [S] Suspend[?] Help (default is "Y"): L X ComputerName Result KB Size Title - ------------ ------ -- ---- ----- 1 MG-PC Accepted KB4023307 13MB Microsoft Silverlight (KB4023307) 1 MG-PC Accepted KB3150513 2MB 2017-06 Aktualizacja Windows 10 Version 1607 dla systemów opartych na arc... 1 MG-PC Rejected KB4013759 47MB Aktualizacja pakietu językowego usługi Microsoft Dynamics 365 2.1 1 MG-PC Rejected KB3186568 67MB Program Microsoft .NET Framework 4.7 w syst. Windows 10 Version 1607 i Wi... VERBOSE: Accepted [2] Updates ready to Download VERBOSE: Invoke-WUJob: MG-PC (Now): VERBOSE: powershell.exe -Command "Get-WindowsUpdate -Criteria \"(UpdateID = 'ddb74579-7a1f-4d1f-80c8-e8647055314e' and RevisionNumber = 200) or (UpdateID = '151c4402-513c-4f39-8da1-f84d0956b5e3' and RevisionNumber = 200)\" -AcceptAll -Download -Install -AutoReboot -MicrosoftUpdate -SendReport -ProofOfLife -Verbose *&gt;&amp;1 | Out-File $Env:TEMP\PSWindowsUpdate.log"</dev:code> </command:example> <command:example> <maml:title>---------- EXAMPLE 8 ----------</maml:title> <dev:code>Schedule Job to install all available updates and automatically reboot system if needed. Also send report after installation (but before reboot if needed) and send second instalation history report after reboot. @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";Port=25} | Export-Clixml -Path 'C:\Program Files\WindowsPowerShell\Modules\PSWindowsUpdate\PSWUSettings.xml' Install-WindowsUpdate -MicrosoftUpdate -SendReport -SendHistory -AcceptAll -AutoReboot -ScheduleJob (Get-Date -Hour 18 -Minute 30 -Second 0) -ComputerName MG-PC -Verbose VERBOSE: MG-PC: Connecting to Microsoft Update server. Please wait... VERBOSE: Found[4] Updates in pre search criteria VERBOSE: Found[4] Updates in post search criteria X ComputerName Result KB Size Title - ------------ ------ -- ---- ----- 1 MG-PC Accepted KB3038936 5MB Aktualizacja systemu Windows 8.1 dla komputerów z procesorami x64(KB3038... 1 MG-PC Accepted KB3186606 4MB Pakiety językowe programu Microsoft.NET Framework 4.7 w syst. Windows 8.... 1 MG-PC Accepted KB4035038 53MB Sierpień 2017: wersja zapozn. pak.zb.aktual.jakości dla pr. .NET Frame... 1 MG-PC Accepted KB2267602 309MB Aktualizacja definicji dla: Windows Defender — KB2267602 (Definicja 1.251... VERBOSE: Accepted[4] Updates ready to Download VERBOSE: Invoke-WUJob: MG-PC (02.09.2017 08:30:00): VERBOSE: powershell.exe -Command "Get-WindowsUpdate -Criteria \"(UpdateID = 'e69c9679-7ce8-489a-a21c-62fb920be67a' and RevisionNumber = 201) or(UpdateID = 'de44604d-ec38-4a7f-ac63-28b3edfdb382' and RevisionNumber = 207) or(UpdateID = '9cf1d8c9-a7c3-4603-90e8-f22131ff6d7e' and RevisionNumber = 201) or(UpdateID = 'b51935f9-0e40-4624-9c26-b29bff92dcf9' and RevisionNumber = 200)\" -AcceptAll -Install -AutoReboot -MicrosoftUpdate -SendReport -SendHistory -Verbose *&gt;&amp;1 | Out-File $Env:TEMP\PSWindowsUpdate.log" VERBOSE: Send report</dev:code> </command:example> </command:examples> <maml:relatedLinks> <maml:navigationLink> <maml:linkText>Author Blog</maml:linkText> <maml:uri>http://commandlinegeeks.com/</maml:uri> </maml:navigationLink> </maml:relatedLinks> </command:command> <!-- Cmdlet: Remove-WindowsUpdate --> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10"> <command:details> <command:name>Remove-WindowsUpdate</command:name> <command:verb>Remove</command:verb> <command:noun>WindowsUpdate</command:noun> <maml:description> <maml:para>Uninstall update.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Use Remove-WindowsUpdate to uninstall update.</maml:para> </maml:description> <command:syntax> <!-- Parameter set: WUSAMode --> <command:syntaxItem> <maml:name>Remove-WindowsUpdate</maml:name> <!-- Parameter: KBArticleID --> <command:parameter required="true" globbing="false" pipelineInput="false" position="named" aliases="HotFixID"> <maml:name>KBArticleID</maml:name> <maml:description> <maml:para>KBArticleID that will be uninstalled.</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: AutoReboot --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>AutoReboot</maml:name> <maml:description> <maml:para>Do not ask for reboot if it needed.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: ComputerName --> <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named"> <maml:name>ComputerName</maml:name> <maml:description> <maml:para>Specify one or more computer names for remote connection.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Debuger --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Debuger</maml:name> <maml:description> <maml:para>Debuger return original exceptions.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: IgnoreReboot --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>IgnoreReboot</maml:name> <maml:description> <maml:para>Do not ask for reboot if it needed, but do not reboot automaticaly.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: ScheduleJob --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ScheduleJob</maml:name> <maml:description> <maml:para>Specify schedule time job.</maml:para> </maml:description> <command:parameterValue required="true">DateTime</command:parameterValue> <dev:type> <maml:name>System.DateTime</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue> </command:parameter> <!-- Parameter: ScheduleReboot --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ScheduleReboot</maml:name> <maml:description> <maml:para>Specify time when system will be rebooted.</maml:para> </maml:description> <command:parameterValue required="true">DateTime</command:parameterValue> <dev:type> <maml:name>System.DateTime</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue> </command:parameter> <!-- Parameter: WUSAMode --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>WUSAMode</maml:name> <maml:description> <maml:para>Wse wusa.exe instead of WU Api.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:syntaxItem> <!-- Parameter set: WUApiMode --> <command:syntaxItem> <maml:name>Remove-WindowsUpdate</maml:name> <!-- Parameter: UpdateID --> <command:parameter required="true" globbing="false" pipelineInput="false" position="named"> <maml:name>UpdateID</maml:name> <maml:description> <maml:para>Update ID that will be uninstalled.</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: AutoReboot --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>AutoReboot</maml:name> <maml:description> <maml:para>Do not ask for reboot if it needed.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: ComputerName --> <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named"> <maml:name>ComputerName</maml:name> <maml:description> <maml:para>Specify one or more computer names for remote connection.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Debuger --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Debuger</maml:name> <maml:description> <maml:para>Debuger return original exceptions.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: IgnoreReboot --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>IgnoreReboot</maml:name> <maml:description> <maml:para>Do not ask for reboot if it needed, but do not reboot automaticaly.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: ScheduleJob --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ScheduleJob</maml:name> <maml:description> <maml:para>Specify schedule time job.</maml:para> </maml:description> <command:parameterValue required="true">DateTime</command:parameterValue> <dev:type> <maml:name>System.DateTime</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue> </command:parameter> <!-- Parameter: ScheduleReboot --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ScheduleReboot</maml:name> <maml:description> <maml:para>Specify time when system will be rebooted.</maml:para> </maml:description> <command:parameterValue required="true">DateTime</command:parameterValue> <dev:type> <maml:name>System.DateTime</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue> </command:parameter> <!-- Parameter: WUSAMode --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>WUSAMode</maml:name> <maml:description> <maml:para>Wse wusa.exe instead of WU Api.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:syntaxItem> </command:syntax> <command:parameters> <!-- Parameter: ComputerName --> <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named"> <maml:name>ComputerName</maml:name> <maml:description> <maml:para>Specify one or more computer names for remote connection.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: ScheduleJob --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ScheduleJob</maml:name> <maml:description> <maml:para>Specify schedule time job.</maml:para> </maml:description> <command:parameterValue required="true">DateTime</command:parameterValue> <dev:type> <maml:name>System.DateTime</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue> </command:parameter> <!-- Parameter: KBArticleID --> <command:parameter required="true" globbing="false" pipelineInput="false" position="named" aliases="HotFixID"> <maml:name>KBArticleID</maml:name> <maml:description> <maml:para>KBArticleID that will be uninstalled.</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> </command:parameter> <command:parameter required="true" globbing="false" pipelineInput="false" position="named" aliases="HotFixID"> <maml:name>HotFixID</maml:name> <maml:description> <maml:para>KBArticleID that will be uninstalled.</maml:para> <maml:para>This is an alias of the KBArticleID parameter.</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: UpdateID --> <command:parameter required="true" globbing="false" pipelineInput="false" position="named"> <maml:name>UpdateID</maml:name> <maml:description> <maml:para>Update ID that will be uninstalled.</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: AutoReboot --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>AutoReboot</maml:name> <maml:description> <maml:para>Do not ask for reboot if it needed.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: IgnoreReboot --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>IgnoreReboot</maml:name> <maml:description> <maml:para>Do not ask for reboot if it needed, but do not reboot automaticaly.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: ScheduleReboot --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ScheduleReboot</maml:name> <maml:description> <maml:para>Specify time when system will be rebooted.</maml:para> </maml:description> <command:parameterValue required="true">DateTime</command:parameterValue> <dev:type> <maml:name>System.DateTime</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue> </command:parameter> <!-- Parameter: WUSAMode --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>WUSAMode</maml:name> <maml:description> <maml:para>Wse wusa.exe instead of WU Api.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: Debuger --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Debuger</maml:name> <maml:description> <maml:para>Debuger return original exceptions.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes> <command:inputType> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> <maml:description> <maml:para>Specify one or more computer names for remote connection.</maml:para> </maml:description> </command:inputType> </command:inputTypes> <command:returnValues /> <command:examples> <command:example> <maml:title>---------- EXAMPLE 1 ----------</maml:title> <dev:code>Try to uninstall update with specific KBArticleID = KB958830. Get-WUUninstall -KBArticleID KB958830</dev:code> </command:example> </command:examples> <maml:relatedLinks> <maml:navigationLink> <maml:linkText>Author Blog</maml:linkText> <maml:uri>http://commandlinegeeks.com/</maml:uri> </maml:navigationLink> </maml:relatedLinks> </command:command> <!-- Cmdlet: Get-WUApiVersion --> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10"> <command:details> <command:name>Get-WUApiVersion</command:name> <command:verb>Get</command:verb> <command:noun>WUApiVersion</command:noun> <maml:description> <maml:para>Get Windows Update Agent version.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Use Get-WUAPIVersion cmdlet to get Windows Update Agent version.</maml:para> </maml:description> <command:syntax> <!-- Parameter set: __AllParameterSets --> <command:syntaxItem> <maml:name>Get-WUApiVersion</maml:name> <!-- Parameter: ComputerName --> <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named"> <maml:name>ComputerName</maml:name> <maml:description> <maml:para>Specify one or more computer names for remote connection.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Debuger --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Debuger</maml:name> <maml:description> <maml:para>Debuger return original exceptions.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: PSWUSettings --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>PSWUSettings</maml:name> <maml:description> <maml:para>Required parameter for -SendReport.</maml:para> <maml:para>Passes the parameters (as hashtable) necessary to send the report: \r\n@{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25];[Subject="Alternative Subject"];[Properties="Alternative object properties"];[Style="Table|List"]}</maml:para> <maml:para>Send parameters can also be saved to a PSWUSettings.xml file in ModuleBase path: \r\nExport-Clixml @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25]}"</maml:para> </maml:description> <command:parameterValue required="true">Hashtable</command:parameterValue> <dev:type> <maml:name>System.Collections.Hashtable</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: SendReport --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>SendReport</maml:name> <maml:description> <maml:para>Send report email to specific recipients.</maml:para> <maml:para>Requires the parameter -PSWUSettings or declare the PSWUSettings.xml file in ModuleBase path.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:syntaxItem> </command:syntax> <command:parameters> <!-- Parameter: ComputerName --> <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named"> <maml:name>ComputerName</maml:name> <maml:description> <maml:para>Specify one or more computer names for remote connection.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: SendReport --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>SendReport</maml:name> <maml:description> <maml:para>Send report email to specific recipients.</maml:para> <maml:para>Requires the parameter -PSWUSettings or declare the PSWUSettings.xml file in ModuleBase path.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: PSWUSettings --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>PSWUSettings</maml:name> <maml:description> <maml:para>Required parameter for -SendReport.</maml:para> <maml:para>Passes the parameters (as hashtable) necessary to send the report: \r\n@{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25];[Subject="Alternative Subject"];[Properties="Alternative object properties"];[Style="Table|List"]}</maml:para> <maml:para>Send parameters can also be saved to a PSWUSettings.xml file in ModuleBase path: \r\nExport-Clixml @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25]}"</maml:para> </maml:description> <command:parameterValue required="true">Hashtable</command:parameterValue> <dev:type> <maml:name>System.Collections.Hashtable</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Debuger --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Debuger</maml:name> <maml:description> <maml:para>Debuger return original exceptions.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes> <command:inputType> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> <maml:description> <maml:para>Specify one or more computer names for remote connection.</maml:para> </maml:description> </command:inputType> </command:inputTypes> <command:returnValues> <!-- OutputType: AgentInfo --> <command:returnValue> <dev:type> <maml:name>PSWindowsUpdate.AgentInfo</maml:name> <maml:uri /> </dev:type> <maml:description> <maml:para>OutputType for AgentInfo objects.</maml:para> </maml:description> </command:returnValue> </command:returnValues> <command:examples> <command:example> <maml:title>---------- EXAMPLE 1 ----------</maml:title> <dev:code>Get Windows Update Agent version. Get-WUAPIVersion ComputerName PSWindowsUpdate ApiVersion WuapiDllVersion ------------ --------------- ---------- --------------- MG-PC 2.0 8.0 10.0.14393.1670</dev:code> </command:example> </command:examples> <maml:relatedLinks> <maml:navigationLink> <maml:linkText>Author Blog</maml:linkText> <maml:uri>http://commandlinegeeks.com/</maml:uri> </maml:navigationLink> </maml:relatedLinks> </command:command> <!-- Cmdlet: Get-WUHistory --> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10"> <command:details> <command:name>Get-WUHistory</command:name> <command:verb>Get</command:verb> <command:noun>WUHistory</command:noun> <maml:description> <maml:para>Get list of updates history.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Use function Get-WUHistory to get list of installed updates on specific machine.</maml:para> </maml:description> <command:syntax> <!-- Parameter set: __AllParameterSets --> <command:syntaxItem> <maml:name>Get-WUHistory</maml:name> <!-- Parameter: ComputerName --> <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named"> <maml:name>ComputerName</maml:name> <maml:description> <maml:para>Specify one or more computer names for remote connection.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Debuger --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Debuger</maml:name> <maml:description> <maml:para>Debuger return original exceptions.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: Last --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Last</maml:name> <maml:description> <maml:para>Last X history entry.</maml:para> </maml:description> <command:parameterValue required="true">int</command:parameterValue> <dev:type> <maml:name>System.Int32</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>0</dev:defaultValue> </command:parameter> <!-- Parameter: MaxDate --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>MaxDate</maml:name> <maml:description> <maml:para>Filter results by date.</maml:para> </maml:description> <command:parameterValue required="true">DateTime</command:parameterValue> <dev:type> <maml:name>System.DateTime</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue> </command:parameter> <!-- Parameter: PSWUSettings --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>PSWUSettings</maml:name> <maml:description> <maml:para>Required parameter for -SendReport.</maml:para> <maml:para>Passes the parameters (as hashtable) necessary to send the report: @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25];[Subject="Alternative Subject"];[Properties="Alternative object properties"];[Style="Table|List"]}</maml:para> <maml:para>Send parameters can also be saved to a PSWUSettings.xml file in ModuleBase path: Export-Clixml @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25]}"</maml:para> </maml:description> <command:parameterValue required="true">Hashtable</command:parameterValue> <dev:type> <maml:name>System.Collections.Hashtable</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: SendReport --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>SendReport</maml:name> <maml:description> <maml:para>Send report email to specific recipients.</maml:para> <maml:para>Requires the parameter -PSWUSettings or declare the PSWUSettings.xml file in ModuleBase path.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:syntaxItem> </command:syntax> <command:parameters> <!-- Parameter: ComputerName --> <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named"> <maml:name>ComputerName</maml:name> <maml:description> <maml:para>Specify one or more computer names for remote connection.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: SendReport --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>SendReport</maml:name> <maml:description> <maml:para>Send report email to specific recipients.</maml:para> <maml:para>Requires the parameter -PSWUSettings or declare the PSWUSettings.xml file in ModuleBase path.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: PSWUSettings --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>PSWUSettings</maml:name> <maml:description> <maml:para>Required parameter for -SendReport.</maml:para> <maml:para>Passes the parameters (as hashtable) necessary to send the report: @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25];[Subject="Alternative Subject"];[Properties="Alternative object properties"];[Style="Table|List"]}</maml:para> <maml:para>Send parameters can also be saved to a PSWUSettings.xml file in ModuleBase path: Export-Clixml @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25]}"</maml:para> </maml:description> <command:parameterValue required="true">Hashtable</command:parameterValue> <dev:type> <maml:name>System.Collections.Hashtable</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: MaxDate --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>MaxDate</maml:name> <maml:description> <maml:para>Filter results by date.</maml:para> </maml:description> <command:parameterValue required="true">DateTime</command:parameterValue> <dev:type> <maml:name>System.DateTime</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue> </command:parameter> <!-- Parameter: Last --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Last</maml:name> <maml:description> <maml:para>Last X history entry.</maml:para> </maml:description> <command:parameterValue required="true">int</command:parameterValue> <dev:type> <maml:name>System.Int32</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>0</dev:defaultValue> </command:parameter> <!-- Parameter: Debuger --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Debuger</maml:name> <maml:description> <maml:para>Debuger return original exceptions.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes> <command:inputType> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> <maml:description> <maml:para>Specify one or more computer names for remote connection.</maml:para> </maml:description> </command:inputType> </command:inputTypes> <command:returnValues> <!-- OutputType: History --> <command:returnValue> <dev:type> <maml:name>PSWindowsUpdate.History</maml:name> <maml:uri /> </dev:type> <maml:description> <maml:para>OutputType for History objects.</maml:para> </maml:description> </command:returnValue> </command:returnValues> <command:examples> <command:example> <maml:title>---------- EXAMPLE 1 ----------</maml:title> <dev:code>Get Windows Update history. Get-WUHistory ComputerName Operationname Date KB Title ------------ ------------- ---- -- ----- MG-PC Installation 30.08.2017 12:03:53 KB2267602 Definition Update for Windows Defender - KB2267602(Defini... MG-PC Installation 29.08.2017 11:49:50 KB3186568 Microsoft .NET Framework 4.7 for Windows 10 Version 1607 a... MG-PC Installation 29.08.2017 11:30:37 KB4035631 2017-08 Update for Windows Server 2016 for x64-based Syste... MG-PC Installation 29.08.2017 11:21:12 KB890830 Windows Malicious Software Removal Tool for Windows 8, 8.1... MG-PC Installation 29.08.2017 07:53:36 KB2267602 Definition Update for Windows Defender - KB2267602 (Defini... MG-PC Installation 27.08.2017 07:53:39 KB2267602 Definition Update for Windows Defender - KB2267602 (Defini... MG-PC Installation 25.08.2017 07:54:38 KB2267602 Definition Update for Windows Defender - KB2267602 (Defini... MG-PC Installation 23.08.2017 13:01:26 KB2267602 Definition Update for Windows Defender - KB2267602 (Defini... MG-PC Installation 23.08.2017 12:45:45 KB4023307 Security Update for Microsoft Silverlight (KB4023307) MG-PC Installation 23.08.2017 07:53:56 KB2267602 Definition Update for Windows Defender - KB2267602 (Defini...</dev:code> </command:example> <command:example> <maml:title>---------- EXAMPLE 2 ----------</maml:title> <dev:code>Get Windows Update Agent history for last 24h. Get-WUHistory -MaxDate (Get-Date).AddDays(-1) ComputerName Operationname Date KB Title ------------ ------------- ---- -- ----- MG-PC Installation 30.08.2017 12:03:53 KB2267602 Definition Update for Windows Defender - KB2267602(Defini...</dev:code> </command:example> </command:examples> <maml:relatedLinks> <maml:navigationLink> <maml:linkText>Author Blog</maml:linkText> <maml:uri>http://commandlinegeeks.com/</maml:uri> </maml:navigationLink> </maml:relatedLinks> </command:command> <!-- Cmdlet: Get-WUInstallerStatus --> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10"> <command:details> <command:name>Get-WUInstallerStatus</command:name> <command:verb>Get</command:verb> <command:noun>WUInstallerStatus</command:noun> <maml:description> <maml:para>Get Windows Update Installer status.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Use Get-WUInstallerStatus cmdlet to show Windows Update Installer status.</maml:para> </maml:description> <command:syntax> <!-- Parameter set: __AllParameterSets --> <command:syntaxItem> <maml:name>Get-WUInstallerStatus</maml:name> <!-- Parameter: Debuger --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Debuger</maml:name> <maml:description> <maml:para>Debuger return original exceptions.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: PSWUSettings --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>PSWUSettings</maml:name> <maml:description> <maml:para>Required parameter for -SendReport.</maml:para> <maml:para>Passes the parameters (as hashtable) necessary to send the report: \r\n@{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25];[Subject="Alternative Subject"];[Properties="Alternative object properties"];[Style="Table|List"]}</maml:para> <maml:para>Send parameters can also be saved to a PSWUSettings.xml file in ModuleBase path: \r\nExport-Clixml @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25]}"</maml:para> </maml:description> <command:parameterValue required="true">Hashtable</command:parameterValue> <dev:type> <maml:name>System.Collections.Hashtable</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: SendReport --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>SendReport</maml:name> <maml:description> <maml:para>Send report email to specific recipients.</maml:para> <maml:para>Requires the parameter -PSWUSettings or declare the PSWUSettings.xml file in ModuleBase path.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: Silent --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Silent</maml:name> <maml:description> <maml:para>Return true/false only.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:syntaxItem> </command:syntax> <command:parameters> <!-- Parameter: SendReport --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>SendReport</maml:name> <maml:description> <maml:para>Send report email to specific recipients.</maml:para> <maml:para>Requires the parameter -PSWUSettings or declare the PSWUSettings.xml file in ModuleBase path.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: PSWUSettings --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>PSWUSettings</maml:name> <maml:description> <maml:para>Required parameter for -SendReport.</maml:para> <maml:para>Passes the parameters (as hashtable) necessary to send the report: \r\n@{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25];[Subject="Alternative Subject"];[Properties="Alternative object properties"];[Style="Table|List"]}</maml:para> <maml:para>Send parameters can also be saved to a PSWUSettings.xml file in ModuleBase path: \r\nExport-Clixml @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25]}"</maml:para> </maml:description> <command:parameterValue required="true">Hashtable</command:parameterValue> <dev:type> <maml:name>System.Collections.Hashtable</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Silent --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Silent</maml:name> <maml:description> <maml:para>Return true/false only.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: Debuger --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Debuger</maml:name> <maml:description> <maml:para>Debuger return original exceptions.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues> <!-- OutputType: InstallerStatus --> <command:returnValue> <dev:type> <maml:name>PSWindowsUpdate.InstallerStatus</maml:name> <maml:uri /> </dev:type> <maml:description> <maml:para>OutputType for InstallerStatus objects.</maml:para> </maml:description> </command:returnValue> </command:returnValues> <command:examples> <command:example> <maml:title>---------- EXAMPLE 1 ----------</maml:title> <dev:code>Check if Windows Update Installer is busy. Get-WUInstallerStatus ComputerName IsBusy ------------ ------ MG-PC False</dev:code> </command:example> <command:example> <maml:title>---------- EXAMPLE 2 ----------</maml:title> <dev:code>Check if Windows Update Installer is busy in silent mode. Return only True (isBusy) or False (isFree). Get-WUInstallerStatus -Silent False</dev:code> </command:example> </command:examples> <maml:relatedLinks> <maml:navigationLink> <maml:linkText>Author Blog</maml:linkText> <maml:uri>http://commandlinegeeks.com/</maml:uri> </maml:navigationLink> </maml:relatedLinks> </command:command> <!-- Cmdlet: Get-WUJob --> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10"> <command:details> <command:name>Get-WUJob</command:name> <command:verb>Get</command:verb> <command:noun>WUJob</command:noun> <maml:description> <maml:para>Get invoked WUJob.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Use Get-WUJob cmdlet to get invoked WUJob in Task Scheduler.</maml:para> </maml:description> <command:syntax> <!-- Parameter set: __AllParameterSets --> <command:syntaxItem> <maml:name>Get-WUJob</maml:name> <!-- Parameter: ClearExpired --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ClearExpired</maml:name> <maml:description> <maml:para>Clear expired WUJob.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: ComputerName --> <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named"> <maml:name>ComputerName</maml:name> <maml:description> <maml:para>Specify one or more computer names for remote connection.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Credential --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Credential</maml:name> <maml:description> <maml:para>Specify alternative credential.</maml:para> </maml:description> <command:parameterValue required="true">PSCredential</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.PSCredential</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Debuger --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Debuger</maml:name> <maml:description> <maml:para>Debuger return original exceptions.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: PSWUSettings --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>PSWUSettings</maml:name> <maml:description> <maml:para>Required parameter for -SendReport.</maml:para> <maml:para>Passes the parameters (as hashtable) necessary to send the report: \r\n@{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25];[Subject="Alternative Subject"];[Properties="Alternative object properties"];[Style="Table|List"]}</maml:para> <maml:para>Send parameters can also be saved to a PSWUSettings.xml file in ModuleBase path: \r\nExport-Clixml @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25]}"</maml:para> </maml:description> <command:parameterValue required="true">Hashtable</command:parameterValue> <dev:type> <maml:name>System.Collections.Hashtable</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: TaskName --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>TaskName</maml:name> <maml:description> <maml:para>Specify custom name for Task Scheduler job. Default is 'PSWindowsUpdate'.</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> </command:parameter> </command:syntaxItem> </command:syntax> <command:parameters> <!-- Parameter: ComputerName --> <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named"> <maml:name>ComputerName</maml:name> <maml:description> <maml:para>Specify one or more computer names for remote connection.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Credential --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Credential</maml:name> <maml:description> <maml:para>Specify alternative credential.</maml:para> </maml:description> <command:parameterValue required="true">PSCredential</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.PSCredential</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: PSWUSettings --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>PSWUSettings</maml:name> <maml:description> <maml:para>Required parameter for -SendReport.</maml:para> <maml:para>Passes the parameters (as hashtable) necessary to send the report: \r\n@{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25];[Subject="Alternative Subject"];[Properties="Alternative object properties"];[Style="Table|List"]}</maml:para> <maml:para>Send parameters can also be saved to a PSWUSettings.xml file in ModuleBase path: \r\nExport-Clixml @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25]}"</maml:para> </maml:description> <command:parameterValue required="true">Hashtable</command:parameterValue> <dev:type> <maml:name>System.Collections.Hashtable</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: TaskName --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>TaskName</maml:name> <maml:description> <maml:para>Specify custom name for Task Scheduler job. Default is 'PSWindowsUpdate'.</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: ClearExpired --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ClearExpired</maml:name> <maml:description> <maml:para>Clear expired WUJob.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: Debuger --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Debuger</maml:name> <maml:description> <maml:para>Debuger return original exceptions.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes> <command:inputType> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> <maml:description> <maml:para>Specify one or more computer names for remote connection.</maml:para> </maml:description> </command:inputType> </command:inputTypes> <command:returnValues> <!-- OutputType: WUJob --> <command:returnValue> <dev:type> <maml:name>PSWindowsUpdate.WUJob</maml:name> <maml:uri /> </dev:type> <maml:description> <maml:para>OutputType for WUJob.</maml:para> </maml:description> </command:returnValue> </command:returnValues> <command:examples> <command:example> <maml:title>---------- EXAMPLE 1 ----------</maml:title> <dev:code>Get invoked WUJob on remote machine. Get-WUJob -ComputerName MG-PC</dev:code> </command:example> </command:examples> <maml:relatedLinks> <maml:navigationLink> <maml:linkText>Author Blog</maml:linkText> <maml:uri>http://commandlinegeeks.com/</maml:uri> </maml:navigationLink> </maml:relatedLinks> </command:command> <!-- Cmdlet: Invoke-WUJob --> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10"> <command:details> <command:name>Invoke-WUJob</command:name> <command:verb>Invoke</command:verb> <command:noun>WUJob</command:noun> <maml:description> <maml:para>Invoke WUJobs by Task Schduler.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Use Invoke-WUJobs cmdlet to invoke PSWindowsUpdate actions remotly. It Based on TaskScheduler because CreateUpdateDownloader() and CreateUpdateInstaller() methods can't be called from a remote computer - E_ACCESSDENIED.</maml:para>
      <maml:para>Note: Because we do not have the ability to interact, is recommended use -AcceptAll for Install-WindowsUpdate.</maml:para>
    </maml:description>
    <command:syntax>
      <!-- Parameter set: TriggerDate -->
      <command:syntaxItem>
        <maml:name>Invoke-WUJob</maml:name>
        <!-- Parameter: TriggerDate -->
        <command:parameter required="true" globbing="false" pipelineInput="false" position="named">
          <maml:name>TriggerDate</maml:name>
          <maml:description>
            <maml:para>Specify Time trigger for Task Scheduler job.</maml:para>
          </maml:description>
          <command:parameterValue required="true">DateTime</command:parameterValue>
          <dev:type>
            <maml:name>System.DateTime</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: ComputerName -->
        <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named">
          <maml:name>ComputerName</maml:name>
          <maml:description>
            <maml:para>Specify one or more computer names for remote connection.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string[]</command:parameterValue>
          <dev:type>
            <maml:name>System.String[]</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: Credential -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Credential</maml:name>
          <maml:description>
            <maml:para>Specify alternative credential.</maml:para>
          </maml:description>
          <command:parameterValue required="true">PSCredential</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.PSCredential</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: Debuger -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Debuger</maml:name>
          <maml:description>
            <maml:para>Debuger return original exceptions.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: EndBoundary -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>EndBoundary</maml:name>
          <maml:description>
            <maml:para>Specify EndBoundary for Task Scheduler trigger.</maml:para>
          </maml:description>
          <command:parameterValue required="true">DateTime</command:parameterValue>
          <dev:type>
            <maml:name>System.DateTime</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: Force -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Force</maml:name>
          <maml:description>
            <maml:para>Force update old Task Scheduler Job if it's available.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: Hidden --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Hidden</maml:name> <maml:description> <maml:para>Specify if task must be hidden. Default is true.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>True</dev:defaultValue> </command:parameter> <!-- Parameter: Script --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Script</maml:name> <maml:description> <maml:para>Specify PowerShell script that you what to run. Default is {ipmo PSWindowsUpdate; Get-WindowsUpdate -AcceptAll -Install | Out-File $Env:TEMP\PSWindowsUpdate.log}</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>ipmo PSWindowsUpdate; Get-WindowsUpdate -AcceptAll -Install | Out-File $Env:TEMP\PSWindowsUpdate.log</dev:defaultValue> </command:parameter> <!-- Parameter: TaskName --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>TaskName</maml:name> <maml:description> <maml:para>Specify custom name for Task Scheduler job. Default is 'PSWindowsUpdate'.</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>PSWindowsUpdate</dev:defaultValue> </command:parameter> </command:syntaxItem> <!-- Parameter set: TriggerAtStart --> <command:syntaxItem> <maml:name>Invoke-WUJob</maml:name> <!-- Parameter: TriggerAtStart --> <command:parameter required="true" globbing="false" pipelineInput="false" position="named"> <maml:name>TriggerAtStart</maml:name> <maml:description> <maml:para>Specify system startup trigger for Task Scheduler job.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: ComputerName --> <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named"> <maml:name>ComputerName</maml:name> <maml:description> <maml:para>Specify one or more computer names for remote connection.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Credential --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Credential</maml:name> <maml:description> <maml:para>Specify alternative credential.</maml:para> </maml:description> <command:parameterValue required="true">PSCredential</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.PSCredential</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Debuger --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Debuger</maml:name> <maml:description> <maml:para>Debuger return original exceptions.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: EndBoundary --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>EndBoundary</maml:name> <maml:description> <maml:para>Specify EndBoundary for Task Scheduler trigger.</maml:para> </maml:description> <command:parameterValue required="true">DateTime</command:parameterValue> <dev:type> <maml:name>System.DateTime</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue> </command:parameter> <!-- Parameter: Force --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Force</maml:name> <maml:description> <maml:para>Force update old Task Scheduler Job if it's available.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: Hidden -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Hidden</maml:name>
          <maml:description>
            <maml:para>Specify if task must be hidden. Default is true.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>True</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: Script -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Script</maml:name>
          <maml:description>
            <maml:para>Specify PowerShell script that you what to run. Default is {ipmo PSWindowsUpdate; Get-WindowsUpdate -AcceptAll -Install | Out-File $Env:TEMP\PSWindowsUpdate.log}</maml:para>
          </maml:description>
          <command:parameterValue required="true">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>ipmo PSWindowsUpdate; Get-WindowsUpdate -AcceptAll -Install | Out-File $Env:TEMP\PSWindowsUpdate.log</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: TaskName -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>TaskName</maml:name>
          <maml:description>
            <maml:para>Specify custom name for Task Scheduler job. Default is 'PSWindowsUpdate'.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>PSWindowsUpdate</dev:defaultValue>
        </command:parameter>
      </command:syntaxItem>
      <!-- Parameter set: RunNow -->
      <command:syntaxItem>
        <maml:name>Invoke-WUJob</maml:name>
        <!-- Parameter: RunNow -->
        <command:parameter required="true" globbing="false" pipelineInput="false" position="named">
          <maml:name>RunNow</maml:name>
          <maml:description>
            <maml:para>Run Task Scheduler job immediately.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: ComputerName -->
        <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named">
          <maml:name>ComputerName</maml:name>
          <maml:description>
            <maml:para>Specify one or more computer names for remote connection.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string[]</command:parameterValue>
          <dev:type>
            <maml:name>System.String[]</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: Credential -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Credential</maml:name>
          <maml:description>
            <maml:para>Specify alternative credential.</maml:para>
          </maml:description>
          <command:parameterValue required="true">PSCredential</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.PSCredential</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: Debuger -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Debuger</maml:name>
          <maml:description>
            <maml:para>Debuger return original exceptions.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: EndBoundary -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>EndBoundary</maml:name>
          <maml:description>
            <maml:para>Specify EndBoundary for Task Scheduler trigger.</maml:para>
          </maml:description>
          <command:parameterValue required="true">DateTime</command:parameterValue>
          <dev:type>
            <maml:name>System.DateTime</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: Force -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Force</maml:name>
          <maml:description>
            <maml:para>Force update old Task Scheduler Job if it's available.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: Hidden --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Hidden</maml:name> <maml:description> <maml:para>Specify if task must be hidden. Default is true.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>True</dev:defaultValue> </command:parameter> <!-- Parameter: Script --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Script</maml:name> <maml:description> <maml:para>Specify PowerShell script that you what to run. Default is {ipmo PSWindowsUpdate; Get-WindowsUpdate -AcceptAll -Install | Out-File $Env:TEMP\PSWindowsUpdate.log}</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>ipmo PSWindowsUpdate; Get-WindowsUpdate -AcceptAll -Install | Out-File $Env:TEMP\PSWindowsUpdate.log</dev:defaultValue> </command:parameter> <!-- Parameter: TaskName --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>TaskName</maml:name> <maml:description> <maml:para>Specify custom name for Task Scheduler job. Default is 'PSWindowsUpdate'.</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>PSWindowsUpdate</dev:defaultValue> </command:parameter> </command:syntaxItem> </command:syntax> <command:parameters> <!-- Parameter: ComputerName --> <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named"> <maml:name>ComputerName</maml:name> <maml:description> <maml:para>Specify one or more computer names for remote connection.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Credential --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Credential</maml:name> <maml:description> <maml:para>Specify alternative credential.</maml:para> </maml:description> <command:parameterValue required="true">PSCredential</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.PSCredential</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: TaskName --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>TaskName</maml:name> <maml:description> <maml:para>Specify custom name for Task Scheduler job. Default is 'PSWindowsUpdate'.</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>PSWindowsUpdate</dev:defaultValue> </command:parameter> <!-- Parameter: Hidden --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Hidden</maml:name> <maml:description> <maml:para>Specify if task must be hidden. Default is true.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>True</dev:defaultValue> </command:parameter> <!-- Parameter: EndBoundary --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>EndBoundary</maml:name> <maml:description> <maml:para>Specify EndBoundary for Task Scheduler trigger.</maml:para> </maml:description> <command:parameterValue required="true">DateTime</command:parameterValue> <dev:type> <maml:name>System.DateTime</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue> </command:parameter> <!-- Parameter: TriggerDate --> <command:parameter required="true" globbing="false" pipelineInput="false" position="named"> <maml:name>TriggerDate</maml:name> <maml:description> <maml:para>Specify Time trigger for Task Scheduler job.</maml:para> </maml:description> <command:parameterValue required="true">DateTime</command:parameterValue> <dev:type> <maml:name>System.DateTime</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue> </command:parameter> <!-- Parameter: TriggerAtStart --> <command:parameter required="true" globbing="false" pipelineInput="false" position="named"> <maml:name>TriggerAtStart</maml:name> <maml:description> <maml:para>Specify system startup trigger for Task Scheduler job.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: RunNow --> <command:parameter required="true" globbing="false" pipelineInput="false" position="named"> <maml:name>RunNow</maml:name> <maml:description> <maml:para>Run Task Scheduler job immediately.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: Script --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Script</maml:name> <maml:description> <maml:para>Specify PowerShell script that you what to run. Default is {ipmo PSWindowsUpdate; Get-WindowsUpdate -AcceptAll -Install | Out-File $Env:TEMP\PSWindowsUpdate.log}</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>ipmo PSWindowsUpdate; Get-WindowsUpdate -AcceptAll -Install | Out-File $Env:TEMP\PSWindowsUpdate.log</dev:defaultValue> </command:parameter> <!-- Parameter: Force --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Force</maml:name> <maml:description> <maml:para>Force update old Task Scheduler Job if it's available.</maml:para>
        </maml:description>
        <command:parameterValue required="true">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
      <!-- Parameter: Debuger -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>Debuger</maml:name>
        <maml:description>
          <maml:para>Debuger return original exceptions.</maml:para>
        </maml:description>
        <command:parameterValue required="true">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
    </command:parameters>
    <command:inputTypes>
      <command:inputType>
        <dev:type>
          <maml:name>System.String[]</maml:name>
          <maml:uri />
        </dev:type>
        <maml:description>
          <maml:para>Specify one or more computer names for remote connection.</maml:para>
        </maml:description>
      </command:inputType>
    </command:inputTypes>
    <command:returnValues />
    <command:examples>
      <command:example>
        <maml:title>----------  EXAMPLE 1  ----------</maml:title>
        <dev:code>Invoke Install-WindowsUpdate on remote machine today at 6:00 PM.

Invoke-WUJob -ComputerName MG-PC -Script "ipmo PSWindowsUpdate; Install-WindowsUpdate -AcceptAll | Out-File C:\PSWindowsUpdate.log" -TriggerDate (Get-Date -Hour 18 -Minute 0 -Second 0)
 
Confirm
Are you sure you want to perform this action?
Performing the operation "Invoke WU job: powershell.exe -Command "ipmo PSWindowsUpdate; Install-WindowsUpdate -AcceptAll | Out-File C:\PSWindowsUpdate.log"" on target "MG-PC".
[Y] Yes[A] Yes to All  [N] No[L] No to All  [S] Suspend[?] Help (default is "Y"): Y</dev:code>
      </command:example>
    </command:examples>
    <maml:relatedLinks>
      <maml:navigationLink>
        <maml:linkText>Author Blog</maml:linkText>
        <maml:uri>http://commandlinegeeks.com/</maml:uri>
      </maml:navigationLink>
    </maml:relatedLinks>
  </command:command>
  <!-- Cmdlet: Get-WULastResults -->
  <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10">
    <command:details>
      <command:name>Get-WULastResults</command:name>
      <command:verb>Get</command:verb>
      <command:noun>WULastResults</command:noun>
      <maml:description>
        <maml:para>Get Windows Update results.</maml:para>
      </maml:description>
    </command:details>
    <maml:description>
      <maml:para>Use Get-WULastResults cmdlet to get Windows Update LastSearchSuccessDate and LastInstallationSuccessDate.</maml:para>
    </maml:description>
    <command:syntax>
      <!-- Parameter set: __AllParameterSets -->
      <command:syntaxItem>
        <maml:name>Get-WULastResults</maml:name>
        <!-- Parameter: ComputerName -->
        <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named">
          <maml:name>ComputerName</maml:name>
          <maml:description>
            <maml:para>Specify one or more computer names for remote connection.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string[]</command:parameterValue>
          <dev:type>
            <maml:name>System.String[]</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: Debuger -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Debuger</maml:name>
          <maml:description>
            <maml:para>Debuger return original exceptions.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: PSWUSettings -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>PSWUSettings</maml:name>
          <maml:description>
            <maml:para>Required parameter for -SendReport.</maml:para>
            <maml:para>Passes the parameters (as hashtable) necessary to send the report: \r\n@{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25];[Subject="Alternative Subject"];[Properties="Alternative object properties"];[Style="Table|List"]}</maml:para>
            <maml:para>Send parameters can also be saved to a PSWUSettings.xml file in ModuleBase path: \r\nExport-Clixml @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25]}"</maml:para>
          </maml:description>
          <command:parameterValue required="
true">Hashtable</command:parameterValue> <dev:type> <maml:name>System.Collections.Hashtable</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: SendReport --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>SendReport</maml:name> <maml:description> <maml:para>Send report email to specific recipients.</maml:para> <maml:para>Requires the parameter -PSWUSettings or declare the PSWUSettings.xml file in ModuleBase path.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:syntaxItem> </command:syntax> <command:parameters> <!-- Parameter: ComputerName --> <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named"> <maml:name>ComputerName</maml:name> <maml:description> <maml:para>Specify one or more computer names for remote connection.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: SendReport --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>SendReport</maml:name> <maml:description> <maml:para>Send report email to specific recipients.</maml:para> <maml:para>Requires the parameter -PSWUSettings or declare the PSWUSettings.xml file in ModuleBase path.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: PSWUSettings --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>PSWUSettings</maml:name> <maml:description> <maml:para>Required parameter for -SendReport.</maml:para> <maml:para>Passes the parameters (as hashtable) necessary to send the report: \r\n@{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25];[Subject="Alternative Subject"];[Properties="Alternative object properties"];[Style="Table|List"]}</maml:para> <maml:para>Send parameters can also be saved to a PSWUSettings.xml file in ModuleBase path: \r\nExport-Clixml @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25]}"</maml:para>
        </maml:description>
        <command:parameterValue required="true">Hashtable</command:parameterValue>
        <dev:type>
          <maml:name>System.Collections.Hashtable</maml:name>
          <maml:uri />
        </dev:type>
      </command:parameter>
      <!-- Parameter: Debuger -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>Debuger</maml:name>
        <maml:description>
          <maml:para>Debuger return original exceptions.</maml:para>
        </maml:description>
        <command:parameterValue required="true">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
    </command:parameters>
    <command:inputTypes>
      <command:inputType>
        <dev:type>
          <maml:name>System.String[]</maml:name>
          <maml:uri />
        </dev:type>
        <maml:description>
          <maml:para>Specify one or more computer names for remote connection.</maml:para>
        </maml:description>
      </command:inputType>
    </command:inputTypes>
    <command:returnValues>
      <!-- OutputType: LastResults -->
      <command:returnValue>
        <dev:type>
          <maml:name>PSWindowsUpdate.LastResults</maml:name>
          <maml:uri />
        </dev:type>
        <maml:description>
          <maml:para>OutputType for LastResult objects.</maml:para>
        </maml:description>
      </command:returnValue>
    </command:returnValues>
    <command:examples>
      <command:example>
        <maml:title>----------  EXAMPLE 1  ----------</maml:title>
        <dev:code>Get last Windows Update results.

Get-WULastResults
 
ComputerName LastSearchSuccessDate LastInstallationSuccessDate
------------ --------------------- ---------------------------
MG-PC        30.08.2017 14:02:11   03.07.2017 07:35:27</dev:code>
      </command:example>
    </command:examples>
    <maml:relatedLinks>
      <maml:navigationLink>
        <maml:linkText>Author Blog</maml:linkText>
        <maml:uri>http://commandlinegeeks.com/</maml:uri>
      </maml:navigationLink>
    </maml:relatedLinks>
  </command:command>
  <!-- Cmdlet: Update-WUModule -->
  <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10">
    <command:details>
      <command:name>Update-WUModule</command:name>
      <command:verb>Update</command:verb>
      <command:noun>WUModule</command:noun>
      <maml:description>
        <maml:para>Update PSWindowsUpdate module.</maml:para>
      </maml:description>
    </command:details>
    <maml:description>
      <maml:para>Use Use Update-WUModule cmdlet to remote update PSWindowsUpdate module.</maml:para>
    </maml:description>
    <command:syntax>
      <!-- Parameter set: Local -->
      <command:syntaxItem>
        <maml:name>Update-WUModule</maml:name>
        <!-- Parameter: ComputerName -->
        <command:parameter required="true" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named">
          <maml:name>ComputerName</maml:name>
          <maml:description>
            <maml:para>Specify one or more computer names for remote connection.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string[]</command:parameterValue>
          <dev:type>
            <maml:name>System.String[]</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: Local -->
        <command:parameter required="true" globbing="false" pipelineInput="false" position="named">
          <maml:name>Local</maml:name>
          <maml:description>
            <maml:para>Update from current module.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: Credential -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Credential</maml:name>
          <maml:description>
            <maml:para>Specify alternative credential.</maml:para>
          </maml:description>
          <command:parameterValue required="true">PSCredential</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.PSCredential</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: Debuger -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Debuger</maml:name>
          <maml:description>
            <maml:para>Debuger return original exceptions.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
      </command:syntaxItem>
      <!-- Parameter set: Online -->
      <command:syntaxItem>
        <maml:name>Update-WUModule</maml:name>
        <!-- Parameter: Online -->
        <command:parameter required="true" globbing="false" pipelineInput="false" position="named">
          <maml:name>Online</maml:name>
          <maml:description>
            <maml:para>Update from PSGallery.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: ComputerName -->
        <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named">
          <maml:name>ComputerName</maml:name>
          <maml:description>
            <maml:para>Specify one or more computer names for remote connection.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string[]</command:parameterValue>
          <dev:type>
            <maml:name>System.String[]</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: Credential -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Credential</maml:name>
          <maml:description>
            <maml:para>Specify alternative credential.</maml:para>
          </maml:description>
          <command:parameterValue required="true">PSCredential</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.PSCredential</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: Debuger -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Debuger</maml:name>
          <maml:description>
            <maml:para>Debuger return original exceptions.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
      </command:syntaxItem>
    </command:syntax>
    <command:parameters>
      <!-- Parameter: ComputerName -->
      <command:parameter required="true" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named">
        <maml:name>ComputerName</maml:name>
        <maml:description>
          <maml:para>Specify one or more computer names for remote connection.</maml:para>
        </maml:description>
        <command:parameterValue required="true">string[]</command:parameterValue>
        <dev:type>
          <maml:name>System.String[]</maml:name>
          <maml:uri />
        </dev:type>
      </command:parameter>
      <!-- Parameter: Credential -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>Credential</maml:name>
        <maml:description>
          <maml:para>Specify alternative credential.</maml:para>
        </maml:description>
        <command:parameterValue required="true">PSCredential</command:parameterValue>
        <dev:type>
          <maml:name>System.Management.Automation.PSCredential</maml:name>
          <maml:uri />
        </dev:type>
      </command:parameter>
      <!-- Parameter: Online -->
      <command:parameter required="true" globbing="false" pipelineInput="false" position="named">
        <maml:name>Online</maml:name>
        <maml:description>
          <maml:para>Update from PSGallery.</maml:para>
        </maml:description>
        <command:parameterValue required="true">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
      <!-- Parameter: Local -->
      <command:parameter required="true" globbing="false" pipelineInput="false" position="named">
        <maml:name>Local</maml:name>
        <maml:description>
          <maml:para>Update from current module.</maml:para>
        </maml:description>
        <command:parameterValue required="true">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
      <!-- Parameter: Debuger -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>Debuger</maml:name>
        <maml:description>
          <maml:para>Debuger return original exceptions.</maml:para>
        </maml:description>
        <command:parameterValue required="true">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
    </command:parameters>
    <command:inputTypes>
      <command:inputType>
        <dev:type>
          <maml:name>System.String[]</maml:name>
          <maml:uri />
        </dev:type>
        <maml:description>
          <maml:para>Specify one or more computer names for remote connection.</maml:para>
        </maml:description>
      </command:inputType>
    </command:inputTypes>
    <command:returnValues />
    <command:examples>
      <command:example>
        <maml:title>----------  EXAMPLE 1  ----------</maml:title>
        <dev:code>Update PSWindowsUpdate module from PSGallery

Update-WUModule -ComputerName MG-PC -Online</dev:code>
      </command:example>
      <command:example>
        <maml:title>----------  EXAMPLE 2  ----------</maml:title>
        <dev:code>Update PSWindowsUpdate module from current serwer. Require SMB connection to destination machine.

Update-WUModule -ComputerName MG-PC -Local</dev:code>
      </command:example>
    </command:examples>
    <maml:relatedLinks>
      <maml:navigationLink>
        <maml:linkText>Author Blog</maml:linkText>
        <maml:uri>http://commandlinegeeks.com/</maml:uri>
      </maml:navigationLink>
    </maml:relatedLinks>
  </command:command>
  <!-- Cmdlet: Get-WURebootStatus -->
  <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10">
    <command:details>
      <command:name>Get-WURebootStatus</command:name>
      <command:verb>Get</command:verb>
      <command:noun>WURebootStatus</command:noun>
      <maml:description>
        <maml:para>Get Windows Update reboot status.</maml:para>
      </maml:description>
    </command:details>
    <maml:description>
      <maml:para>Use Get-WURebootStatus cmdlet to check if reboot is needed.</maml:para>
    </maml:description>
    <command:syntax>
      <!-- Parameter set: AutoReboot -->
      <command:syntaxItem>
        <maml:name>Get-WURebootStatus</maml:name>
        <!-- Parameter: AutoReboot -->
        <command:parameter required="true" globbing="false" pipelineInput="false" position="named">
          <maml:name>AutoReboot</maml:name>
          <maml:description>
            <maml:para>Do not ask for reboot if it needed, but do it now.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: ComputerName -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>ComputerName</maml:name>
          <maml:description>
            <maml:para>Specify one or more computer names for remote connection.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string[]</command:parameterValue>
          <dev:type>
            <maml:name>System.String[]</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: Debuger -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Debuger</maml:name>
          <maml:description>
            <maml:para>Debuger return original exceptions.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: PSWUSettings -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>PSWUSettings</maml:name>
          <maml:description>
            <maml:para>Required parameter for -SendReport.</maml:para>
            <maml:para>Passes the parameters (as hashtable) necessary to send the report: \r\n@{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25];[Subject="Alternative Subject"];[Properties="Alternative object properties"];[Style="Table|List"]}</maml:para>
            <maml:para>Send parameters can also be saved to a PSWUSettings.xml file in ModuleBase path: \r\nExport-Clixml @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25]}"</maml:para>
          </maml:description>
          <command:parameterValue required="
true">Hashtable</command:parameterValue> <dev:type> <maml:name>System.Collections.Hashtable</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: SendReport --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>SendReport</maml:name> <maml:description> <maml:para>Send report email to specific recipients.</maml:para> <maml:para>Requires the parameter -PSWUSettings or declare the PSWUSettings.xml file in ModuleBase path.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: Silent --> <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named"> <maml:name>Silent</maml:name> <maml:description> <maml:para>Return true/false only.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:syntaxItem> <!-- Parameter set: ScheduleReboot --> <command:syntaxItem> <maml:name>Get-WURebootStatus</maml:name> <!-- Parameter: ScheduleReboot --> <command:parameter required="true" globbing="false" pipelineInput="false" position="named"> <maml:name>ScheduleReboot</maml:name> <maml:description> <maml:para>Specify schedule time for reboot.</maml:para> </maml:description> <command:parameterValue required="true">DateTime</command:parameterValue> <dev:type> <maml:name>System.DateTime</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue> </command:parameter> <!-- Parameter: ComputerName --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ComputerName</maml:name> <maml:description> <maml:para>Specify one or more computer names for remote connection.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Debuger --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Debuger</maml:name> <maml:description> <maml:para>Debuger return original exceptions.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: PSWUSettings --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>PSWUSettings</maml:name> <maml:description> <maml:para>Required parameter for -SendReport.</maml:para> <maml:para>Passes the parameters (as hashtable) necessary to send the report: \r\n@{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25];[Subject="Alternative Subject"];[Properties="Alternative object properties"];[Style="Table|List"]}</maml:para> <maml:para>Send parameters can also be saved to a PSWUSettings.xml file in ModuleBase path: \r\nExport-Clixml @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25]}"</maml:para>
          </maml:description>
          <command:parameterValue required="true">Hashtable</command:parameterValue>
          <dev:type>
            <maml:name>System.Collections.Hashtable</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: SendReport -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>SendReport</maml:name>
          <maml:description>
            <maml:para>Send report email to specific recipients.</maml:para>
            <maml:para>Requires the parameter -PSWUSettings or declare the PSWUSettings.xml file in ModuleBase path.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: Silent -->
        <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named">
          <maml:name>Silent</maml:name>
          <maml:description>
            <maml:para>Return true/false only.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
      </command:syntaxItem>
      <!-- Parameter set: ManualReboot -->
      <command:syntaxItem>
        <maml:name>Get-WURebootStatus</maml:name>
        <!-- Parameter: ComputerName -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>ComputerName</maml:name>
          <maml:description>
            <maml:para>Specify one or more computer names for remote connection.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string[]</command:parameterValue>
          <dev:type>
            <maml:name>System.String[]</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: Debuger -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Debuger</maml:name>
          <maml:description>
            <maml:para>Debuger return original exceptions.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: PSWUSettings -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>PSWUSettings</maml:name>
          <maml:description>
            <maml:para>Required parameter for -SendReport.</maml:para>
            <maml:para>Passes the parameters (as hashtable) necessary to send the report: \r\n@{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25];[Subject="Alternative Subject"];[Properties="Alternative object properties"];[Style="Table|List"]}</maml:para>
            <maml:para>Send parameters can also be saved to a PSWUSettings.xml file in ModuleBase path: \r\nExport-Clixml @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25]}"</maml:para>
          </maml:description>
          <command:parameterValue required="
true">Hashtable</command:parameterValue> <dev:type> <maml:name>System.Collections.Hashtable</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: SendReport --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>SendReport</maml:name> <maml:description> <maml:para>Send report email to specific recipients.</maml:para> <maml:para>Requires the parameter -PSWUSettings or declare the PSWUSettings.xml file in ModuleBase path.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: Silent --> <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named"> <maml:name>Silent</maml:name> <maml:description> <maml:para>Return true/false only.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:syntaxItem> <!-- Parameter set: CancelReboot --> <command:syntaxItem> <maml:name>Get-WURebootStatus</maml:name> <!-- Parameter: CancelReboot --> <command:parameter required="true" globbing="false" pipelineInput="false" position="named"> <maml:name>CancelReboot</maml:name> <maml:description> <maml:para>Cancel scheduled reboot.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: ComputerName --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ComputerName</maml:name> <maml:description> <maml:para>Specify one or more computer names for remote connection.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Debuger --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Debuger</maml:name> <maml:description> <maml:para>Debuger return original exceptions.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: PSWUSettings --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>PSWUSettings</maml:name> <maml:description> <maml:para>Required parameter for -SendReport.</maml:para> <maml:para>Passes the parameters (as hashtable) necessary to send the report: \r\n@{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25];[Subject="Alternative Subject"];[Properties="Alternative object properties"];[Style="Table|List"]}</maml:para> <maml:para>Send parameters can also be saved to a PSWUSettings.xml file in ModuleBase path: \r\nExport-Clixml @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25]}"</maml:para>
          </maml:description>
          <command:parameterValue required="true">Hashtable</command:parameterValue>
          <dev:type>
            <maml:name>System.Collections.Hashtable</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: SendReport -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>SendReport</maml:name>
          <maml:description>
            <maml:para>Send report email to specific recipients.</maml:para>
            <maml:para>Requires the parameter -PSWUSettings or declare the PSWUSettings.xml file in ModuleBase path.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: Silent -->
        <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named">
          <maml:name>Silent</maml:name>
          <maml:description>
            <maml:para>Return true/false only.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
      </command:syntaxItem>
    </command:syntax>
    <command:parameters>
      <!-- Parameter: ComputerName -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>ComputerName</maml:name>
        <maml:description>
          <maml:para>Specify one or more computer names for remote connection.</maml:para>
        </maml:description>
        <command:parameterValue required="true">string[]</command:parameterValue>
        <dev:type>
          <maml:name>System.String[]</maml:name>
          <maml:uri />
        </dev:type>
      </command:parameter>
      <!-- Parameter: SendReport -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>SendReport</maml:name>
        <maml:description>
          <maml:para>Send report email to specific recipients.</maml:para>
          <maml:para>Requires the parameter -PSWUSettings or declare the PSWUSettings.xml file in ModuleBase path.</maml:para>
        </maml:description>
        <command:parameterValue required="true">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>System.Management.Automation.SwitchParameter</maml:name>
          <maml:uri />
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
      <!-- Parameter: PSWUSettings -->
      <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
        <maml:name>PSWUSettings</maml:name>
        <maml:description>
          <maml:para>Required parameter for -SendReport.</maml:para>
          <maml:para>Passes the parameters (as hashtable) necessary to send the report: \r\n@{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25];[Subject="Alternative Subject"];[Properties="Alternative object properties"];[Style="Table|List"]}</maml:para>
          <maml:para>Send parameters can also be saved to a PSWUSettings.xml file in ModuleBase path: \r\nExport-Clixml @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25]}"</maml:para>
        </maml:description>
        <command:parameterValue required="
true">Hashtable</command:parameterValue> <dev:type> <maml:name>System.Collections.Hashtable</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Silent --> <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named"> <maml:name>Silent</maml:name> <maml:description> <maml:para>Return true/false only.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: AutoReboot --> <command:parameter required="true" globbing="false" pipelineInput="false" position="named"> <maml:name>AutoReboot</maml:name> <maml:description> <maml:para>Do not ask for reboot if it needed, but do it now.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: ScheduleReboot --> <command:parameter required="true" globbing="false" pipelineInput="false" position="named"> <maml:name>ScheduleReboot</maml:name> <maml:description> <maml:para>Specify schedule time for reboot.</maml:para> </maml:description> <command:parameterValue required="true">DateTime</command:parameterValue> <dev:type> <maml:name>System.DateTime</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>01.01.0001 00:00:00</dev:defaultValue> </command:parameter> <!-- Parameter: CancelReboot --> <command:parameter required="true" globbing="false" pipelineInput="false" position="named"> <maml:name>CancelReboot</maml:name> <maml:description> <maml:para>Cancel scheduled reboot.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: Debuger --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Debuger</maml:name> <maml:description> <maml:para>Debuger return original exceptions.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes> <command:inputType> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <maml:description> <maml:para>Return true/false only.</maml:para> </maml:description> </command:inputType> </command:inputTypes> <command:returnValues> <!-- OutputType: RebootStatus --> <command:returnValue> <dev:type> <maml:name>PSWindowsUpdate.RebootStatus</maml:name> <maml:uri /> </dev:type> <maml:description> <maml:para>OutputType for RebootStatus objects.</maml:para> </maml:description> </command:returnValue> </command:returnValues> <command:examples> <command:example> <maml:title>---------- EXAMPLE 1 ----------</maml:title> <dev:code>Check if restart is necessary. If yes, ask to do this or don't. Get-WURebootStatus Reboot is required. Do it now ? [Y/N] (default is 'N') ComputerName RebootRequired RebootScheduled ------------ -------------- --------------- MG-PC True</dev:code> </command:example> <command:example> <maml:title>---------- EXAMPLE 2 ----------</maml:title> <dev:code>Check if restart is necessary. If yes, then shedule it. Get-WURebootStatus -ScheduleReboot (Get-Date -Hour 18 -Minute 0 -Second 0) ComputerName RebootRequired RebootScheduled ------------ -------------- --------------- MG-PC True 31.08.2017 18:00:00</dev:code> </command:example> </command:examples> <maml:relatedLinks> <maml:navigationLink> <maml:linkText>Author Blog</maml:linkText> <maml:uri>http://commandlinegeeks.com/</maml:uri> </maml:navigationLink> </maml:relatedLinks> </command:command> <!-- Cmdlet: Enable-WURemoting --> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10"> <command:details> <command:name>Enable-WURemoting</command:name> <command:verb>Enable</command:verb> <command:noun>WURemoting</command:noun> <maml:description> <maml:para>Enable firewall rules for PSWindowsUpdate remoting.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Use Enable-WURemoting cmdlet to enable nessesery firewall rules for PSWindowsUpdate remoting.</maml:para> </maml:description> <command:syntax> <!-- Parameter set: __AllParameterSets --> <command:syntaxItem> <maml:name>Enable-WURemoting</maml:name> <!-- Parameter: Debuger --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Debuger</maml:name> <maml:description> <maml:para>Debuger return original exceptions.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: LocalAccountTokenFilterPolicy --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>LocalAccountTokenFilterPolicy</maml:name> <maml:description> <maml:para>Set LocalAccountTokenFilterPolicy registry entry to builds an elevated token on the target remote computer.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: WinRMPublic --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>WinRMPublic</maml:name> <maml:description> <maml:para>Enable WinRM Public access from all subnets. Default access is only enabled from local subnet. Required for workgroup computers.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:syntaxItem> </command:syntax> <command:parameters> <!-- Parameter: LocalAccountTokenFilterPolicy --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>LocalAccountTokenFilterPolicy</maml:name> <maml:description> <maml:para>Set LocalAccountTokenFilterPolicy registry entry to builds an elevated token on the target remote computer.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: WinRMPublic --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>WinRMPublic</maml:name> <maml:description> <maml:para>Enable WinRM Public access from all subnets. Default access is only enabled from local subnet. Required for workgroup computers.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: Debuger --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Debuger</maml:name> <maml:description> <maml:para>Debuger return original exceptions.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes /> <command:returnValues /> <command:examples> <command:example> <maml:title>---------- EXAMPLE 1 ----------</maml:title> <dev:code>Enable firewall rules for PSWindowsUpdate remoting. Enable-WURemoting -Verbose</dev:code> </command:example> </command:examples> <maml:relatedLinks> <maml:navigationLink> <maml:linkText>Author Blog</maml:linkText> <maml:uri>http://commandlinegeeks.com/</maml:uri> </maml:navigationLink> </maml:relatedLinks> </command:command> <!-- Cmdlet: Add-WUServiceManager --> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10"> <command:details> <command:name>Add-WUServiceManager</command:name> <command:verb>Add</command:verb> <command:noun>WUServiceManager</command:noun> <maml:description> <maml:para>Register a new Windows Update API Service Manager.</maml:para> </maml:description> </command:details> <maml:description> <maml:para>Use Add-WUServiceManager cmdlet to register new Windows Update Service Manager.</maml:para> <maml:para>It's combination old 'Add-WUServiceManager' and 'Add-WUOfflineSync' functions to register online and offline ServiceManager</maml:para> </maml:description> <command:syntax> <!-- Parameter set: RemoteServiceID --> <command:syntaxItem> <maml:name>Add-WUServiceManager</maml:name> <!-- Parameter: ServiceID --> <command:parameter required="true" globbing="false" pipelineInput="false" position="named"> <maml:name>ServiceID</maml:name> <maml:description> <maml:para>An identifier for the service to be registered.</maml:para> <maml:para>Examples Of ServiceID: \r\n \r\n -- Windows Update 9482f4b4-e343-43b6-b170-9a65bc822c77 \r\n -- Microsoft Update 7971f918-a847-4430-9279-4a52d1efe18d \r\n -- Windows Store 117cab2d-82b1-4b5a-a08c-4d62dbee7782 \r\n -- Windows Server Update Service 3da21691-e39d-4da6-8a4b-b43877bcb1b7</maml:para> </maml:description> <command:parameterValue required="true">string</command:parameterValue> <dev:type> <maml:name>System.String</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: ComputerName --> <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named"> <maml:name>ComputerName</maml:name> <maml:description> <maml:para>Specify one or more computer names for remote connection.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Debuger --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Debuger</maml:name> <maml:description> <maml:para>Debuger return original exceptions.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: PSWUSettings --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>PSWUSettings</maml:name> <maml:description> <maml:para>Required parameter for -SendReport.</maml:para> <maml:para>Passes the parameters (as hashtable) necessary to send the report: \r\n@{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25];[Subject="Alternative Subject"];[Properties="Alternative object properties"];[Style="Table|List"]}</maml:para> <maml:para>Send parameters can also be saved to a PSWUSettings.xml file in ModuleBase path: \r\nExport-Clixml @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25]}"</maml:para>
          </maml:description>
          <command:parameterValue required="true">Hashtable</command:parameterValue>
          <dev:type>
            <maml:name>System.Collections.Hashtable</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: SendReport -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>SendReport</maml:name>
          <maml:description>
            <maml:para>Send report email to specific recipients.</maml:para>
            <maml:para>Requires the parameter -PSWUSettings or declare the PSWUSettings.xml file in ModuleBase path.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: Silent -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Silent</maml:name>
          <maml:description>
            <maml:para>Don't return output.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> </command:syntaxItem> <!-- Parameter set: MicrosoftUpdate --> <command:syntaxItem> <maml:name>Add-WUServiceManager</maml:name> <!-- Parameter: MicrosoftUpdate --> <command:parameter required="true" globbing="false" pipelineInput="false" position="named"> <maml:name>MicrosoftUpdate</maml:name> <maml:description> <maml:para>Register Microsoft Update Service Manager - '7971f918-a847-4430-9279-4a52d1efe18d'</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: ComputerName --> <command:parameter required="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="named"> <maml:name>ComputerName</maml:name> <maml:description> <maml:para>Specify one or more computer names for remote connection.</maml:para> </maml:description> <command:parameterValue required="true">string[]</command:parameterValue> <dev:type> <maml:name>System.String[]</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: Debuger --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Debuger</maml:name> <maml:description> <maml:para>Debuger return original exceptions.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: PSWUSettings --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>PSWUSettings</maml:name> <maml:description> <maml:para>Required parameter for -SendReport.</maml:para> <maml:para>Passes the parameters (as hashtable) necessary to send the report: \r\n@{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25];[Subject="Alternative Subject"];[Properties="Alternative object properties"];[Style="Table|List"]}</maml:para> <maml:para>Send parameters can also be saved to a PSWUSettings.xml file in ModuleBase path: \r\nExport-Clixml @{SmtpServer="your.smtp.server";From="sender@email.address";To="recipient@email.address";[Port=25]}"</maml:para> </maml:description> <command:parameterValue required="true">Hashtable</command:parameterValue> <dev:type> <maml:name>System.Collections.Hashtable</maml:name> <maml:uri /> </dev:type> </command:parameter> <!-- Parameter: SendReport --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>SendReport</maml:name> <maml:description> <maml:para>Send report email to specific recipients.</maml:para> <maml:para>Requires the parameter -PSWUSettings or declare the PSWUSettings.xml file in ModuleBase path.</maml:para> </maml:description> <command:parameterValue required="true">SwitchParameter</command:parameterValue> <dev:type> <maml:name>System.Management.Automation.SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>False</dev:defaultValue> </command:parameter> <!-- Parameter: Silent --> <command:parameter required="false" globbing="false" pipelineInput="false" position="named"> <maml:name>Silent</maml:name> <maml:description> <maml:para>Don't return output.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
      </command:syntaxItem>
      <!-- Parameter set: LocalServiceID -->
      <command:syntaxItem>
        <maml:name>Add-WUServiceManager</maml:name>
        <!-- Parameter: ServiceID -->
        <command:parameter required="true" globbing="false" pipelineInput="false" position="named">
          <maml:name>ServiceID</maml:name>
          <maml:description>
            <maml:para>An identifier for the service to be registered.</maml:para>
            <maml:para>Examples Of ServiceID: \r\n \r\n -- Windows Update 9482f4b4-e343-43b6-b170-9a65bc822c77 \r\n -- Microsoft Update 7971f918-a847-4430-9279-4a52d1efe18d \r\n -- Windows Store 117cab2d-82b1-4b5a-a08c-4d62dbee7782 \r\n -- Windows Server Update Service 3da21691-e39d-4da6-8a4b-b43877bcb1b7</maml:para>
          </maml:description>
          <command:parameterValue required="true">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: AddServiceFlag -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>AddServiceFlag</maml:name>
          <maml:description>
            <maml:para>A combination of AddServiceFlag values: \r\n0x1 - asfAllowPendingRegistration \r\n0x2 - asfAllowOnlineRegistration \r\n0x4 - asfRegisterServiceWithAU</maml:para>
          </maml:description>
          <command:parameterValue required="true">int</command:parameterValue>
          <dev:type>
            <maml:name>System.Int32</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>2</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: AuthorizationCabPath -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>AuthorizationCabPath</maml:name>
          <maml:description>
            <maml:para>The path of the Microsoft signed local cabinet file (.cab) that has the information that is required for a service registration. If empty, the update agent searches for the authorization cabinet file (.cab) during service registration when a network connection is available.</maml:para>
          </maml:description>
          <command:parameterValue required="true">string</command:parameterValue>
          <dev:type>
            <maml:name>System.String</maml:name>
            <maml:uri />
          </dev:type>
        </command:parameter>
        <!-- Parameter: Debuger -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>Debuger</maml:name>
          <maml:description>
            <maml:para>Debuger return original exceptions.</maml:para>
          </maml:description>
          <command:parameterValue required="true">SwitchParameter</command:parameterValue>
          <dev:type>
            <maml:name>System.Management.Automation.SwitchParameter</maml:name>
            <maml:uri />
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <!-- Parameter: PSWUSettings -->
        <command:parameter required="false" globbing="false" pipelineInput="false" position="named">
          <maml:name>PSWUSettings</maml:name>
          <maml:description>
            <maml:para>Required parameter for -SendReport.</maml:para>
            <maml:para>Passes the parameters (as hashtable) necessary to send the