Repository navigation
Commit 8bf103f
Support DISM in host initialization with MSIX PowerShell (#98)
## Summary
- Import the DISM module through Windows PowerShell compatibility when
`host_init.ps1` runs in MSIX-packaged PowerShell 7, retaining native
DISM calls for unpackaged installs.
- Stop on DISM query or installation errors instead of continuing with
setup after a failed feature check.
- Document the workaround and the separate PowerShell 7 remoting
limitation of MSIX for the rest of the lab.
Workaround for PowerShell/PowerShell#13866.
## Validation
- PowerShell syntax parsed successfully, and the compatibility import
exposed all four DISM commands as proxy functions locally.
- User reports running the updated script on their machine; the host's
feature state was not independently verified in this worktree.
Co-authored-by: Copilot App <[email protected]>1 parent 1735671 commit 8bf103f
2 files changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
37 | | - | |
38 | | - | |
| 41 | + | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| |||
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
88 | | - | |
89 | | - | |
| 92 | + | |
| 93 | + | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
| |||
0 commit comments