Hi,
>>里面都是用户账号的SamAccountName,如何获取到用户账号对应的计算机账号
Get-ADUser 和 Get-ADComputer 是2个独立的命令, 没看到可以通过filter 用户名获取到计算机账号这种情况。
但是你可以通过运行Get-ADUser -filter * -properties * 可以看到logon worksatation 属性。
最后您可以试着运行:help get-aduser -full 或者 help get-adcomputer -full 获取更多帮助!
Best regards,
Andy
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact
tnmff@microsoft.com.