A little background.
i’m trying to deploy DNS suffix to multiple local servers (i’m working in an enterprise organisation) this testing environment is disconnected from the domain environment (we use AP configured as a DHCP and some swtiches).
My goal is to deploy to 60 servers the DNS suffix, instead of login to each one and manually doing it.
i successfully created a script to deploy it on one servers , the question is, what cmdlet i need to use in order to deploy this command to 60 servers.
here i the cmdlet i use:(i’m running the script locally on the server and it works)…
#Change adapter names:
Rename-NetAdapter -name “Ethernet 2” -NewName “Black”
Rename-NetAdapter -name “Ethernet” -NewName “Internal”
$netadapter = Get-NetAdapter -Name Black
Thank you for your support.