You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
24.06.2 - 2_createParentDisks.ps1 fails in PowerShell 7 #602
ParserError: H:\mslab_v24.06.2-2408-prod\2_CreateParentDisks.ps1:1056 Line | 1056 | … Import-DscResource -ModuleName PSDesiredStateConfiguratio … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Could not find the module 'PSDesiredStateConfiguration'.
Also confirm the same on WS 2022
Seems like it's related to PS 7.4.5. Jaromir Kaspar (@jaromirk) can you repro this please
1_prereq and Tests are ok
2_createparentdisks fails
Using Windows Terminal / PS 7.4.5 fails
Using Windows Terminal / PS 5.1 works
Tested OS
WS Insider
W11 24H2
WS 2022
If you see the same I believe it might be good opening an issue in PowerShell 7 repo. I would care about this.
Activity
Karl-WE commentedon Sep 29, 2024
doing the same Terminal > PS 5.1 works fine.
Karl-WE commentedon Sep 30, 2024
can confirm this in a different OS (W11).
Karl-WE commentedon Oct 3, 2024
Also confirm the same on WS 2022
Seems like it's related to PS 7.4.5.
Jaromir Kaspar (@jaromirk) can you repro this please
1_prereq and Tests are ok
2_createparentdisks fails
Using Windows Terminal / PS 7.4.5 fails
Using Windows Terminal / PS 5.1 works
Tested OS
WS Insider
W11 24H2
WS 2022
If you see the same I believe it might be good opening an issue in PowerShell 7 repo. I would care about this.
jaromirk commentedon Oct 3, 2024
Yeah, it never worked with PS7
Karl-WE commentedon Oct 3, 2024
Sad to hear. 1 and deploy and other Script work well.
OK I will open an issue in PowerShell github then.
jaromirk commentedon Oct 4, 2024
Does not make sense. It's incompatible with PowerShell DSC. It's a "feature"
Karl-WE commentedon Oct 4, 2024
OK. Thanks Jaromir. I have no insights so if you say they cannot fix this it's not worth trying.
If I run createparentdisks from the subfolder there is no warning and termination
Can I assume that only 2_createparentdisk is affected?
michbern-ms commentedon Oct 4, 2024
Bug understood - this is a breaking change in PowerShell 7.2. I went ahead and coded up a fix, please try it out.
#605
jaromirk commentedon Oct 5, 2024
Michael Bernstein (MSFT) (@michbern-ms) i added you as admin. Feel free to discuss internally with Vladimír (@machv) what's needed. Thank you for your contributions!
michbern-ms commentedon Oct 5, 2024
Thanks, Jaromir - I'm honored. I think my fix should cover the PS7 issue. If there are other things we should look at together, please let me know.