Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $CimOpt = New-CimSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck -Encoding Utf8 -UseSsl
- $CimSession = New-CimSession -Authentication Basic -Credential root -ComputerName $Hostname -port 443 -SessionOption $CimOpt
- $BmcSettings = Get-CimInstance -CimSession $CimSession -ClassName CIM_IPProtocolEndpoint | ? Name -match 'Management Controller' | Select IPv4Address, IPv4DefaultGateway, IPv4Netmask, MACAddress
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement