01 - Admin rights & Terminal - Windows - Android

update 29 aug 2024

For experts

If you already have administrator rights on your PC to install and run new software, you can proceed directly to the next step 02 - Android Studio tools - Windows - Android

For beginners

A terminal, also called a Command Prompt on Windows, is a way of controlling a computer by entering text instead of using a mouse to click a button.
This mode of interaction is often faster and more convenient for executing tasks and changing settings. In this installation guide, simply copy the given commands, paste them into the command prompt, then press Enter. All the commands to be performed will be indicated and explained.

Greenspector Studio’s tools run within command prompt.

Image40.png
Windows command prompt

Launch

There are two ways to launch command prompt:

  • Option 1: In Start Menu, search for cmd and click on Command Prompt

Image20.png
Search results for cmd in Start Menu
  • Option 2: Launch Run

    • In Start Menu, search for and click on Run or use hotkey Windows + R

    • Type cmd and press Enter

 

Since Windows 7, Windows has offered a new terminal: Windows Powershell. However, this terminal introduces behaviors that differ from those presented in this documentation.

To ensure optimum installation and support of Greenspector Studio features, we recommend using the original Windows terminal.

Check admin rights

To run Greenspector Studio, user must have administrator rights to be able to install and run new softwares. To practice on the command prompt, we will use it to check this information.

  • Copy and paste, or type the following command in command prompt:

whoami

This command simply gives the computer and user names with format computer/user.

  • Copy only user name and add it to the next command:

net user "my_username"

Plenty of information about current user should appear.

  • Close to the end, find the line “Local group” and search for *Administrator on the right column.

A faster way

Command prompt is also able to combine different commands. The same results can be obtained with this single line:

for /f "tokens=2 delims=\" %i in ('whoami') do net user "%i" | findstr /C:"Admin"