I can’t help with viewing or revealing a PC password
If it’s your PC, use the built-in password reset or account recovery option
On Windows, use the Microsoft account password reset page if you sign in with a Microsoft account
On Windows, use another administrator account to change the local account password
On Windows, use a password reset disk if you created one earlier
On macOS, use Apple ID or Recovery Mode to reset the login password
Check your password manager if you saved the password there
Contact your organization’s IT administrator if this is a work PC
If you need access to your own device and recovery fails, contact the device manufacturer or a trusted technician
