Merge pull request #461 from microsoft/dev

minor fixes
This commit is contained in:
Jaromir Kaspar 2021-09-27 17:58:06 +02:00 коммит произвёл GitHub
Родитель 5155bccd24 bf9311794f
Коммит 748372155a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -67,7 +67,8 @@
Invoke-Command -ComputerName $Nodes[0] -Credential $Credentials -Authentication Credssp -ScriptBlock {
Install-Fleet #as vmfleet has issues with Install-Fleet -ClusterName https://github.com/microsoft/diskspd/issues/157
#It's probably more convenient to run this command on cluster as all VHD copying will happen on cluster itself.
New-Fleet -BaseVHD "c:\ClusterStorage\Collect\$using:VHDName" -VMs $using:NumberOfVMs -AdminPass P@ssw0rd -Admin Administrator -ConnectUser corp\LabAdmin -ConnectPass LS1setup!
#if you will run Measure-FleetCoreWorkload, creating VMs is not necessary
#New-Fleet -BaseVHD "c:\ClusterStorage\Collect\$using:VHDName" -VMs $using:NumberOfVMs -AdminPass P@ssw0rd -Admin Administrator -ConnectUser corp\LabAdmin -ConnectPass LS1setup!
}
# Disable CredSSP

Просмотреть файл

@ -43,13 +43,16 @@ If (!( $isAdmin )) {
WriteInfoHighlighted "Please select VHD (Windows Server Core) created using CreateParentDisk.ps1 located in ParentDisks folder."
[reflection.assembly]::loadwithpartialname("System.Windows.Forms")
$openFile = New-Object System.Windows.Forms.OpenFileDialog -Property @{
Title="Please select VHD created by convert-windowsimage. Click cancel if you want to create it"
Title="Please select VHD (Windows Server Core) created using CreateParentDisk.ps1 located in ParentDisks folder."
}
$openFile.Filter = "vhdx files (*.vhdx)|*.vhdx|All files (*.*)|*.*"
If($openFile.ShowDialog() -eq "OK"){
WriteInfo "File $($openfile.FileName) selected"
}
$VHDPath=$openfile.FileName
if (-not ($VHDPath)){
WriteErrorAndExit "VHD not selected. Exiting ."
}
#ask for Password that will be configured inside VHD
WriteInfoHighlighted "Please provide password that will be injected as administrator password into VHD"
$AdminPassword=Read-Host