Windows 8.1上Microsoft帐户中用户名的WMI查询的奇怪答案 [英] Strange answer to WMI query for user name in Microsoft account on windows 8.1

查看:97
本文介绍了Windows 8.1上Microsoft帐户中用户名的WMI查询的奇怪答案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我们在Windows 8.1 PC上使用Microsoft帐户登录后,从C#代码执行了以下查询。

Hi,
We have executed the below query from the C# code when logged in with a Microsoft account on Windows 8.1 PC.

Quote:

(get-wmiobject Win32_ComputerSystem -ComputerName< user pc =name =>)。UserName

(get-wmiobject Win32_ComputerSystem –ComputerName "<user pc="" name="">").UserName



我们收到了以下答案。


We have received the below Answer.

Quote:

Lenovo-Pc / user。@ outlook.com>

Lenovo-Pc/user.@outlook.com>



但是,我们在市场上的用户得到了以下回复。


But, our user in the market got the below response.

Quote:

Lenovo-Pc / LENOVO-PC / user。@ outlook.com>

Lenovo-Pc/LENOVO-PC/user.@outlook.com>





在Windows 8.1中的Microsoft帐户收到这个奇怪的答案。

由于这个原因,我们的代码失败了。



什么是导致WMI为UserName查询提供奇怪答案的PC条件?



感谢任何快速回复。

非常感谢。



我尝试了什么:



我们试图重命名PC名称。重命名PC后,响应正常。



This strange answer is received on Microsoft account in Windows 8.1.
Due to this our code failed.

What is the PC condition that causes the WMI to give the strange answer for UserName query?

Appreciate any quick response.
Thank you very much.

What I have tried:

We have tried to rename the PC name. After renaming the PC, the response is proper.

推荐答案

参见 Power shell命令返回不正确的用户名格式 [ ^ ]。



你是发布参考问题的同一个人?
See Power shell commands returning the improper user name format[^].

Are you the same person that posted the reference question?


这篇关于Windows 8.1上Microsoft帐户中用户名的WMI查询的奇怪答案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆