зеркало из https://github.com/microsoft/MSLab.git
few fixes
This commit is contained in:
Родитель
6dbaa03643
Коммит
ad5ba67b8a
|
@ -1,4 +1,4 @@
|
||||||
$LabConfig=@{AllowedVLANs="1-10,711-719" ; DomainAdminName='LabAdmin'; AdminPassword='LS1setup!' ; DCEdition='4'; Internet=$true; TelemetryLevel='Full' ; TelemetryNickname='' ; AdditionalNetworksConfig=@(); VMs=@(); CustomDnsForwarders="10.8.8.8","10.7.7.7"}
|
$LabConfig=@{AllowedVLANs="1-10,711-719" ; DomainAdminName='LabAdmin'; AdminPassword='LS1setup!' ; DCEdition='4'; Internet=$true; TelemetryLevel='Full' ; TelemetryNickname='' ; AdditionalNetworksConfig=@(); VMs=@()}
|
||||||
|
|
||||||
#Azure Stack HCI 22H2
|
#Azure Stack HCI 22H2
|
||||||
#labconfig will not domain join VMs, will add "Tools disk" and will also execute powershell command to make this tools disk online.
|
#labconfig will not domain join VMs, will add "Tools disk" and will also execute powershell command to make this tools disk online.
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
#region Deploy - run from ASNode1!
|
#region Deploy - run from ASNode1!
|
||||||
#make D drives online
|
#make D drives online
|
||||||
$Servers="ASNode2","ASNode3","ASNode4"
|
$Servers="ASNode1","ASNode2","ASNode3","ASNode4"
|
||||||
#add $Servers into trustedhosts
|
#add $Servers into trustedhosts
|
||||||
Set-Item WSMan:\localhost\Client\TrustedHosts -Value $($Servers -join ',') -Force
|
Set-Item WSMan:\localhost\Client\TrustedHosts -Value $($Servers -join ',') -Force
|
||||||
#invoke command
|
#invoke command
|
||||||
|
@ -284,9 +284,9 @@ $Content | Out-File -FilePath d:\config.json
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Validate deployment - run from management VM!
|
#region Validate deployment - run from management VM!
|
||||||
$StagingNode="ASNode1"
|
$SeedNode="ASNode1"
|
||||||
|
|
||||||
Invoke-Command -ComputerName $StagingNode -ScriptBlock {
|
Invoke-Command -ComputerName $SeedNode -ScriptBlock {
|
||||||
([xml](Get-Content C:\ecestore\efb61d70-47ed-8f44-5d63-bed6adc0fb0f\086a22e3-ef1a-7b3a-dc9d-f407953b0f84)) | Select-Xml -XPath "//Action/Steps/Step" | ForEach-Object { $_.Node } | Select-Object FullStepIndex, Status, Name, StartTimeUtc, EndTimeUtc, @{Name="Durration";Expression={new-timespan -Start $_.StartTimeUtc -End $_.EndTimeUtc } } | ft -AutoSize
|
([xml](Get-Content C:\ecestore\efb61d70-47ed-8f44-5d63-bed6adc0fb0f\086a22e3-ef1a-7b3a-dc9d-f407953b0f84)) | Select-Xml -XPath "//Action/Steps/Step" | ForEach-Object { $_.Node } | Select-Object FullStepIndex, Status, Name, StartTimeUtc, EndTimeUtc, @{Name="Durration";Expression={new-timespan -Start $_.StartTimeUtc -End $_.EndTimeUtc } } | ft -AutoSize
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
Загрузка…
Ссылка в новой задаче