C:\Windows\system32>su administrator
C:\Windows\system32>su administrator
'su' is not recognized as an internal or external command,
operable program or batch file.
I am the only one who uses my laptop and I set it up normally (as I recall) something like five or more years ago, and I've never logged into the administrator account explicitly.
When I right click to run as admin on an executable it doesn't ask for the password when the User Account Control box comes up.
When I want to open an admin command prompt, I use the search to find the "Run as administrator" shortcut which doesn't ask me for a password when
the User Account Control box comes up.
Or I just type Win+R > cmd {ctrl+shft+enter} which does the same thing.
Then in the command prompt I ask "whoami" and it says "you/you" and not "admin/admin" which works for me because I have admin permissions.
But how would I even know what the admin password is that I set years ago? Obviously I'll have to use trial and error (I have ideas what it could be).
But is there a way from my user account to "log into" the admin?
Sort of like how Linux has the switch user "su" command?
C:\Windows\system32>su administrator
C:\Windows\system32>su administrator
'su' is not recognized as an internal or external command,
operable program or batch file.
I am the only one who uses my laptop and I set it up normally (as I recall) something like five or more years ago, and I've never logged into the administrator account explicitly.
When I right click to run as admin on an executable it doesn't ask for the password when the User Account Control box comes up.
When I want to open an admin command prompt, I use the search to find the "Run as administrator" shortcut which doesn't ask me for a password when
the User Account Control box comes up.
Or I just type Win+R > cmd {ctrl+shft+enter} which does the same thing.
Then in the command prompt I ask "whoami" and it says "you/you" and not "admin/admin" which works for me because I have admin permissions.
But how would I even know what the admin password is that I set years ago? Obviously I'll have to use trial and error (I have ideas what it could be).
But is there a way from my user account to "log into" the admin?
Sort of like how Linux has the switch user "su" command?
C:\Windows\system32>su administrator
'su' is a Unix command. It's not available in MS command line.
Unless you set up a separate standard account, you are logging into an admin account, the account set up when you first set up a WinBox is an admin account.
You can also set up the built-in admin account; until Vista it was
live automatically, since Vista you have to enable it.
See, for example, https://www.groovypost.com/howto/enable-disable-built-in-administrator- account-windows-10/
You probably are using an admin account.
You almost certainly are using an admin account.
Enable the built-in, and switch users.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 11:37:26 |
Calls: | 6,666 |
Files: | 12,213 |
Messages: | 5,336,377 |