使用PowerShell查找其他域上的净用户?用户、PowerShell

2023-09-08 13:01:52 作者:摆摊卖萌

我所希望做的是

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"