Skip to content

Commit

Permalink
set dns breaks ssm
Browse files Browse the repository at this point in the history
  • Loading branch information
sobostion committed Oct 16, 2024
1 parent c035b77 commit d5d7fab
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ tasks:
content: |-
# Join computer to domain if not already joined
if (! ((Get-WmiObject -Class Win32_ComputerSystem).PartOfDomain) ) {
Set-DnsClientServerAddress Ethernet -ServerAddresses ("${ad_ip_list[0]}","${ad_ip_list[1]}")
# Server is not joined to the domain
$domainJoinUserName = "Admin"
$domainJoinPassword = ConvertTo-SecureString((Get-SECSecretValue -SecretId ${ad_password_secret_name}).SecretString) -AsPlainText -Force
Expand Down

0 comments on commit d5d7fab

Please sign in to comment.