Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Foreach output from get-command, add menu item

$
0
0

Hi

I'm making a script to configure some basic settings for new servers, and one of the features in the script is to set ip-address on the network interface. 

At some servers there are several network interfaces, and I would like to create a menu based on the output from a get-query(Get-NetAdapter | select Name). Setting the ip-addresses is okay, but I'm having a problem creating a menu.

What I want to do: If there is more than one NIC, create a menu with each network interface.

Any clues?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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