Powershell user and profile tutorial

To find the path to Powershell profile of the currently signed in user:  $profile
To find the Powershell currently signed in user Domain name included:  whoami
To find the Powershell currently signed in user:  $env:UserName
To find the Powershell current Doamin:  $env:UserDomain
To find the path of currently signed in user:  $env:userprofile
To find the Computer name using Powershell:  $env:computername

 

Leave A Reply

Your email address will not be published.

3 + eleven =

This site uses Akismet to reduce spam. Learn how your comment data is processed.