Using WMI Query UserName is invalid

  • Thread starter Thread starter DeepakHirapur
  • Start date Start date
D

DeepakHirapur

Guest
In Windows 8.1 logged on with Microsoft Account, When i execute the below command in the Windows Power shell
(get-wmiobject Win32_ComputerSystem).UserName

the User Name will be the in the below format as follows.
<systemname>/<domainname>/<username>

System Name: lenovo-pc
DomainName: LENOVO-PC
UserName: TestAccount

The USERNAME and DOMAINNAME are same in the system registry.

Why PC Name is retrieving from the above WMI Query?
How it is associated with the Usernanme?

Continue reading...
 
Back
Top