From 226757ec252cd2fc858c2f3a47cedac6bd4cce25 Mon Sep 17 00:00:00 2001 From: James Stringer <38541878+jamesstringerparsec@users.noreply.github.com> Date: Tue, 12 Oct 2021 03:57:09 -0700 Subject: [PATCH] Setup Parsec to install at boot --- CopyFilesToVM.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CopyFilesToVM.ps1 b/CopyFilesToVM.ps1 index 470c6fc..b59d345 100644 --- a/CopyFilesToVM.ps1 +++ b/CopyFilesToVM.ps1 @@ -28,7 +28,7 @@ param( add-gpo-modifications -DriveLetter $DriveLetter if((Test-Path -Path $DriveLetter\Windows\system32\GroupPolicy\Machine\Scripts\Startup) -eq $true) {} Else {New-Item -Path $DriveLetter\Windows\system32\GroupPolicy\Machine\Scripts\Startup -ItemType directory | Out-Null} if((Test-Path -Path $DriveLetter\Windows\system32\GroupPolicy\Machine\Scripts\Shutdown) -eq $true) {} Else {New-Item -Path $DriveLetter\Windows\system32\GroupPolicy\Machine\Scripts\Shutdown -ItemType directory | Out-Null} - if((Test-Path -Path $DriveLetter\ProgramData\Easy-GPU-P) -eq $true) {} Else {New-Item -Path $DriveLetter\Windows\system32\GroupPolicy\Machine\Scripts\Easy-GPU-P -ItemType directory | Out-Null} + if((Test-Path -Path $DriveLetter\ProgramData\Easy-GPU-P) -eq $true) {} Else {New-Item -Path $DriveLetter\ProgramData\Easy-GPU-P -ItemType directory | Out-Null} Move-Item -Path $psscriptroot\psscripts.ini -Destination $DriveLetter\Windows\system32\GroupPolicy\Machine\Scripts Move-Item -Path $psscriptroot\Install.ps1 -Destination $DriveLetter\Windows\system32\GroupPolicy\Machine\Scripts\Startup Move-Item -Path $psscriptroot\parsecpublic.cer -Destination $DriveLetter\ProgramData\Easy-GPU-P @@ -2388,6 +2388,9 @@ You can use the fields below to configure the VHD or VHDX that you want to creat Add-VMGpuPartitionAdapterFiles -GPUName $GPUName -DriveLetter $windowsDrive } + Write-W2VInfo "Setting up Parsec to install at boot" + Setup-ParsecInstall -DriveLetter $WindowsDrive + if ($DiskLayout -eq "UEFI") { $systemPartition | Remove-PartitionAccessPath -AccessPath $systemPartition.AccessPaths[0]