Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 40 additions & 9 deletions common/windows_scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,57 @@
### Overview
A batch script to capture **device driver** and **network configuration** information in **Windows Preinstallation Environment (WinPE)**, useful for system diagnostics.

### Commands used
---
### Setup
Boot the system into the **Windows Preinstallation Environment (WinPE)**.

Download the `device_driver_winpe.bat` script from the `common/windows_scripts/` directory of the `arm-systemready` repository and save it to a writable disk or partition accessible from WinPE.

To identify the available disks and volumes in WinPE:
```cmd
diskpart
list volume
exit
```
Switch to the drive where the script was downloaded. For example:
```cmd
D:
cd <path-to-script>
```
---
### Commands used in the script
```cmd
pnputil /enum-devices /connected
```
> Lists all currently connected devices with their associated driver details. Useful for confirming hardware recognition and driver loading inside WinPE.
---

```cmd
ipconfig /all
```
> Outputs detailed networking configuration — including IP address, gateway, DNS, MAC address, DHCP info, and more. Helpful for verifying network connectivity in pre-boot environments.
---
> Outputs detailed networking configuration — including IP address, gateway, DNS, MAC address, DHCP info, and more. Helpful for verifying network connectivity in pre-boot environments.

---
### Usage
To run and **save the output to a file**:
To run and save the output to a file:
```cmd
device_driver_winpe.bat > output.log
device_driver_winpe.bat > device_driver_winpe.log
```
> The log will be saved as `output.log` in the current directory.
> The log will be saved as `device_driver_winpe.log` in the current directory.

**Note:** Use `type output.log | more` to view logs page by page in WinPE environment.
**Note:** Use `type device_driver_winpe.log | more` to view logs page by page in the WinPE environment.

---
### Saving Logs to ACS Results
Identify the drive containing the ACS results and copy the generated log to the corresponding WinPE OS logs directory in the ACS results:

```cmd
copy device_driver_winpe.log D:\acs_results_template\os-logs\winpe\
```
The resulting log should be available at:
```text
acs_results_template/os-logs/winpe/device_driver_winpe.log
```
Alternatively, the generated `device_driver_winpe.log` can be downloaded or copied from the WinPE environment to the local system and then manually copied to `acs_results_template/os-logs/winpe/`

---------------------------------
*Copyright (c) 2025, Arm Limited and Contributors. All rights reserved.*
*Copyright (c) 2025-2026, Arm Limited and Contributors. All rights reserved.*
Loading