In: Computer Science
The powershell command that can be used to display all the "PATH" environemnt variables in a single line by using the env: PowerShell command to display all of the currently set Environment variables. It is used to display all the path enviroment variable that are currently set and you can use the command setenv to set the environment variables in the drive.
Two powershell command that can be used to display all of the users that are currently logged on the server or machine are the first is the gwmi which is get-wmiobject instance command and the second command in the gcim which is get-ciminstance , both of these command can be used to list all the user currently logged into machine and you can also use the command query user to list the currently logged in users.
In order to get the helpful imformation about a command in the cmdlet , we use the command for which we need helpful information which is here the Get command , and it is followed by the -help command to get the helpful information about that command , help can be used with any command to get helpful imformation and option related to that command for which we need help.