Hello,
Thank you for posting in Microsoft Community forum.
Based on the description, I understand your question is related to A BUG in WinPE for Win11 22H2.
- Add setlocal enabledelayedexpansion at the beginning of your script instead of setlocal.
- Try replace %myWim1% and %myWim2% with !myWim1! and !myWim2! respectively in below. echo. echo A !myWim1! !myWim2! echo A !myWim2! pause set myWim1=!myWim2!
Have a nice day.
Best Regards,
Molly