Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Commit c1a20f8

Browse files
committed
Testing guest credential handling
1 parent e208ab2 commit c1a20f8

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.build.ps1

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -151,17 +151,17 @@ task MoveLiveMountNetwork {
151151
task MoveLiveMountNetworkAddress {
152152
$i = 0
153153
foreach ($Mount in $MountArray) {
154-
# Keeping the guest credential value local since it may only apply to the individual virtual machine in some cases
155-
# Try per vm guest credentials first
156-
if ( Get-Variable -Name "$Config.virtualMachines[$i].guestCred" -ErrorAction SilentlyContinue ) {
157-
Write-Verbose -Message "Importing Credential file: $($IdentityPath + $($Config.virtualMachines[$i].guestCred))"
158-
$GuestCredential = Import-Clixml -Path ($IdentityPath + $($Config.virtualMachines[$i].guestCred))
159-
}
160-
# Use global guest credentials
161-
else {
162-
Write-Verbose -Message "Importing Credential file: $($IdentityPath + "guestCred.XML")"
163-
$GuestCredential = Import-Clixml -Path ($IdentityPath + "guestCred.XML")
164-
}
154+
# # Keeping the guest credential value local since it may only apply to the individual virtual machine in some cases
155+
# # Try per vm guest credentials first
156+
# if ( Get-Variable -Name "$Config.virtualMachines[$i].guestCred" -ErrorAction SilentlyContinue ) {
157+
# Write-Verbose -Message "Importing Credential file: $($IdentityPath + $($Config.virtualMachines[$i].guestCred))"
158+
# $GuestCredential = Import-Clixml -Path ($IdentityPath + $($Config.virtualMachines[$i].guestCred))
159+
# }
160+
# # Use global guest credentials
161+
# else {
162+
# Write-Verbose -Message "Importing Credential file: $($IdentityPath + "guestCred.XML")"
163+
# $GuestCredential = Import-Clixml -Path ($IdentityPath + "guestCred.XML")
164+
# }
165165
# Find the first network interface's MAC
166166
$TestInterfaceMAC = ((Get-NetworkAdapter -VM $Config.virtualMachines[$i].mountName | Select-Object -first 1).MacAddress).ToLower() -replace ":","-"
167167
$splat = @{
@@ -232,8 +232,8 @@ ConnectVMware
232232
task 3_LiveMount `
233233
CreateLiveMount,
234234
ValidateLiveMount,
235-
ValidateLiveMountTools
236-
#ValidateRemoteScriptExecution
235+
ValidateLiveMountTools,
236+
ValidateRemoteScriptExecution
237237

238238
task 4_LiveMountNetwork `
239239
MoveLiveMountNetworkAddress,

0 commit comments

Comments
 (0)