尝试在客户的服务器上为我的计算机使用Get-EventLog
cmdlet。
服务器名称(我们这里的目的)是File01.customersdomain.local
,IP地址是192.168.0.100
。我们在VPN上使用NAT IP地址10.99.10.100
对此服务器进行了NAT,并将此计算机作为File01.sellersdomain.local
在我们(卖方)的DNS中使用。
是否有成功在不同域中使用Get-EventLog
cmdlet的技巧?当然,我可以通过RDP登录到本机并在本地运行,但我想简化一下这个过程。
我试过了:
Get-EventLog -Newest 5 -LogName "System" -ComputerName 10.99.10.5
Get-EventLog -Newest 5 -LogName "System" -ComputerName File01.customersdomain.local
Get-EventLog -Newest 5 -LogName "System" -ComputerName File01.sellersdomain.local
Get-EventLog -Newest 5 -LogName "System" -ComputerName File01
Get-Credential CUSTOMERSDOMAIN\\(USER)
Get-EventLog -Newest 5 -LogName "System" -ComputerName File01.sellersdomain.local
每次我收到相同的消息:
找不到网络路径。
PING
和Test-Connection
成功。
注意:未经文档批准,我不得对服务器进行任何更改,也不允许我提出任何偏离客户当前安全最佳实践的建议。