Update install-microsoft-ata.ps1
This commit is contained in:
@@ -87,7 +87,7 @@ Start-Sleep -Seconds 60
|
|||||||
|
|
||||||
Invoke-Command -computername dc -Credential (new-object pscredential("windomain\vagrant",(ConvertTo-SecureString -AsPlainText -Force -String "vagrant"))) -ScriptBlock {
|
Invoke-Command -computername dc -Credential (new-object pscredential("windomain\vagrant",(ConvertTo-SecureString -AsPlainText -Force -String "vagrant"))) -ScriptBlock {
|
||||||
|
|
||||||
Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) [$env:computername] Installing ATA Lightweight gateway..."
|
Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) [$env:computername] Installing the ATA Lightweight gateway on DC..."
|
||||||
|
|
||||||
# Enable web requests to endpoints with invalid SSL certs (like self-signed certs)
|
# Enable web requests to endpoints with invalid SSL certs (like self-signed certs)
|
||||||
if (-not("SSLValidator" -as [type])) {
|
if (-not("SSLValidator" -as [type])) {
|
||||||
@@ -138,7 +138,7 @@ Invoke-Command -computername dc -Credential (new-object pscredential("windomain\
|
|||||||
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = $null
|
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = $null
|
||||||
}
|
}
|
||||||
|
|
||||||
# set dc as domain synchronizer
|
# set DC as domain synchronizer
|
||||||
$config = Invoke-RestMethod -Uri "https://localhost/api/management/systemProfiles/gateways" -UseDefaultCredentials -UseBasicParsing
|
$config = Invoke-RestMethod -Uri "https://localhost/api/management/systemProfiles/gateways" -UseDefaultCredentials -UseBasicParsing
|
||||||
$config[0].Configuration.DirectoryServicesResolverConfiguration.UpdateDirectoryEntityChangesConfiguration.IsEnabled = $true
|
$config[0].Configuration.DirectoryServicesResolverConfiguration.UpdateDirectoryEntityChangesConfiguration.IsEnabled = $true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user