Skip to content
Open
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions CHECKSUMS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
12A4DBEF78D055AF2194599FF3D17359A9F4E033BBB6BB8C2EF2BC83F64BBDF0 assets/validation-pass.svg
190891FBBB90A5E65DFDA98BF2156E3E96162570D840BB78C716877B9816C73B .github/skills/copilot-pr-autopilot/references/06-build-test.md
19B4C6301E6B2AB4B8E3941D7B964C3BDC892AB8763B5DD965ADF3A0E48C7AAF .github/instructions/powershell-pester-6.instructions.md
1AB4BA457300538EE1E81BC720F7E1653C60212BBDF25C03707A6C847BCE7C53 docs/architecture.md
1D6AF997C4D1A916A2FEB00B4134685734C4D49ABB722246987C309CF5ABC6D4 .github/skills/copilot-pr-autopilot/templates/reply-drift.md
1ED4E3E647F752AD7D7CAFC8E3D4074612593ED9AD21B9B66B96BAD4266211B0 build/Update-Banners.ps1
211B1889B15D97E6D213E009663BADA6E8C0DC50A8F8C647A23FE17A34231947 .github/pull_request_template.md
229B99CB364794905604F3DF1AF743818B87BEF3285AEA2D8F9E2EF7110BEBE6 LICENSE
22D6D77DC30B753FC74E513EFE398EF4DA6E8A6AE62D0D3DE0C922F03A1ABC75 .github/CODEOWNERS
2990A9CF1DAF44D2F5258D5320B341A61AE91A2E516075B4C628CECF0472A7B6 docs/architecture.md
2A56F8F2D4AA5C18E7EB15A1760F8BF21401EEEF2484958E3BD48EC6BE56F2F3 .github/agents/terminal-helper.agent.md
2B3DD07AB98C1F92378EE4BDC8204AD737F966D52C88BA226ED6F4A4EC5AA31E _config.yml
2C44A8D0DA53C9434FC01C413595A93565A74F92FCCAACE48B4A5C2D7290A490 Tests/Runtime.Tests.ps1
Expand Down Expand Up @@ -47,13 +47,12 @@
7C48241074306AA35FF34F2E4C313B993ADA30A1033085D2D9CD00766908825F assets/README.md
7F00EF620F17FF1658F28201FA68203052E7F3F5DFED5593314157368E458C2B assets/copylog-flow-compact.svg
8845336535E37445A6F47CAEF622BD41AEF18C3A8F42CC4CEEAD428AA9E134E3 index.md
8E5DED2008289090F70C47DE5E30F12726490A11E4E286766379E7A4D7590978 Scripts/Copy-OSDLogToFileShare.ps1
8EA9AF506DBF491D025163C3E074202689402A373877474CB665DF51ACB0193F examples/contoso-task-sequence.md
9424B7DD9F2D2505F9CF6D4C1C5FF4F762C9E1075D19710236ACB6A4F5354925 .github/skills/copilot-pr-autopilot/references/09-convergence.md
99D0818971B014847E1EED2303AC76D88216B010E6B3D5E71E3411BBE670E909 AUTHORS.md
9C069DC1A798FD578D45295CE3CB502B39ED5693C7F282EE45646E396E563A21 assets/people-team.svg
9C44FAF8EAC771AAB5BB2355D1917006CD0D0C3D90EB884105B3AB4E07AF9681 Tests/Repository.Tests.ps1
9FE08577B65ED213A330F8B3BDA113478BEF85A043AB5A298A0939038BE918CB .github/ISSUE_TEMPLATE/config.yml
9FF4CFA434AFD476F48ABFB514B0DC4E066D6E0B58422A64CD2A04BA52EBFECC Tests/Repository.Tests.ps1
A047D4BF5DC341B6E460F0D3EABD52AA884ED92F0EE5A2B86847B3AEB3486609 assets/folder-arrow-right.svg
A432EFD1B2D62FE2CF17EA41C9436D9CE5AF9602951ACEC84FEE39E972F3C97C .github/skills/copilot-pr-autopilot/scripts/02-check-review-status.ps1
A62401FFE862D619076EC8CE902FBE7F17E9A816ACC1D869C4D82E5C0B038754 CHANGELOG.md
Expand All @@ -68,6 +67,7 @@ BB2012270EF967146EA45FB415971113F36B7C9AD0D1A83D3B25BA5102188C2A .github/skills
BB69D8D3B532E3D6F789003F7280D53EB326A84C2356BAC3BF1DCE97695AA2F5 .github/agents/microsoft_learn_contributor.agent.md
BE400903F0FDBF54CA82A05AA16EC426300331EB21E28E894AD149B36DD8AE98 build/Invoke-Validation.ps1
BF528DC4807B5CD45B9513F4154551F3BD8BFDAD9BB4BA12A80C3FCBB7283063 .vscode/extensions.json
BFD0716E7526C778325D1DC6712577F8D195226C7ED987FE139B6A6BD1D47F97 Scripts/Copy-OSDLogToFileShare.ps1
C20088406D51C13A1B029C169E8BA1BF45939D7B3829CF09F5900CD71C049484 .github/skills/copilot-pr-autopilot/references/02-wait.md
C432B66C1111C49CEC50613A8E59972E3A49C35D0D0E15595915B378E1F2AE1E assets/css/style.scss
C92B63FE51F8793EECE9953ECD496046F6180F740D50E60C36628ECACF09EF0C Tests/Validation.Tests.ps1
Expand Down
2 changes: 1 addition & 1 deletion Scripts/Copy-OSDLogToFileShare.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ function Invoke-ArchiveCreation {
[string]$ArchivePath
)

[System.IO.Compression.ZipFile]::CreateFromDirectory($SourceFolder, $ArchivePath, [System.IO.Compression.CompressionLevel]::Optimal, $false)
[System.IO.Compression.ZipFile]::CreateFromDirectory($SourceFolder, $ArchivePath, [System.IO.Compression.CompressionLevel]::Fastest, $false)
}

function Confirm-SmbConnectionSecurity {
Expand Down
5 changes: 5 additions & 0 deletions Tests/Repository.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ Describe 'Repository contract' {
$script:ProductionScript | Should -Not -Match 'cmdkey|net\s+use|Win32_Product|Get-WmiObject|\bwmic(?:\.exe)?\b'
}

It 'uses fastest ZIP compression to minimize task-sequence runtime' {
$script:ProductionScript | Should -Match '\[System\.IO\.Compression\.CompressionLevel\]::Fastest'
$script:ProductionScript | Should -Not -Match '\[System\.IO\.Compression\.CompressionLevel\]::Optimal'
}

It 'binds the script-scoped credential in the orchestration and leaves no unqualified Credential reference' {
$Statements = $script:Ast.EndBlock.Statements
$Start = ($Statements | Where-Object { $_.Extent.Text -eq '$ExitCode = 1' } | Select-Object -First 1).Extent.StartOffset
Expand Down
2 changes: 1 addition & 1 deletion docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ title: Architecture
2. Initialize `CopyOSDLogs.log`, read the three required custom variables, and construct an in-process `PSCredential`. Native task sequence steps own the variables' creation and deletion.
3. Select the Windows volume and create a unique staging directory under `Windows\Temp\PendingOSDLogs`.
4. Copy each source into `Content\<SourceName>`. A missing or unreadable optional source is recorded in the manifest, and collection continues.
5. Write `_Meta\Manifest.json` and a snapshot of the dedicated log. Create the ZIP with .NET Framework `ZipFile.CreateFromDirectory`; an existing archive name is rejected without deleting its contents.
5. Write `_Meta\Manifest.json` and a snapshot of the dedicated log. Create the ZIP with .NET Framework `ZipFile.CreateFromDirectory` using fastest compression to reduce task-sequence runtime; an existing archive name is rejected without deleting its contents.
6. For each upload attempt, validate the UNC path and available SMB controls, then test TCP 445. Create a nonpersistent mapping, or use the explicitly approved PSDrive fallback. Inspect the connection before copying.
7. Copy to the existing destination folder and compare remote and local byte sizes. Clear mapping arguments and remove only the connection created by this attempt in `finally`. A cleanup failure is not reported as successful delivery.
8. After verified delivery, remove this run's staging directory and local ZIP. Return `0` only after those removals finish; otherwise return `1`. Native task sequence steps then clear credentials and propagate the saved result.
Expand Down
Loading