WHen using the script in intune I'm having some issues with some computers when I deploy the script it does not create the $Windows.~BT folder?
So the process is stuck at 0% since it can't find the folder. I'm not sure how to fix this issue?
INFO: Scheduled task "OneTimeCleanMgrAfterWin11Upgrade" has already been enabled.
SUCCESS: The parameters of scheduled task "OneTimeCleanMgrAfterWin11Upgrade" have been changed.
[2025-08-20 15:57:41] [INFO] [Script] [Line 2132] ServiceUI.exe found at: C:\Temp\Win11\ServiceUI.exe
[2025-08-20 15:57:41] [INFO] [Upgrade] [Line 2133] Starting Windows11InstallationAssistant.exe through ServiceUI.exe (visible to user)...
[2025-08-20 15:57:41] [INFO] [Upgrade] [Line 2142] Started Windows11InstallationAssistant.exe with process id 13484.
[2025-08-20 15:57:41] [INFO] [Script] [Line 2149] Started monitoring the upgrade process at 08/20/2025 15:57:41
[2025-08-20 15:57:41] [INFO] [Script] [Line 2150] Will wait for 02:00:00
[2025-08-20 15:57:41] [INFO] [Upgrade] [Line 2153] Waiting for C:$WINDOWS.~BT\Sources\Panther\setupact.log to appear...
[2025-08-20 15:58:11] [INFO] [Upgrade] [Line 2153] Waiting for C:$WINDOWS.~BT\Sources\Panther\setupact.log to appear...
[2025-08-20 15:58:41] [INFO] [Upgrade] [Line 2153] Waiting for C:$WINDOWS.~BT\Sources\Panther\setupact.log to appear...
------ps1 code
Wait for setupact.log to appear
**$setupactLogPath = 'C:\$WINDOWS.~BT\Sources\Panther\setupact.log'**
$maxDuration = New-TimeSpan -Hours 2
$startTime = Get-Date
LogMessage -message ("Started monitoring the upgrade process at $startTime")
LogMessage -message ("Will wait for $maxDuration")
while (-not (Test-Path $setupactLogPath)) {
LogMessage -message ("Waiting for $setupactLogPath to appear...") -Type 1 -Component 'Upgrade'
WHen using the script in intune I'm having some issues with some computers when I deploy the script it does not create the $Windows.~BT folder?
So the process is stuck at 0% since it can't find the folder. I'm not sure how to fix this issue?
INFO: Scheduled task "OneTimeCleanMgrAfterWin11Upgrade" has already been enabled.
SUCCESS: The parameters of scheduled task "OneTimeCleanMgrAfterWin11Upgrade" have been changed.
[2025-08-20 15:57:41] [INFO] [Script] [Line 2132] ServiceUI.exe found at: C:\Temp\Win11\ServiceUI.exe
[2025-08-20 15:57:41] [INFO] [Upgrade] [Line 2133] Starting Windows11InstallationAssistant.exe through ServiceUI.exe (visible to user)...
[2025-08-20 15:57:41] [INFO] [Upgrade] [Line 2142] Started Windows11InstallationAssistant.exe with process id 13484.
[2025-08-20 15:57:41] [INFO] [Script] [Line 2149] Started monitoring the upgrade process at 08/20/2025 15:57:41
[2025-08-20 15:57:41] [INFO] [Script] [Line 2150] Will wait for 02:00:00
[2025-08-20 15:57:41] [INFO] [Upgrade] [Line 2153] Waiting for C:$WINDOWS.~BT\Sources\Panther\setupact.log to appear...
[2025-08-20 15:58:11] [INFO] [Upgrade] [Line 2153] Waiting for C:$WINDOWS.~BT\Sources\Panther\setupact.log to appear...
[2025-08-20 15:58:41] [INFO] [Upgrade] [Line 2153] Waiting for C:$WINDOWS.~BT\Sources\Panther\setupact.log to appear...
------ps1 code
Wait for setupact.log to appear