W celu zdiagnozowania problemu specjaliści ds. IT być może będą musieli pobrać pliki dziennika z jednego lub kilku komputerów. Najlepiej zrobić to za pomocą narzędzi do zdalnego zarządzania, ale można to również wykonać za pomocą skryptów. W załącznikach do tego artykułu znajdziesz przykładowy program Log Collector, który możesz uruchomić lub zmodyfikować w celu zaspokojenia większości potrzeb.
Szczegóły dotyczące skryptów:
C:\Users\<Current User>\AppData\Roaming\
9af4c403c997dcebdba49b6251565a5c
3a8bb6d3a75ebe14ffc631fe68dcfa308eaf3691
4917c7f2e0d8d6111159cfe18b8dc9ca6cf04ff4467166d65435e3b8e07a5e2b
.cmd
Plik jest wyświetlany jako ikona Notatnika i otwiera się jako Notatnik po dwukrotnym kliknięciu
.cmd
i inne pliki skryptów..bat
plik zamiast tego?
.cmd
i .bat
Pliki, które zawierają różnice w kontekście i zabezpieczeniach..cmd
..bat
..txt
plik zawiera?
Zebrane dzienniki | Ścieżka do dziennika ZIP | Używane polecenie | Wymaga uprawnień administratora | Typ polecenia | Referencyjny adres URL firmy Microsoft / Dell | 2.3 Zmiana |
---|---|---|---|---|---|---|
Dzienniki zdarzeń aplikacji | \Logs\OperatingSystem\Event Logs\application_eventlog.evtx |
wevtutil epl Application /q:"*[System[(Level<=5)]]" application_eventlog.evtx |
Nie | Wiersz poleceń | https://learn.microsoft.com/windows/win32/wes/windows-event-log |
0 |
Lista pakietów Appx | \Logs\Application\installed_appx.txt |
Get-AppxPackage | Select PackageFullName | Sort PackageFullName |
Tak | PowerShell | https://learn.microsoft.com/powershell/module/appx/get-appxpackage?view=windowsserver2022-ps |
0 |
Lista dostępnych stanów uśpienia | \Logs\Power\available_sleepstates.txt |
powercfg /a |
Nie | Wiersz poleceń | https://learn.microsoft.com/windows-hardware/design/device-experiences/powercfg-command-line-options |
0 |
Raport dotyczący baterii | \Logs\Power\Battery_Report.html |
powercfg /batteryreport /output Battery_Report.html /duration 14 |
Tak | Wiersz poleceń | https://learn.microsoft.com/windows-hardware/design/device-experiences/powercfg-command-line-options |
0 |
Informacje BCD | \Logs\OperatingSystem\bcd.txt |
bcdedit |
Tak | Wiersz poleceń | https://learn.microsoft.com/windows-server/administration/windows-commands/bcdedit |
0 |
Lista protektorów funkcji BitLocker | \Logs\Security\bitlocker_PCRs.txt |
manage-bde %SYSTEMDRIVE% -protectors -get -type TPM |
Tak | PowerShell | https://learn.microsoft.com/windows-server/administration/windows-commands/manage-bde |
0 |
Status funkcji BitLocker | \Logs\Security\bitlocker_status.txt |
manage-bde -status |
Tak | PowerShell | https://learn.microsoft.com/windows-server/administration/windows-commands/manage-bde |
0 |
Lista kart szerokopasmowych | \Logs\Network\broadband_adapter.txt |
netsh mbn show interfaces |
Nie | Wiersz poleceń | https://learn.microsoft.com/windows-server/networking/technologies/netsh/netsh-contexts |
0 |
Lista skonfigurowanych funkcji Wake Timer | \Logs\Power\waketimers.txt |
powercfg /waketimers |
Tak | Wiersz poleceń | https://learn.microsoft.com/windows-hardware/design/device-experiences/powercfg-command-line-options |
0 |
Dziennik aplikacji Dell Command Update | \Logs\Dell\Dell_Command_Update\Activity.log |
XCOPY /s /y /q /F %SYSTEMDRIVE%\ProgramData\Dell\UpdateService\Log |
Tak | Wiersz poleceń | Aplikacja Dell Command | Update | 0 |
Dzienniki migracji danych Dell (miejsce docelowe) | \Logs\Dell\Dell_Data_Migrate_Destination\(Various files) |
XCOPY /s /I /y /q /F %SYSTEMDRIVE%\ProgramData\Dell\SupportAssist\CDM\Logs . |
Tak | Wiersz poleceń | https://www.dell.com/support/manuals/data-assistant/migrate_1.0_ug/ | 0 |
Dzienniki migracji danych Dell (źródło) | \Logs\Dell\Dell_Data_Migrate_Source\(Various Files) |
XCOPY /s /y /q /F %SYSTEMDRIVE%\ProgramData\DDA\logs\ . |
Tak | Wiersz poleceń | https://www.dell.com/support/manuals/data-assistant/migrate_1.0_ug/introduction?guid=guid-28c0bb91-e84d-4118-99ee-e5500769b170& | 0 |
Dzienniki Dell Digital Delivery | \Logs\Dell\Dell_Digital_Delivery\ |
XCOPY /s /y /q /F %SYSTEMDRIVE%\ProgramData\dell\D3\Resources\Logs\ |
Tak | Wiersz poleceń | https://www.dell.com/support/contents/article/product-support/self-support-knowledgebase/software-and-downloads/download-center/dell-digital-delivery | 0 |
Informacje o ładowaniu fabrycznym firmy Dell | \Logs\Dell\FactoryLoad\dell.sdr |
XCOPY /y /q /F %SYSTEMDRIVE%\dell.sdr |
Nie | Wiersz poleceń | https://learn.microsoft.com/windows-server/administration/windows-commands/xcopy |
0 |
Dzienniki narzędzia Dell Optimizer | \Logs\Dell\Dell_Optimizer\* |
*XCOPY command copies multiple AppData files specific to Dell Optimizer* |
Nie | Wiersz poleceń | https://learn.microsoft.com/windows-server/administration/windows-commands/xcopy |
1 |
Dzienniki pakietu Dell Update | \Logs\Dell\Dell_Update_Package\* |
XCOPY /s /y /q /F %SYSTEMDRIVE%\ProgramData\Dell\UpdatePackage\Log . |
Nie | Wiersz poleceń | Aplikacja Dell Command | Update | 0 |
Szczegółowy raport dotyczący sterowników | \Logs\Driver\driver_details.txt |
Get-WmiObject Win32_PnPSignedDriver | select * |
Nie | PowerShell | https://learn.microsoft.com/previous-versions/windows/desktop/legacy/aa394354(V=w porównaniu z 85) |
0 |
Dziennik diagnostyki DirectX | \Logs\Graphics\DXdiag.txt |
dxdiag.exe /t DXdiag.txt |
Nie | Wiersz poleceń | https://support.microsoft.com/windows/open-and-run-dxdiag-exe-dad7792c-2ad5-f6cd-5a37-bf92228dfd85 |
0 |
Lista sterowników | \Logs\Driver\driver_list.txt |
Get-WmiObject Win32_PnPSignedDriver| select devicename, driverversion, driverdate | Sort-Object devicename |
Nie | PowerShell | https://learn.microsoft.com/previous-versions/windows/desktop/legacy/aa394354(V=w porównaniu z 85) |
0 |
Lista magazynów ze sterownikami | \Logs\Driver\driver_store.txt |
dism /online /get-drivers /all /format:table |
Tak | Wiersz poleceń | https://learn.microsoft.com/windows-hardware/manufacture/desktop/what-is-dism?view=windows-11 |
0 |
Sterowniki w stanie błędu | \Logs\Driver\error_state_drivers.txt |
Pnputil /enum-devices /problem /ids |
Nie | Wiersz poleceń | https://learn.microsoft.com/windows-hardware/drivers/devtest/pnputil |
1 |
Raport dotyczący zużycia energii | \Logs\Power\energy.html |
powercfg /energy /output energy.html |
Tak | Wiersz poleceń | https://learn.microsoft.com/windows-hardware/design/device-experiences/powercfg-command-line-options |
0 |
Ustawienia zasad grupy | \Logs\OperatingSystem\GPO_List.html |
start /min gpresult /H GPO_List.html |
Nie | Wiersz poleceń | https://learn.microsoft.com/windows-server/administration/windows-commands/gpresult |
0 |
Lista zainstalowanych aplikacji | \Logs\Application\installed_apps.txt |
Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Sort-Object InstallDate |
Nie | PowerShell | https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-itemproperty?view=powershell-7.3 |
0 |
Konfiguracja IP | \Logs\Network\ipconfig_all.txt |
ipconfig /all |
Nie | Wiersz poleceń | https://learn.microsoft.com/windows-server/administration/windows-commands/ipconfig |
0 |
Aktywator ostatniego wybudzania | \Logs\Power\lastwake.txt |
powercfg /lastwake |
Nie | Wiersz poleceń | https://learn.microsoft.com/windows-hardware/design/device-experiences/powercfg-command-line-options |
0 |
Zrzut pamięci (pełne jądro) | \Logs\MemoryDumps\memory.dmp |
XCOPY /y /q /F %SYSTEMROOT%\memory.dmp |
Nie | Wiersz poleceń | https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/xcopy |
0 |
Zrzut pamięci (minizrzut) | \Logs\MemoryDumps\*.dmp |
XCOPY /s /I /y /q /F %SYSTEMROOT%\minidump\*.dmp |
Tak | Wiersz poleceń | https://learn.microsoft.com/windows-server/administration/windows-commands/xcopy |
0 |
Zrzut pamięci (stan/szczegóły) | \Logs\Operating System\DumpStatus.txt |
IF EXIST %SYSTEMROOT%\memory.dmp |
Tak | Wiersz poleceń | https://learn.microsoft.com/windows-server/administration/windows-commands/if |
0 |
Status zarządzania pamięcią | \Logs\System\MemoryManagement.html |
Get-mmagent | Out-File MemoryManagement.html |
Tak | PowerShell | https://learn.microsoft.com/powershell/module/mmagent/get-mmagent?view=windowsserver2022-ps |
1 |
Informacje o systemie Microsoft (MSinfo32) | \Logs\OperatingSystem\msinfo32.nfo |
start msinfo32 /nfo msinfo32.nfo |
Nie | Wiersz poleceń | https://support.microsoft.com/topic/description-of-microsoft-system-information-msinfo32-exe-tool-10d335d8-5834-90b4-8452-42c58e61f9fc |
0 |
Informacje o monitorze | \Logs\Graphics\monitor.txt |
Get-CimInstance -Namespace root\wmi -ClassName WmiMonitorID | ForEach-Object {if ($_.UserFriendlyNameLength -gt 0) {($_.ManufacturerName -ne 0 | foreach {[char]$_}) + [char] 10 + 'InstanceName: ' + ($_.InstanceName) + [char] 10 + ($_.UserFriendlyName -ne 0 | foreach {[char]$_}) + [char] 10 + 'Serial: ' + ($_.SerialNumberID -ne 0 | foreach {[char]$_}) + [char] 10 + 'ProdCodeID: ' + ($_.ProductCodeID -ne 0 | foreach {[char]$_}) + [char] 10 + 'WeekOfManufacture:' + $_.WeekOfManufacture + [char] 10 + 'YearOfManufacture:' + $_.YearOfManufacture + [char] 10 + 'DisplayActive:' + $_.Active + [char] 10 -join ''} else{($_.ManufacturerName -ne 0 | foreach {[char]$_}) + [char] 10 + 'InstanceName: ' + ($_.InstanceName) + [char] 10 + ('No Model (Likely Internal LCD)') + [char] 10 + 'Serial: ' + ($_.SerialNumberID -ne 0 | foreach {[char]$_}) + [char] 10 + 'ProdCodeID: ' + ($_.ProductCodeID -ne 0 | foreach {[char]$_}) + [char] 10 + 'WeekOfManufacture:' + $_.WeekOfManufacture + [char] 10 + 'YearOfManufacture:' + $_.YearOfManufacture + [char] 10 + 'DisplayActive:' + $_.Active + [char] 10 -join ''}} |
Nie | Nie | https://learn.microsoft.com/windows/win32/wmicoreprov/wmimonitorid |
0 |
Dziennik zaawansowanych właściwości karty sieciowej | \Logs\Network\net_adapter_adv_properties.txt |
Get-NetAdapterAdvancedProperty |
Nie | PowerShell | https://learn.microsoft.com/powershell/module/netadapter/get-netadapteradvancedproperty?view=windowsserver2022-ps |
0 |
Wersja systemu operacyjnego i data instalacji | \Logs\LogCollectorStatus.txt |
(Get-WMIObject -class Win32_ComputerSystem | Select-Object Model| Format-List | Out-string).Trim(); (Get-WMIObject -class Win32_OperatingSystem | Select-Object Caption, Version| Format-List| Out-string).Trim(); (Write-Output 'OS Install Date:').Trim(); ((Get-Item 'C:\Windows\system.ini').CreationTime | Out-String).Trim() |
Nie | PowerShell | https://learn.microsoft.com/windows/win32/cimwin32prov/win32-operatingsystem |
0 |
Lista urządzeń PnP | \Logs\Operating System\pnp_devices.txt |
Get-CimInstance Win32_PnPEntity |
Nie | PowerShell | https://learn.microsoft.com/windows/win32/cimwin32prov/win32-pnpentity |
0 |
Żądania zasilania | \Logs\Power\power_requests.txt |
powercfg /requests |
Tak | Wiersz poleceń | https://learn.microsoft.com/windows-hardware/design/device-experiences/powercfg-command-line-options |
0 |
Szczegóły schematów zasilania | \Logs\Power\powerschemes.txt |
powercfg /query |
Nie | Wiersz poleceń | https://learn.microsoft.com/windows-hardware/design/device-experiences/powercfg-command-line-options |
0 |
Lista schematów zasilania | \Logs\Power\power_schemes.html |
powercfg /list |
Nie | Wiersz poleceń | https://learn.microsoft.com/windows-hardware/design/device-experiences/powercfg-command-line-options |
0 |
Lista procesów | \Logs\OperatingSystem\ processes.txt |
Get-WmiObject -Class Win32_Service | Select-Object -Property Name, ProcessID |
Nie | PowerShell | https://learn.microsoft.com/powershell/module/scheduledtasks/get-scheduledtask?view=windowsserver2022-ps |
0 |
Pakiety przydzielania | \Logs\Application\installed_provisioning_packages.txt |
Get-ProvisioningPackage |
Nie | PowerShell | https://learn.microsoft.com/powershell/module/provisioning/get-provisioningpackage?view=windowsserver2022-ps |
0 |
Lista zadań zaplanowanych | \Logs\OperatingSystem\taskscheduler.txt |
Get-ScheduledTask | Where State -ne "Disabled" | Get-ScheduledTaskInfo |
Nie | PowerShell | https://learn.microsoft.com/powershell/module/scheduledtasks/get-scheduledtask?view=windowsserver2022-ps |
0 |
Kod Service Tag | Part of File Name |
Get-CimInstance -ClassName Win32_BIOS -Property SerialNumber | Select-Object -ExpandProperty SerialNumber |
Nie | PowerShell | https://learn.microsoft.com/windows/win32/cimwin32prov/win32-bios |
0 |
Kod Service Tag i identyfikator płyty głównej | \Logs\System\System_Board.txt |
Get-CimInstance -ClassName Win32_BaseBoard | Format-List |
Nie | PowerShell | https://www.dell.com/support/manuals/data-assistant/migrate_1.0_ug/introduction?guid=guid-28c0bb91-e84d-4118-99ee-e5500769b170 | 1 |
Lista usług | \Logs\OperatingSystem\services.txt |
Get-Service | Sort Status |
Nie | PowerShell | https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-service?view=powershell-7.3 |
0 |
Raport z badania stanu uśpienia | \Logs\Power\sleepstudy.html |
powercfg /sleepstudy /output sleepstudy.html |
Tak | Wiersz poleceń | https://learn.microsoft.com/windows-hardware/design/device-experiences/powercfg-command-line-options |
0 |
Lista procesów rozruchowych | \Logs\Application\startup_processes.txt |
Get-CimInstance Win32_StartupCommand | Select-Object Name, command, Location, User | Format-List |
Nie | PowerShell | https://learn.microsoft.com/windows/win32/cimwin32prov/win32-startupcommand |
0 |
Lista urządzeń pamięci masowej | \Logs\Storage\Disk_Drives.txt |
Get-CimInstance -ClassName Win32_DiskDrive | select * | Format-List |
Nie | PowerShell | https://learn.microsoft.com/windows/win32/cimwin32prov/win32-diskdrive |
0 |
Woluminy pamięci masowej | \Logs\Storage\Disk_Volumes.txt |
Get-CimInstance -ClassName Win32_DiskPartition | Format-List |
Nie | PowerShell | https://learn.microsoft.com/windows/win32/cimwin32prov/Win32-DiskPartition |
0 |
Model systemu | Part of File Name |
Get-WMIObject -class Win32_ComputerSystem | Select-Object -ExpandProperty Model |
Nie | PowerShell | https://learn.microsoft.com/windows/win32/cimwin32prov/win32-computersystem |
0 |
Informacje o module TPM | \Logs\Security\tpm.txt |
get-tpm |
Tak | PowerShell | https://learn.microsoft.com/powershell/module/trustedplatformmodule/get-tpm?view=windowsserver2022-ps |
0 |
Lista urządzeń USB | \Logs\USB\usb_devices.txt |
gwmi Win32_USBControllerDevice |%%{[wmi]($_.Dependent)} | Sort Manufacturer,Name,Description,DeviceID | Ft -GroupBy Manufacturer Name,Description,Service,DeviceID |
Nie | PowerShell | https://learn.microsoft.com/windows/win32/cimwin32prov/win32-usbcontrollerdevice |
0 |
Szczegółowe informacje o karcie graficznej | \Logs\Graphics\video.txt |
Get-WmiObject win32_videocontroller | select * |
Nie | PowerShell | https://learn.microsoft.com/windows/win32/cimwin32prov/win32-videocontroller |
0 |
Szczegóły rozdzielczości wideo | \Logs\Graphics\video.txt |
Get-WmiObject win32_videocontroller | select caption, CurrentHorizontalResolution, CurrentVerticalResolution, CurrentRefreshRate, DriverVersion |
Nie | PowerShell | https://learn.microsoft.com/windows/win32/cimwin32prov/win32-videocontroller |
0 |
Lista urządzeń wybudzanych | \Logs\Power\device_wake_armed.html |
powercfg -devicequery wake_armed |
Nie | Wiersz poleceń | https://learn.microsoft.com/windows-hardware/design/device-experiences/powercfg-command-line-options |
0 |
Dzienniki zdarzeń systemu Windows | \Logs\OperatingSystem\Event Logs\system_eventlog.evtx |
wevtutil epl System /q:"*[System[(Level<=5)]]" system_eventlog.evtx |
Nie | Wiersz poleceń | https://learn.microsoft.com/windows/win32/wes/windows-event-log |
0 |
Dziennik Systeminfo systemu Windows | \Logs\LogCollectorStatus.txt |
Systeminfo |
Nie | Wiersz poleceń | https://learn.microsoft.com/windows-server/administration/windows-commands/systeminfo |
0 |
Lista aktualizacji systemu Windows | \Logs\OperatingSystem\WindowsUpdateLog.txt |
Get-WindowsUpdateLog |
Nie | PowerShell | https://learn.microsoft.com/powershell/module/windowsupdate/get-windowsupdatelog?view=windowsserver2022-ps |
0 |
Dziennik usługi Windows Update | \Logs\OperatingSystem\hotfixes.txt |
Get-hotfix |
Nie | PowerShell | https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-hotfix?view=powershell-7.3 |
0 |
Lista sieci przewodowych | \Logs\Network\current_wired_network_interfaces.txt |
netsh lan show interfaces |
Nie | Wiersz poleceń | https://learn.microsoft.com/windows-server/networking/technologies/netsh/netsh-contexts |
0 |
Profile sieci przewodowej | \Logs\Network\wired_profiles.txt |
netsh lan show profiles |
Nie | Wiersz poleceń | https://learn.microsoft.com/windows-server/networking/technologies/netsh/netsh-contexts |
0 |
Ustawienia sieci przewodowej | \Logs\Network\wired_settings.txt |
netsh lan show settings |
Nie | Wiersz poleceń | https://learn.microsoft.com/windows-server/networking/technologies/netsh/netsh-contexts |
0 |
Raporty dotyczące sieci bezprzewodowej | \Logs\Network\wlan-report-latest.html |
netsh wlan show wlanreport duration=30 && copy /y %ProgramData%\microsoft\windows\wlanreport\wlan-report-latest.html . && copy /y %ProgramData%\Microsoft\Windows\wlanreport\wlan-report-latest.cab . |
Tak | Wiersz poleceń | https://learn.microsoft.com/windows-server/networking/technologies/netsh/netsh-contexts |
0 |
Uaktualnienie/odświeżenie systemu Windows | \Logs\OperatingSystem\windows_upgrade_history |
get-itemproperty -path 'HKLM:\SYSTEM\Setup\Source OS*' | SELECT PSChildName, Productname, ReleaseId, DisplayVersion, CurrentBuild |
PowerShell | https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-itemproperty?view=powershell-7.4 |
1 | |
Kompresja strumienia wyświetlania | Logs\Graphics\Display_Stream_Compression_status.txt |
REG QUERY HKLM\SYSTEM\CurrentControlSet\Control\Class /s /v DPMstDscDisable > Display_Stream_Compression_status.txt |
Nie | PowerShell | https://learn.microsoft.com/windows-server/administration/windows-commands/reg-query |
1 |
Generacja urządzenia PCIe i szybkość łącza | \Logs\System\PCIe_Device_Info.txt |
(Get-WMIObject Win32_Bus -Filter 'DeviceID like "PCI%%"').GetRelated('Win32_PnPEntity') | foreach { [pscustomobject][ordered]@{Name = $_.Name; ExpressSpecVersion=$_.GetDeviceProperties('DEVPKEY_PciDevice_ExpressSpecVersion').deviceProperties.data;MaxLinkSpeed=$_.GetDeviceProperties('DEVPKEY_PciDevice_MaxLinkSpeed').deviceProperties.data; MaxLinkWidth=$_.GetDeviceProperties('DEVPKEY_PciDevice_MaxLinkWidth').deviceProperties.data; CurrentLinkSpeed=$_.GetDeviceProperties('DEVPKEY_PciDevice_CurrentLinkSpeed').deviceProperties.data; CurrentLinkWidth=$_.GetDeviceProperties('DEVPKEY_PciDevice_CurrentLinkWidth' ).deviceProperties.data} | Where MaxLinkSpeed } | Format-Table -AutoSize; |
Nie | PowerShell | https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-wmiobject?view=powershell-5.1 |
1 |
Ustawienia BIOS | \Logs\System\BIOS_Settings.txt |
Get-CimInstance -Namespace root\dcim\sysman\biosattributes -ClassName EnumerationAttribute | Select-Object AttributeName, CurrentValue, Defaultvalue, PossibleValue |
Tak | PowerShell | https://learn.microsoft.com/powershell/module/cimcmdlets/get-ciminstance?view=powershell-7.4 |
1 |
Lista ignorowanych aplikacji Dell Command | \Logs\Dell\Dell_Command_Update\Update_Ignore_List.txt |
REG QUERY HKLM\SOFTWARE\DELL\UpdateService\Service\IgnoreList /s /v InstalledUpdateJson |
Nie | PowerShell | https://learn.microsoft.com/windows-server/administration/windows-commands/reg-query |
1 |
Ustawienia narzędzia Dell Optimizer | \Logs\Dell\Dell_Optimizer\user_settings.txt |
do-cli /get |
Nie | Wiersz poleceń | https://www.dell.com/support/manuals/dell-optimizer/dell-optimizer-4.0_ug/command-line-interface-for-dell-optimizer?guid=guid-a82481c9-8abf-4a15-9f2b-6011e36c6b19& |
1 |