Quantcast
Viewing all articles
Browse latest Browse all 182084

Re: Hardware sensors

Try the following on a client where you have PowerShell v3 installed.

 

import-moduleCimCmdlets
$ipaddress="192.168.1.1"
$HostUsername="root"
$CIOpt=New-CimSessionOption-SkipCACheck-SkipCNCheck-SkipRevocationCheck-EncodingUtf8-UseSsl
$Session=New-CimSession-AuthenticationBasic-Credential$HostUsername-ComputerName$Ipaddress-port443-SessionOption$CIOpt
Get-CimInstance-CimSession$Session-ClassNameCIM_ServiceAccessPoint|
Where {$_.SystemName-match"Management"} |SelectIPv4Address

The $ipaddress variable should contain the IP address of the ESXi server.

You'll be prompted to provide the root password when the CIM session is established.


Viewing all articles
Browse latest Browse all 182084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>