This topic contains 2 replies, has 3 voices, and was last updated by
December 22, 2018 at 12:21 am #130680ParticipantPoints: 11Rank: Member
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
#Change suffix list:
Set-DnsClientGlobalSetting -SuffixSearchList @("iil.intel.com" , "ger.corp.intel.com" , "corp.intel.com" , "intel.com")
Thank you for your support.
December 22, 2018 at 12:59 am #131102
December 22, 2018 at 6:43 am #131154ParticipantPoints: 512Rank: Major Contributor
There are plenty of sample script for this use case all over the web. Just use your post title to find them. Example:
Change DNS ip addressess remotely on multiple computers
Powershell: Change DNS ip addressess remotely on multiple computers
Risk Management Statement:
Never run any one else's code unless you know exactly what it is doing, no matter who / where you get it from.
Initially only use sandboxed / test environments.
You must be logged in to reply to this topic.