-
Notifications
You must be signed in to change notification settings - Fork 598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rds-update-certificate script.ps1 fix issue #12 #13
Conversation
This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -38,7 +38,7 @@ $ConfigData = @{ | |||
} # End of Config Data | |||
|
|||
$Logfile = ".\CB_PostConfig1.1_{0}.log" -f (get-date -Format "yyyyMMddhhmmss") | |||
� | |||
� |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
funny character
� | ||
�� Add-content $Logfile -value $logstring | ||
�� Write-Host $logstring | ||
�� Param ([string]$logstring) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what are these funny characters, what IDE are you using
make sure indentation and spacing consistent with the rest of the file
@@ -24,7 +24,7 @@ param | |||
) | |||
|
|||
$localhost = [System.Net.Dns]::GetHostByName((hostname)).HostName | |||
$domainNetbios = (Get-ADDomain -Current LocalComputer).NetBIOSName | |||
$domainNetbios = (Get-WmiObject Win32_NTDomain -Filter "DnsForestName = '$((Get-WmiObject Win32_ComputerSystem).Domain)'").DomainName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a comment on #17: there is no intent to support WS2012,
the two supported versions are WS12R2 and WS16 where this cmdlet is available. so not an issue, and no fix required
fix for issue #12 rds-update-certificate script.ps1 azurerm always installing