Purpose
This article is related to student accounts however, it can be used for any Windows user account.
Scenaro
If a student device displays a blank screen or fails to load after sign-in, the student’s Windows user profile may be corrupted or stuck in a partially loaded state. This guide explains how to safely remove the affected profile so the student can sign in again and regenerate a clean profile.
Prerequisites
-
You must be logged in using a local administrator or Entra/Intune administrator account.
-
The affected student must not be logged in during this process.
Step 1: Sign in as an Administrator
Log into the device using an administrative account. Do not use the student account you intend to remove.
Step 2: Open PowerShell as Administrator
-
Click Start
-
Search for PowerShell
-
Right-click Windows PowerShell
-
Select Run as administrator
Step 3: List Existing User Profiles
Run the following command:
What to Look For
-
Review the LocalPath column.
-
Identify the student’s profile name.
-
You may see multiple profiles for the same student, such as:
-
john.doe -
john.doe.schoolDomain
-
All matching profiles must be removed.
Step 4: Remove the Student Profile
Run the following command:
Important Notes
-
Replace
studentwith the student’s actual username. -
Example:
-
Do not remove the asterisks (
*) — they ensure all matching profiles are removed. -
Press Enter to execute.
Step 5: Verify Profile Removal
To confirm the profile has been removed, run:
The student’s profile should no longer appear in the list.
Step 6: Restart the Device
Restart the system to fully clear cached profile data.
Step 7: Student Sign-In
After reboot:
-
The student may now sign in normally.
-
Windows will automatically create a new, clean profile for the student.
Common Scenarios This Resolves
-
Blank or black screen after login
-
Endless “Preparing Windows” screen
-
Profile load errors
-
Missing desktop or Start menu
Warnings
-
Removing a profile deletes local data stored in that user profile (Desktop, Downloads, Documents).
-
If data recovery is required, back up the profile folder before removal.