Get-WmiObject -Query "Select * From Win32_NTEventlogFile"同上
Get-WmiObject -Class Win32_NTEventlogFile遠隔接続 WinRM の有効化(wmimgmt.msc で設定変更)とファイアウォール(Windows Management Instrumentaion)の許可が必要。
$cred = Get-Credential Get-WmiObject -Class Win32_ComputerSystem -ComputerName "computername" -Credential $cred -Authentication PacketPrivacy