Created
May 20, 2013 15:42
-
-
Save dgwhited/5613052 to your computer and use it in GitHub Desktop.
Get logged on user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$GetWMIObject = Get-WMIObject Win32_ComputerSystem -Computername $comp1 | |
$UserName = $GetWMIObject.UserName |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment