The windows loading screen
Most Recent
Forum Legend
Following
New Comments
Locked Topic
Pinned Topic
cd\
cls
$formatError = New-Object System.InsufficientMemoryException
Write-Host "Preparing for System Software Update..."
sleep -s 5
Write-Host "This is taking longer than usual. Maybe check your internet connection?"
sleep -s 8
Write-Error -Message "Cannot continue with system software update: Insufficient system memory remaining to continue with command execution." -Category LimitsExceeded -ErrorId "Out of Memory, Microsoft.PowerShell.System.InsufficientMemoryException" -TargetObject "Start-Process WinPSUpdate.exe" -RecommendedAction "Close any open programs to free up memory. If this doesn't work, restart your system." -CategoryActivity "System Out of Memory" -CategoryReason "SYSTEM_RAM_INSUFFICIENT" -CategoryTargetName "Microsoft.PowerShell.Update" -CategoryTargetType "Windows PowerShell Data File"
sleep -s 5
cls
sleep -s 1
Write-Host "The system is recovering after an unexpected restart due to the error:" $formatError -ForegroundColor Red -BackgroundColor Black
sleep -s 7
for($I = 0; $I -le 200; $I++ )
{
Write-Progress -Activity 'ScanDisk' -Status "Checking System Storage Status... $I/2% Complete" -PercentComplete ($I / 2) -CurrentOperation "The status of the system storage is being checked. Please wait..."
}
cls
for($I = 0; $I -le 9999; $I++ )
{
Write-Progress -Activity 'Booting..' -Status 'Rebooting...' -PercentComplete ($I / 99.99) -CurrentOperation "The system is booting. Please wait..."
}
cls
sleep -s 1
for($I = 0; $I -le 999; $I++ )
{
Write-Progress -Activity 'Signing In..' -Status 'Signing in to user account...' -PercentComplete ($I / 9.99) -CurrentOperation "Signing you into account $env:USERNAME..."
}
cls
sleep -s 1
for($I = 0; $I -le 4000; $I++ )
{
Write-Progress -Activity 'Signing In..' -Status 'Preparing Your Desktop...' -PercentComplete ($I / 40) -CurrentOperation "The system is preparing your desktop. This will only take a few moments..."
}
cls
for($I = 0; $I -le 500; $I++ )
{
Write-Progress -Activity 'Signing In..' -Status 'Preparing Your Command Console...' -PercentComplete ($I / 5) -CurrentOperation "The system is preparing your Command Console Interface. This will only take a few moments..."
}
cls
sleep -s 1
Write-Host "Windows PowerShell"
Write-Host "Copyright (C) Microsoft Corporation. All rights reserved."
Write-Host ""
Write-Host "Try the new cross-platform PowerShell https://aka.ms/pscore6"
sleep -Milliseconds 500
return
That took a while. See if you can figure out what this code will do!