使用PowerShell查找其他域上的净用户? [英] Use powershell to look up 'net user' on other domains?

查看:121
本文介绍了使用PowerShell查找其他域上的净用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我所希望做的是

net user user1 /DOMAIN

不过,我想这样做对计算机没有加入,但可以访问域。

However, I'd like to do it for a domain that the computer ISN'T joined to but has access to.

用户有s $ P $垫入DOMAIN1和DOMAIN2。我从运行它的计算机加入到DOMAIN1但会查找用户的DOMAIN2。

Users are spread into DOMAIN1 and DOMAIN2. The computer I would run it from is joined to DOMAIN1 but would look up users on DOMAIN2.

这是可能的/使用PowerShell?

Is this possible in/with Powershell?

推荐答案

试试这个

Get-ADUser "user1" -Server "DC_of_other_domain"

这篇关于使用PowerShell查找其他域上的净用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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