⚡ PowerShell 5.1+
Disable First Logon Animation
Skips the "Hi, we are setting things up for you" first-logon animation (requires admin). Requires an elevated (Administrator) prompt.
Set-DisableFirstLogonAnimation.ps1
<#
.SYNOPSIS
Disable First Logon Animation.
.DESCRIPTION
Skips the "Hi, we are setting things up for you" first-logon animation (requires admin). Requires an elevated (Administrator) prompt.
Sets HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System \ EnableFirstLogonAnimation to 0.
.EXAMPLE
.\Set-DisableFirstLogonAnimation.ps1
#>
[CmdletBinding()]
param()
$regPath = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System'
if (-not (Test-Path $regPath)) {
New-Item -Path $regPath -Force | Out-Null
}
New-ItemProperty -Path $regPath -Name 'EnableFirstLogonAnimation' -Value 0 -PropertyType DWord -Force | Out-Null
Write-Host "Disable First Logon Animation applied. Sign out and back in (or restart explorer.exe) for it to fully take effect." -ForegroundColor Green