Query User -Server:<machineName> is not Powershell but it is a quick & dirty way to get SessionName and ID for the logged on user of the specified machine.
‘HELP about_’ will bring up the list of all about_ topics
~ is a shortcut to your local profile. It represents c:\Users\<username>
Many Microsoft products (including the ISE) support CTRL + mouse wheel = Zoom in/out
Invoke-Command will work si·mul·ta·ne·ous·ly on multiple computers/servers
Hold down the ALT key while copying from PS console or ISE for block copy (instead of full lines).
$env: is your friend. It not only holds paths to many of your favorite locations but provides host information as well:
Host Info: COMPUTERNAME,FP_NO_HOST_CHECK, LOGONSERVER, NUMBER_OF_PROCESSORS, OS, Path, PATHEXT, PROCESSOR_ARCHITECTURE, PROCESSOR_IDENTIFIER, PROCESSOR_LEVEL, PROCESSOR_REVISION, USERDOMAIN, USERDOMAIN_ROAMINGPROFILE, USERNAME
Paths: ALLUSERSPROFILE, APPDATA, asl.log, CommonProgramFiles, CommonProgramFiles(x86), ProgramW6432, ComSpec, configsetroot, HOMEDRIVE, HOMEPATH, LOCALAPPDATA, OneDrive, PHPRC, ProgramData, ProgramFiles, ProgramFiles(x86), ProgramW6432, PSModulePath, PUBLIC, SystemDrive, SystemRoot, TEMP, TMP, USERPROFILE, windir
Powershell has a lot of built in variables. But some are weird (and may not be PS in origin). Example $(whoami) which returns the ‘[Security.Principal.WindowsIdentity]::GetCurrent().Name’ which is domain(workgroup)\logged on username.
In ISE, to see help about a command, mouse over it and press CTRL + Space.
#tags: Query User, Help about, tilde, zoom, $env, Block Copy, Whoami, Help ISE, Powershell