Repository navigation
Conversation
…der-based profiles
Collaborator
Author
|
@copilot resolve the merge conflicts in this pull request |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Terminating failures can leave transcription active, and release metadata and documentation contain confirmed inconsistencies.
5 open findings
Manifest and release documentation versions are inconsistent · New Transcript remains active when process terminates · New Registry and certificate paths omit required Core subfolder · New Changelog claims startup logging tests that are missing · New New function lacks required help and error initialization · New
What changed in this PR
Enhances WinpeStartup profile discovery, environment initialization, and startup diagnostics while retaining legacy profile compatibility.
Changes:
- Adds folder-based profiles with legacy JSON support.
- Imports
.env, registry, and certificate assets from Core folders. - Adds startup transcription, tests, documentation, and release metadata updates.
| File | Description |
|---|---|
README.md |
Updates release overview and features. |
CHANGELOG.md |
Documents the WinpeStartup release changes. |
OSDCloud/OSDCloud.psd1 |
Updates module version. |
OSDCloud/public/WinPE/Invoke-WinpeStartup.ps1 |
Adds transcription and profile helper usage. |
OSDCloud/private/Get-WinpeStartupProfileCandidates.ps1 |
Discovers folder and legacy profiles. |
OSDCloud/private/Get-WinpeStartupProfileCandidates.Tests.ps1 |
Tests profile discovery. |
OSDCloud/private/WinpeStartup/Initialize-WinpeStartupEnvironment.ps1 |
Imports environment, registry, and certificate assets. |
OSDCloud/private/WinpeStartup/Initialize-WinpeStartupEnvironment.Tests.ps1 |
Tests environment and native imports. |
OSDCloud/private/WinpeStartup/Initialize-WinpeStartupMain.ps1 |
Refines initialization logging. |
OSDCloud/core/winpestartup-profiles/OSDCloud/winpestartup.json |
Adds the folder-based OSDCloud profile. |
docs/about_winpestartup.md |
Documents profile layouts. |
docs/06-unattended-usb-profile.md |
Updates profile creation guidance. |
docs/09-troubleshooting.md |
Updates profile discovery diagnostics. |
.github/skills/author-winpe-profile-json/SKILL.md |
Updates profile-authoring guidance. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| # --- Identity --- | ||
| RootModule = 'OSDCloud.psm1' | ||
| ModuleVersion = '26.10.4.1' | ||
| ModuleVersion = '26.10.9.1' |
| Write-Verbose 'Invoke-WinpeStartup: Complete' | ||
| } | ||
|
|
||
| if ($startupTranscriptStarted) { |
| ### Added | ||
|
|
||
| - Added WinpeStartup logging to `X:\Windows\Temp\winpestartup.log`; transcript start and stop failures warn without preventing startup. | ||
| - Import registry files from `X:\WinpeStartup\core\winpe-reg\*.reg` and certificates from `X:\WinpeStartup\core\winpe-root-cer\*.cer` during environment setup. Files are processed in sorted path order, and discovery, import, or launch failures warn and continue. |
| - Added WinpeStartup logging to `X:\Windows\Temp\winpestartup.log`; transcript start and stop failures warn without preventing startup. | ||
| - Import registry files from `X:\WinpeStartup\core\winpe-reg\*.reg` and certificates from `X:\WinpeStartup\core\winpe-root-cer\*.cer` during environment setup. Files are processed in sorted path order, and discovery, import, or launch failures warn and continue. | ||
| - Import process environment defaults from `X:\WinpeStartup\core\*\*.env`, including hidden `.env` files, in sorted path order before shell and selected-profile overrides. Entries use literal single-line assignments; invalid entries and file failures warn and continue without logging values. | ||
| - Added tests for profile discovery, environment defaults, startup logging, and registry and certificate imports. |
Comment on lines
+1
to
+3
| function Get-WinpeStartupProfileCandidates { | ||
| [CmdletBinding()] | ||
| param () |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Introduce support for folder-based profiles in WinpeStartup, enhance environment file handling, and add logging functionality during the startup process. Remove obsolete profiles and update module version to reflect these changes. Include tests for new features and ensure backward compatibility with legacy profile formats.