Let's say my windows login is "brian". And I have a second account "brian-admin". I am logged in as "brian". And I run Powershell via "Run as administrator" with "brian-admin". Now if I install programs from the command line which profile are they installed to, brian or brian-admin?
Let's just say I installed NVM via:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
Now, similar scenario. I am still logged in as "brian". I run Powershell as administrator. Then I use runas "brian" to install an application. Will this application be installed with administrative rights? Which profile does this application get installed to?
Fundamentally, I am asking if this idea of having 2 accounts is natively supported by Windows? I'm accustomed to having 1 account "brian" that either has or does not have admin rights. In combination w/ UAC which has sort-of 2 modes. A normal token and an admin mode token. Not aware of any such mode where 2 accounts are involved.
UPDATE
To clarify, I want to know the process to install apps to "brian". I never login to "brian-admin" only brian. Yet, all my software developer apps require elevation at least for installation (Visual Studio, SQL Server Management Studio, NVM, Node, ETC...).