HewlettPackard / PowerShell-ProLiant-SDK

PowerShell sample scripts for managing HPE servers
https://www.hpe.com/servers/powershell
90 stars 42 forks source link

Sample Script Set-HPEiLOIPv4NetworkSetting #49

Closed kesch095 closed 4 years ago

kesch095 commented 4 years ago

Hi there,

i have a few issues understanding the Set-HPEiLOIPv4NetworkSetting cmdlet. Especially the DNS Parameter.

Can you provide me with an sample Script setting a static ipv4, domain name and dns servers?

Greetings Kevin

kesch095 commented 4 years ago

nevermind, got it working! :)

I had so disable the DHCPv6 supplied domain name with:

$connection | Set-HPEiLOIPv6NetworkSetting -DHCPv6DNSServer Disabled -DHCPv6StatelessMode Disabled -DHCPv6StatefulMode Disabled -InterfaceType Dedicated -DHCPv6SNTPSetting Disabled -DHCPv6DomainName Disabled -DHCPv6RapidCommit Disabled -StatelessAddressAutoConfiguration Disabled