|
13 | 13 | cdrom_virtio = isos/windows/virtio-win.iso |
14 | 14 | cmd_findstr_in_file = type %s | findstr "%s" |
15 | 15 | include_sensitive_data = False |
| 16 | + script_execution_timeout = 720 |
16 | 17 | target_files = "msinfo32.txt,system.evtx,security.evtx,application.evtx,drv_list.csv,virtio_disk.txt,WindowsUpdate.log,Services.csv,WindowsUptime.txt,RunningProcesses.csv,InstalledApplications.csv,InstalledKBs.csv,NetworkInterfaces.txt,IPConfiguration.txt,setupapi.dev.log,setupapi.setup.log,setupapi.offline.log,ErrorWindowsUpdate.log,OutputWindowsUpdate.log,LocaleMetaData" |
17 | 18 | target_dump_files = "MEMORY.DMP,Minidump" |
18 | 19 | script_name = "CollectSystemInfo.ps1" |
19 | 20 | cmd_search_file_global = powershell.exe -Command "Get-PSDrive -PSProvider FileSystem | ForEach-Object { Get-ChildItem -Path $_.Root -Recurse -Filter '%s' -ErrorAction SilentlyContinue } | ForEach-Object { Join-Path -Path $_.Directory.FullName -ChildPath $_.Name }" |
| 21 | + Win2016: |
| 22 | + script_execution_timeout = 1200 |
| 23 | + cmd_disable_ie_esc_admin = powershell.exe -Command "Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}' -Name 'IsInstalled' -Value 0" |
| 24 | + cmd_disable_ie_esc_user = powershell.exe -Command "Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A8-37EF-4b3f-8CFC-4F3A74704073}' -Name 'IsInstalled' -Value 0" |
20 | 25 | variants: |
21 | 26 | - check_script_execution: |
22 | 27 | windegtool_check_type = script_execution |
|
29 | 34 | - check_user_friendliness: |
30 | 35 | windegtool_check_type = user_friendliness |
31 | 36 | cmd_kill_powershell_process = taskkill /IM powershell.exe /F |
32 | | - cmd_kill_powershell_process1 = powershell.exe -Command "Stop-Process -Name msinfo32 -Force" |
| 37 | + cmd_kill_powershell_process1 = powershell.exe -Command "Stop-Process -Name msinfo32 -Force -ErrorAction SilentlyContinue" |
33 | 38 | invalid_params = "-invalidparam,IncludeSensitiveData,0000,hell,-H,-IncludeSensitiveData -h" |
34 | 39 | expect_output_prompt = "Usage: .\CollectSystemInfo.ps1 [-IncludeSensitiveData] [-Help]" |
35 | 40 | script_interrupt_signal_file = 'Collecting_Status.txt' |
|
67 | 72 | setupapi_dev_file_path = "%s\setupapi.dev.log" |
68 | 73 | target_driver = pvpanic |
69 | 74 | cmd_query_oem_inf = powershell.exe -Command "pnputil.exe /enum-drivers | Select-String -Pattern '%s.inf' -Context 1,1 | ForEach-Object { if ($_ -match 'Published Name:\s+(oem\d+\.inf)') { $matches[1] } }" |
| 75 | + cmd_disable_device = powershell.exe -Command "$d=Get-PnpDevice -ErrorAction SilentlyContinue | Where-Object {$_.FriendlyName -like '*%s*' -or $_.InstanceId -like '*%s*'}; if ($d) { $d | Disable-PnpDevice -Confirm:$false -ErrorAction SilentlyContinue }" |
70 | 76 | cmd_install_driver = pnputil.exe /add-driver %s /install |
71 | 77 | cmd_uninstall_driver = pnputil.exe /delete-driver %s /uninstall /force |
72 | 78 | cmd_scan_device = pnputil.exe /scan-devices |
|
96 | 102 | standard_docs = "README.md", "LICENSE", "CollectSystemInfo.ps1" |
97 | 103 | target_doc = "README.md" |
98 | 104 | query_cmd_from_file = powershell.exe -Command "Get-Content %s | Select-String '```powershell' -Context 0,1" |
99 | | - cmd_cp_file = powershell.exe -Command "cp %s %s" |
| 105 | + cmd_cp_file = powershell.exe -Command "cp %s %s -Force" |
100 | 106 | - check_IO_limits: |
101 | 107 | windegtool_check_type = IO_limits |
102 | 108 | cmd_get_io_folder = powershell.exe -Command "Get-ChildItem -Path %s -Recurse -Filter '*IOLimits_C*' | Select-Object -ExpandProperty FullName" |
|
0 commit comments