forked from andreipintica/TSSV2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TSSv2_DEV.psm1
884 lines (813 loc) · 37.4 KB
/
TSSv2_DEV.psm1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
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
<#
.SYNOPSIS
DEV Components and Scenarios module for learning and demoing TSSv2 Framework usage.
This is NOT related to any specific POD and not designed for learning and troubleshooting.
.DESCRIPTION
DEV Components and Scenarios module for learning and demoing TSSv2 Framework usage.
This is NOT related to any specific POD and not designed for learning and troubleshooting.
.NOTES
Dev. Lead: milanmil
Authors : milanmil, waltere
Requires : PowerShell V4(Supported from Windows 8.1/Windows Server 2012 R2)
Version : see $global:TssVerDateDEV
.LINK
TSSv2 https://internal.support.services.microsoft.com/en-us/help/4619187
#>
<# latest changes
2023.01.23.0 [we] _DEV: added function DevTest
2022.12.07.0 [we] _DEV: add -Scenario DEV_General
2022.01.05.0 [we] added FW function calls which were previously defined in _NET
2021.11.10.0 [we] #_# replaced all 'Get-WmiObject' with 'Get-CimInstance' to be compatible with PowerShell v7
#>
$global:TssVerDateDEV= "2023.01.25.0"
#region --- ETW component trace Providers ---
# Normal trace -> data will be collected in a single file
$DEV_TEST1Providers = @(
'{CC85922F-DB41-11D2-9244-006008269001}' # LSA
'{6B510852-3583-4E2D-AFFE-A67F9F223438}' # Kerberos
)
# Normal trace with multi etl files
# Syntax is: GUID!filename!flags!level
# GUID is mandtory
# if filename is not provided TSSv2 will create etl using Providers name, i.e. dev_test2
# if flags is not provided, TSSv2 defaults to 0xffffffff
# if level is not provided, TSSv2 defaults to 0xff
$DEV_TEST2Providers = @(
'{98BF1CD3-583E-4926-95EE-A61BF3F46470}!CertCli!0xffffff!0x05'
'{6A71D062-9AFE-4F35-AD08-52134F85DFB9}!CertificationAuthority!0xff!0x07'
'{B40AEF77-892A-46F9-9109-438E399BB894}!CertCli!0xfffffe!0x04'
'{169EC169-5B77-4A3E-9DB6-441799D5CACB}!lsa!0xfffffffe'
'{5BBB6C18-AA45-49B1-A15F-085F7ED0AA90}!CertificationAuthority!0xC43EFF!0x06'
'{D0B639E0-E650-4D1D-8F39-1580ADE72784}!lsa!0xffffffff!0x0f'
)
# Single etl + multi flags
$DEV_TEST3Providers = @(
'{D0B639E0-E650-4D1D-8F39-1580ADE72784}!lsa!0xC43EFF'
'{169EC169-5B77-4A3E-9DB6-441799D5CACB}!lsa!0xffffff'
)
$DEV_TEST4Providers = @(
'{D0B639E0-E650-4D1D-8F39-1580ADE72784}!lsa!0xC43EFF'
'{169EC169-5B77-4A3E-9DB6-441799D5CACB}!lsa!0xffffff'
'{D0B639E0-E650-4D1D-8F39-1580ADE72784}!lsa!0xffffffff!0x0f'
'{5BBB6C18-AA45-49B1-A15F-085F7ED0AA90}!CertificationAuthority!0xC43EFF!0x06'
)
#select basic or full tracing option for the same etl guids using different flags
if ($global:CustomParams){
Switch ($global:CustomParams[0]){
"full" {$DEV_TEST5Providers = @(
'{D0B639E0-E650-4D1D-8F39-1580ADE72784}!lsa!0xffffffff'
'{169EC169-5B77-4A3E-9DB6-441799D5CACB}!lsa!0xffffffff'
)
}
"basic" {$DEV_TEST5Providers = @(
'{D0B639E0-E650-4D1D-8F39-1580ADE72784}!lsa!0xC43EFF'
'{169EC169-5B77-4A3E-9DB6-441799D5CACB}!lsa!0xffffff'
)
}
Default {$DEV_TEST5Providers = @(
'{D0B639E0-E650-4D1D-8F39-1580ADE72784}!lsa!0xC43EFF'
'{169EC169-5B77-4A3E-9DB6-441799D5CACB}!lsa!0xfffff!0x12'
)
}
}
}
#endregion --- ETW component trace Providers ---
#region --- Scenario definitions ---
$DEV_General_ETWTracingSwitchesStatus = [Ordered]@{
#'NET_Dummy' = $true
'CommonTask NET' = $True ## <------ the commontask can take one of "Dev", "NET", "ADS", "UEX", "DnD" and "SHA", or "Full" or "Mini"
'NetshScenario InternetClient_dbg' = $true
'Procmon' = $true
#'WPR General' = $true
'PerfMon ALL' = $true
'PSR' = $true
'Video' = $true
'SDP NET' = $True
'xray' = $True
'CollectComponentLog' = $True
}
$DEV_ScenarioTraceList = [Ordered]@{
'DEV_Scn1' = 'DEV scenario trace 1'
'DEV_Scn2' = 'DEV scenario trace 2'
}
# DEV_Scn1
$DEV_Scn1_ETWTracingSwitchesStatus = [Ordered]@{
'DEV_TEST1' = $true
#'DEV_TEST2' = $true # Multi etl file trace
#'DEV_TEST3' = $true # Single trace
#'DEV_TEST4' = $true
#'DEV_TEST5' = $true
#'Netsh' = $true
#'Netsh capturetype=both captureMultilayer=yes provider=Microsoft-Windows-PrimaryNetworkIcon provider={1701C7DC-045C-45C0-8CD6-4D42E3BBF387}' = $true
#'NetshMaxSize 4096' = $true
#'Procmon' = $true
#'ProcmonFilter ProcmonConfiguration.pmc' = $True
#'ProcmonPath C:\tools' = $True
#'WPR memory' = $true
#'WPR memory -onoffproblemdescription "test description"' = $true
#'skippdbgen' = $true
#'PerfMon smb' = $true
#'PerfIntervalSec 20' = $true
#'PerfMonlong general' = $true
#'PerfLongIntervalMin 40' = $true
#'NetshScenario InternetClient_dbg' = $true
#'NetshScenario InternetClient_dbg,dns_wpp' = $true
#'NetshScenario InternetClient_dbg,dns_wpp capturetype=both captureMultilayer=yes provider=Microsoft-Windows-PrimaryNetworkIcon provider={1701C7DC-045C-45C0-8CD6-4D42E3BBF387}' = $true
#'PSR' = $true
#'WFPdiag' = $true
#'RASdiag' = $true
#'PktMon' = $true
#'AddDescription' = $true
#'SDP rds' = $True
#'SDP setup,perf' = $True
#'SkipSDPList noNetadapters,skipBPA' = $True
#'xray' = $True
#'Video' = $True
#'SysMon' = $True
#'CommonTask Mini' = $True
#'CommonTask Full' = $True
#'CommonTask Dev' = $True
#'noBasicLog' = $True
#'noPSR' = $True
#'noVideo' = $True
#'Mini' = $True
#'NoSettingList noSDP,noXray,noBasiclog,noVideo,noPSR' = $True
#'Xperf Pool' = $True
#'XPerfMaxFile 4096' = $True
#'XperfTag TcpE+AleE+AfdE+AfdX' = $True
#'XperfPIDs 100' = $True
#'LiveKD Both' = $True
#'WireShark' = $True
#'TTD notepad.exe' = $True # Single process [<processname.exe>|<PID>]
#'TTD notepad.exe,cmd.exe' = $True # Multiple processes
#'TTD tokenbroker' = $True # Service name
#'TTD Microsoft.Windows.Photos' = $True # AppX
#"TTDPath $env:userprofile\Desktop\PartnerTTDRecorder_x86_x64\amd64\TTD" = $True # for downlevel OS TTD will find Partner tttracer in \Bin** folder
#'TTDMode Ring' = $True # choose [Full|Ring|onLaunch]
#'TTDMaxFile 2048' = $True
#'TTDOptions XXX' = $True
#'CollectComponentLog' = $True
#'Discard' = $True
#'ProcDump notepad.exe,mspaint.exe,tokenbroker' = $true
#'ProcDumpOption Both' = $true
#'ProcDumpInterval 3:10' = $True
#'GPResult Both' = $True
#'PoolMon Both' = $True
#'Handle Both' = $True
}
# DEV_Scn2
Switch (global:FwGetProductTypeFromReg)
{
"WinNT" {
$DEV_Scn2_ETWTracingSwitchesStatus = [Ordered]@{
'DEV_TEST1' = $true
'DEV_TEST2' = $true # Multi etl file trace
'DEV_TEST3' = $true
'DEV_TEST4' = $true # Single trace
'DEV_TEST5' = $False # Disabled trace
'UEX_Task' = $True # Outside of this module
}
}
"ServerNT" {
$DEV_Scn2_ETWTracingSwitchesStatus = [Ordered]@{
'DEV_TEST1' = $true
'DEV_TEST2' = $true
}
}
"LanmanNT" {
$DEV_Scn2_ETWTracingSwitchesStatus = [Ordered]@{
'DEV_TEST1' = $true
'DEV_TEST2' = $true
}
}
Default {
$DEV_Scn2_ETWTracingSwitchesStatus = [Ordered]@{
'DEV_TEST1' = $true
'DEV_TEST2' = $true
}
}
}
# Dev_Scn3 => Multi etl only
$DEV_Scn3_ETWTracingSwitchesStatus = [Ordered]@{
'DEV_TEST2' = $true # Multi etl file trace
}
#endregion --- Scenario definitions ---
#region Functions
#region Components Functions
#region -------------- DevTest -----------
# IMPORTANT: this trace should be used only for development and testing purposes
function DevTestPreStart
{
EnterFunc $MyInvocation.MyCommand.Name
LogInfoFile "[$($MyInvocation.MyCommand.Name)] .. started"
global:FwCollect_BasicLog
#### Various EVENT LOG actions ***
# A simple way for exporting EventLogs in .evtx and .txt format is done by function FwAddEvtLog ($EvtLogsLAPS array is defined at bottom of this file)
# Ex: ($EvtLogsLAPS) | ForEach-Object { FwAddEvtLog $_ _Stop_}
#Event Log - Set Log - Enable
$EventLogSetLogListOn = New-Object 'System.Collections.Generic.List[Object]'
$EventLogSetLogListOn = @( #LogName, enabled, retention, quiet, MaxSize
@("Microsoft-Windows-CAPI2/Operational", "true", "false", "true", "102400000"),
@("Microsoft-Windows-Kerberos/Operational", "true", "", "", "")
)
ForEach ($EventLog in $EventLogSetLogListOn)
{
global:FwEventLogsSet $EventLog[0] $EventLog[1] $EventLog[2] $EventLog[3] $EventLog[4]
}
#Event Log - Export Log
$EventLogExportLogList = New-Object 'System.Collections.Generic.List[Object]'
$EventLogExportLogList = @( #LogName, filename, overwrite
@("Microsoft-Windows-CAPI2/Operational", "c:\dev\Capi2_Oper.evtx", "true"),
@("Microsoft-Windows-Kerberos/Operational", "c:\dev\Kerberos_Oper.evtx", "true")
)
ForEach ($EventLog in $EventLogExportLogList)
{
global:FwExportSingleEventLog $EventLog[0] $EventLog[1] $EventLog[2]
}
#Event Log - Set Log - Disable
$EventLogSetLogListOff = New-Object 'System.Collections.Generic.List[Object]'
$EventLogSetLogListOff = @( #LogName, enabled, retention, quiet, MaxSize
@("Microsoft-Windows-CAPI2/Operational", "false", "", "", ""),
@("Microsoft-Windows-Kerberos/Operational", "false", "", "", "")
)
ForEach ($EventLog in $EventLogSetLogListOff)
{
global:FwEventLogsSet $EventLog[0] $EventLog[1] $EventLog[2] $EventLog[3] $EventLog[4]
}
#Event Log - Clear Log
$EventLogClearLogList = New-Object 'System.Collections.Generic.List[Object]'
$EventLogClearLogList = @( #LogName, enabled, retention, quiet, MaxSize
@("Microsoft-Windows-CAPI2/Operational"),
@("Microsoft-Windows-Kerberos/Operational")
)
ForEach ($EventLog in $EventLogClearLogList)
{
global:FwEventLogClear $EventLog[0]
}
#### Various REGISTRY manipulaiton functions ***
# A simple way for exporting Regisgtry keys is done by function FwAddRegItem with a registry array defined at bottom of this file ($global:KeysWinLAPS)
# Ex.: FwAddRegItem @("WinLAPS") _Stop_
# RegAddValues
$RegAddValues = New-Object 'System.Collections.Generic.List[Object]'
$RegAddValues = @( #RegKey, RegValue, Type, Data
@("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\My Key", "my test1", "REG_DWORD", "0x1"),
@("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\My Key", "my test2", "REG_DWORD", "0x2")
)
ForEach ($regadd in $RegAddValues)
{
global:FwAddRegValue $regadd[0] $regadd[1] $regadd[2] $regadd[3]
}
# RegExport in TXT
LogInfo "[$global:TssPhase ADS Stage:] Exporting Reg.keys .. " "gray"
$RegExportKeyInTxt = New-Object 'System.Collections.Generic.List[Object]'
$RegExportKeyInTxt = @( #Key, ExportFile, Format (TXT or REG)
@("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\My Key", "C:\Dev\regtestexportTXT1.txt", "TXT"),
@("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL", "C:\Dev\regtestexportTXT2.txt", "TXT")
)
ForEach ($regtxtexport in $RegExportKeyInTxt)
{
global:FwExportRegKey $regtxtexport[0] $regtxtexport[1] $regtxtexport[2]
}
# RegExport in REG
$RegExportKeyInReg = New-Object 'System.Collections.Generic.List[Object]'
$RegExportKeyInReg = @( #Key, ExportFile, Format (TXT or REG)
@("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\My Key", "C:\Dev\regtestexportREG1.reg", "REG"),
@("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL", "C:\Dev\regtestexportREG2.reg", "REG")
)
ForEach ($regregexport in $RegExportKeyInReg)
{
global:FwExportRegKey $regregexport[0] $regregexport[1] $regregexport[2]
}
# RegDeleteValues
$RegDeleteValues = New-Object 'System.Collections.Generic.List[Object]'
$RegDeleteValues = @( #RegKey, RegValue
@("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\My Key", "my test1"),
@("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\My Key", "my test2")
)
ForEach ($regdel in $RegDeleteValues)
{
global:FwDeleteRegValue $regdel[0] $regdel[1]
}
#### FILE COPY Operations ***
# Create Dest. Folder
FwCreateFolder $global:LogFolder\Files_test2
$SourceDestinationPaths = New-Object 'System.Collections.Generic.List[Object]'
$SourceDestinationPaths = @( #source (* wildcard is supported) and destination
@("C:\Dev\my folder\test*", "$global:LogFolder\Files_test2"), #this will copy all files that match * criteria into dest folder
@("C:\Dev\my folder\test1.txt", "$global:LogFolder\Files_test2") #this will copy test1.txt to destination file name and add logprefix
)
global:FwCopyFiles $SourceDestinationPaths
EndFunc $MyInvocation.MyCommand.Name
}
function DevTestPostStop
{
EnterFunc $MyInvocation.MyCommand.Name
LogInfoFile "[$($MyInvocation.MyCommand.Name)] .. started"
EndFunc $MyInvocation.MyCommand.Name
}
#endregion -------------- DevTest -----------
### Pre-Start / Post-Stop / Collect / Diag function for Components tracing
##### Pre-Start / Post-Stop function for trace
function DEV_TEST1PreStart
{
EnterFunc $MyInvocation.MyCommand.Name
LogMessage $Loglevel.Info "$($MyInvocation.MyCommand.Name) is called."
# Testing FwSetEventLog
#FwSetEventLog "Microsoft-Windows-CAPI2/Operational" -EvtxLogSize:100000 -ClearLog
#FwSetEventLog 'Microsoft-Windows-CAPI2/Catalog Database Debug' -EvtxLogSize:102400000
#$PowerShellEvtLogs = @("Microsoft-Windows-PowerShell/Admin", "Microsoft-Windows-PowerShell/Operational")
#FwSetEventLog $PowerShellEvtLogs
EndFunc $MyInvocation.MyCommand.Name
}
function DEV_TEST1PostStart
{
EnterFunc $MyInvocation.MyCommand.Name
LogMessage $Loglevel.Info "$($MyInvocation.MyCommand.Name) is called."
EndFunc $MyInvocation.MyCommand.Name
}
function DEV_TEST1PreStop
{
EnterFunc $MyInvocation.MyCommand.Name
LogMessage $Loglevel.Info "$($MyInvocation.MyCommand.Name) is called."
#LogWarn "** Will do Forced Crash now" cyan
#FwDoCrash
EndFunc $MyInvocation.MyCommand.Name
}
function DEV_TEST1PostStop
{
EnterFunc $MyInvocation.MyCommand.Name
LogMessage $Loglevel.Info "$($MyInvocation.MyCommand.Name) is called."
# Testing FwResetEventLog
#FwResetEventLog 'Microsoft-Windows-CAPI2/Operational'
#FWResetEventLog 'Microsoft-Windows-CAPI2/Catalog Database Debug'
#$PowerShellEvtLogs = @("Microsoft-Windows-PowerShell/Admin", "Microsoft-Windows-PowerShell/Operational")
#FwResetEventLog $PowerShellEvtLogs
EndFunc $MyInvocation.MyCommand.Name
}
function DEV_TEST2PreStart
{
EnterFunc $MyInvocation.MyCommand.Name
LogMessage $Loglevel.Info "$($MyInvocation.MyCommand.Name) is called."
EndFunc $MyInvocation.MyCommand.Name
}
function DEV_TEST2PostStop
{
EnterFunc $MyInvocation.MyCommand.Name
LogMessage $Loglevel.Info "$($MyInvocation.MyCommand.Name) is called."
EndFunc $MyInvocation.MyCommand.Name
}
##### Data Collection
function CollectDEV_TEST1Log
{
EnterFunc $MyInvocation.MyCommand.Name
$LogPrefix = "Dev_TEST1"
$LogFolderforDEV_TEST1 = "$Logfolder\Dev_TEST1"
FwCreateLogFolder $LogFolderforDEV_TEST1
<#
<#--- Log functions ---#>
#LogDebug "This is message from LogDebug."
#LogInfo "This is message from LogInfo."
#LogWarn "This is message from LogWarn."
#LogError "This is message from LogError."
#Try{
# Throw "Test exception"
#}Catch{
# LogException "This is message from LogException" $_
#}
#LogInfoFile "This is message from LogInfoFile."
#LogWarnFile "This is message from LogWarnFile."
#LogErrorFile "This is message from LogErrorFile."
<#--- Test ExportEventLog and FwExportEventLogWithTXTFormat ---#>
#FwExportEventLog 'System' $LogFolderforDEV_TEST1
#ExportEventLog "Microsoft-Windows-DNS-Client/Operational" $LogFolderforDEV_TEST1
#FwExportEventLogWithTXTFormat 'System' $LogFolderforDEV_TEST1
<#--- FwSetEventLog and FwResetEventLog ---#>
#$EventLogs = @(
# 'Microsoft-Windows-WMI-Activity/Trace'
# 'Microsoft-Windows-WMI-Activity/Debug'
#)
#FwSetEventLog $EventLogs
#Start-Sleep 20
#FwResetEventLog $EventLogs
<#--- FwAddEvtLog and FwGetEvtLogList ---#>
#($EvtLogsBluetooth) | ForEach-Object { FwAddEvtLog $_ _Stop_} # see #region groups of Eventlogs for FwAddEvtLog
#_# Note: FwGetEvtLogList should be called in _Start_Common_Tasks and _Start_Common_Tasks POD functions, otherwise it is called in FW FwCollect_BasicLog/FwCollect_MiniBasicLog functions
<#--- FwAddRegItem and FwGetRegList ---#>
#FwAddRegItem @("SNMP", "Tcp") _Stop_ # see #region Registry Key modules for FwAddRegItem
#_# Note: FwGetRegList should be called in _Start_Common_Tasks and _Start_Common_Tasks POD functions, otherwise it is called in FW FwCollect_BasicLog/FwCollect_MiniBasicLog functions
<#--- Test RunCommands --#>
#$outFile = "$LogFolderforDEV_TEST1\netinfo.txt"
#$Commands = @(
# "IPCONFIG /ALL | Out-File -Append $outFile"
# "netsh interface IP show config | Out-File -Append $outFile"
#)
#RunCommands "$LogPrefix" $Commands -ThrowException:$False -ShowMessage:$True
<#--- FwCopyFiles ---#>
# Case 1: Copy a single set of files
#$SourceDestinationPaths = New-Object 'System.Collections.Generic.List[Object]'
#$SourceDestinationPaths.add(@("C:\Temp\*", "$LogFolderforDEV_TEST1"))
#FwCopyFiles $SourceDestinationPaths
# Case 2: Copy a single file
#$SourceDestinationPaths = New-Object 'System.Collections.Generic.List[Object]'
#$SourceDestinationPaths.add(@("C:\temp\test-case2.txt", "$LogFolderforDEV_TEST1"))
#FwCopyFiles $SourceDestinationPaths
# Case 3: Copy multi sets of files
#$SourceDestinationPaths = New-Object 'System.Collections.Generic.List[Object]'
#$SourceDestinationPaths = @(
# @("C:\temp\*", "$LogFolderforDEV_TEST1"),
# @("C:\temp2\test-case3.txt", "$LogFolderforDEV_TEST1")
#)
#FwCopyFiles $SourceDestinationPaths
<#--- FwExportRegistry and FwExportRegToOneFile ---#>
#LogInfo '[$LogPrefix] testing FwExportRegistry().'
#$RecoveryKeys = @(
# ('HKLM:System\CurrentControlSet\Control\CrashControl', "$LogFolderforDEV_TEST1\Basic_Registry_CrashControl.txt"),
# ('HKLM:System\CurrentControlSet\Control\Session Manager\Memory Management', "$LogFolderforDEV_TEST1\Basic_Registry_MemoryManagement.txt"),
# ('HKLM:Software\Microsoft\Windows NT\CurrentVersion\AeDebug', "$LogFolderforDEV_TEST1\Basic_Registry_AeDebug.txt"),
# ('HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Option', "$LogFolderforDEV_TEST1\Basic_Registry_ImageFileExecutionOption.txt"),
# ('HKLM:System\CurrentControlSet\Control\Session Manager\Power', "$LogFolderforDEV_TEST1\Basic_Registry_Power.txt")
#)
#FwExportRegistry $LogPrefix $RecoveryKeys
#
#$StartupKeys = @(
# "HKCU:Software\Microsoft\Windows\CurrentVersion\Run",
# "HKCU:Software\Microsoft\Windows\CurrentVersion\Runonce",
# "HKCU:Software\Microsoft\Windows\CurrentVersion\RunonceEx"
#)
#FwExportRegToOneFile $LogPrefix $StartupKeys "$LogFolderforDEV_TEST1\Basic_Registry_RunOnce_reg.txt"
<#---FwCaptureUserDump ---#>
# Service
#FwCaptureUserDump -Name "Winmgmt" -DumpFolder $LogFolderforDEV_TEST1 -IsService:$True
# Process
#FwCaptureUserDump -Name "notepad" -DumpFolder $LogFolderforDEV_TEST1
# PID
#FwCaptureUserDump -ProcPID 4524 -DumpFolder $LogFolderforDEV_TEST1
<#---general collect functions - often used in _Start/Stop_common_tasks---#>
#FwClearCaches _Start_
#FwCopyWindirTracing IPhlpSvc
#FwDoCrash
#FwGetCertsInfo _Stop_ Basic
#FwGetEnv
#FwGetGPresultAS
#FwGetKlist
#FwGetMsInfo32
#FwGetNltestDomInfo
#FwGetPoolmon
#FwGetProxyInfo
#FwGetQwinsta
#FwGetRegHives
#FwRestartInOwnSvc WebClient
#FwGetSVC
#FwGetSVCactive
#FwGetSysInfo
#FwGetTaskList
#FwGetWhoAmI
#FwTest-TCPport -ComputerName "cesdiagtools.blob.core.windows.net" -Port 80 -Timeout 900
EndFunc $MyInvocation.MyCommand.Name
}
function CollectDEV_TEST2Log
{
EnterFunc $MyInvocation.MyCommand.Name
LogInfo "$($MyInvocation.MyCommand.Name) is called."
EndFunc $MyInvocation.MyCommand.Name
}
##### Diag function
function RunDEV_TEST1Diag
{
EnterFunc $MyInvocation.MyCommand.Name
If($global:BoundParameters.containskey('InputlogPath')){
$diagpath = $global:BoundParameters['InputlogPath']
LogInfo "diagpath = $diagpath"
}
LogMessage $Loglevel.Info "$($MyInvocation.MyCommand.Name) is called."
EndFunc $MyInvocation.MyCommand.Name
}
<#
function RunDEV_TEST2Diag
{
EnterFunc $MyInvocation.MyCommand.Name
LogMessage $Loglevel.Info "$($MyInvocation.MyCommand.Name) is called."
EndFunc $MyInvocation.MyCommand.Name
}
#>
#endregion Components Functions
#region Scenario Functions
### Pre-Start / Post-Stop / Collect / Diag function for scenario tracing
##### Common tasks
function DEV_Start_Common_Tasks{
EnterFunc $MyInvocation.MyCommand.Name
LogInfo "$($MyInvocation.MyCommand.Name) is called."
#FwGetRegList _Start_
#FwGetEvtLogList _Start_
EndFunc $MyInvocation.MyCommand.Name
}
function DEV_Stop_Common_Tasks{
EnterFunc $MyInvocation.MyCommand.Name
LogInfo "$($MyInvocation.MyCommand.Name) is called."
#FwGetRegList _Stop_
#FwGetEvtLogList _Stop_
EndFunc $MyInvocation.MyCommand.Name
}
##### DEV_Scn1
function DEV_Scn1ScenarioPreStart
{
EnterFunc $MyInvocation.MyCommand.Name
LogMessage $Loglevel.Info "$($MyInvocation.MyCommand.Name) is called."
EndFunc $MyInvocation.MyCommand.Name
}
function DEV_Scn1ScenarioPostStart
{
EnterFunc $MyInvocation.MyCommand.Name
LogMessage $Loglevel.Info "$($MyInvocation.MyCommand.Name) is called."
EndFunc $MyInvocation.MyCommand.Name
}
function DEV_Scn1ScenarioPreStop
{
EnterFunc $MyInvocation.MyCommand.Name
LogMessage $Loglevel.Info "$($MyInvocation.MyCommand.Name) is called."
EndFunc $MyInvocation.MyCommand.Name
}
function DEV_Scn1ScenarioPostStop
{
EnterFunc $MyInvocation.MyCommand.Name
LogMessage $Loglevel.Info "$($MyInvocation.MyCommand.Name) is called."
EndFunc $MyInvocation.MyCommand.Name
}
function CollectDEV_Scn1ScenarioLog
{
EnterFunc $MyInvocation.MyCommand.Name
LogMessage $Loglevel.Info "$($MyInvocation.MyCommand.Name) is called."
EndFunc $MyInvocation.MyCommand.Name
}
function RunDEV_Scn1ScenarioDiag
{
EnterFunc $MyInvocation.MyCommand.Name
LogMessage $Loglevel.Info "$($MyInvocation.MyCommand.Name) is called."
EndFunc $MyInvocation.MyCommand.Name
}
##### DEV_Scn2
function DEV_Scn2ScenarioPreStart
{
EnterFunc $MyInvocation.MyCommand.Name
LogMessage $Loglevel.Info "$($MyInvocation.MyCommand.Name) is called."
EndFunc $MyInvocation.MyCommand.Name
}
function DEV_Scn2ScenarioPostStop
{
EnterFunc $MyInvocation.MyCommand.Name
LogMessage $Loglevel.Info "$($MyInvocation.MyCommand.Name) is called."
EndFunc $MyInvocation.MyCommand.Name
}
function CollectDEV_Scn2ScenarioLog
{
EnterFunc $MyInvocation.MyCommand.Name
LogMessage $Loglevel.Info "$($MyInvocation.MyCommand.Name) is called."
EndFunc $MyInvocation.MyCommand.Name
}
<#
function RunDEV_Scn2ScenarioDiag
{
EnterFunc $MyInvocation.MyCommand.Name
LogMessage $Loglevel.Info "$($MyInvocation.MyCommand.Name) is called."
EndFunc $MyInvocation.MyCommand.Name
}
#>
#endregion Scenario Functions
#endregion Functions
#region Registry Key modules for FwAddRegItem
$global:KeysSNMP = @("HKLM:System\CurrentControlSet\Services\SNMP", "HKLM:System\CurrentControlSet\Services\SNMPTRAP")
$global:KeysTcp = @("HKLM:System\CurrentControlSet\Services\TcpIp\Parameters", "HKLM:System\CurrentControlSet\Services\Tcpip6\Parameters", "HKLM:System\CurrentControlSet\Services\tcpipreg", "HKLM:System\CurrentControlSet\Services\iphlpsvc")
$global:KeysWinLAPS = @(
"HKLM:Software\Microsoft\Policies\LAPS"
"HKLM:Software\Microsoft\Windows\CurrentVersion\Policies\LAPS"
"HKLM:Software\Policies\Microsoft Services\AdmPwd"
"HKLM:Software\Microsoft\Windows\CurrentVersion\LAPS\Config"
"HKLM:Software\Microsoft\Windows\CurrentVersion\LAPS\State"
"HKLM:Software\Microsoft\Windows NT\CurrentVersion\Winlogon\GPExtensions\{D76B9641-3288-4f75-942D-087DE603E3EA}"
)
<# Example:
$global:KeysHyperV = @("HKLM:Software\Microsoft\Windows NT\CurrentVersion\Virtualization", "HKLM:System\CurrentControlSet\Services\vmsmp\Parameters")
#>
#endregion Registry Key modules
#region groups of Eventlogs for FwAddEvtLog
$EvtLogsBluetooth = @("Microsoft-Windows-Bluetooth-BthLEPrepairing/Operational", "Microsoft-Windows-Bluetooth-MTPEnum/Operational")
# $EvtLogsLAPS = @("Microsoft-Windows-LAPS-Operational", "Microsoft-Windows-LAPS/Operational")
<# Example:
$global:EvtLogsEFS = @("Microsoft-Windows-NTFS/Operational", "Microsoft-Windows-NTFS/WHC")
#>
#endregion groups of Eventlogs
Export-ModuleMember -Function * -Cmdlet * -Variable * -Alias *
# SIG # Begin signature block
# MIInpQYJKoZIhvcNAQcCoIInljCCJ5ICAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDrr6Zz6DTKlJ0j
# aB4et8vfc0O8CLgpwBg6rU3KNG0fe6CCDYUwggYDMIID66ADAgECAhMzAAADTU6R
# phoosHiPAAAAAANNMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy
# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p
# bmcgUENBIDIwMTEwHhcNMjMwMzE2MTg0MzI4WhcNMjQwMzE0MTg0Mz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