From f4e12cdfd9aa0880a597cedc336eef1af32ec31d Mon Sep 17 00:00:00 2001 From: Carrie Roberts Date: Wed, 20 Sep 2023 10:11:26 -0600 Subject: [PATCH] start winrm service --- Public/Invoke-SetupAtomicRunner.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Public/Invoke-SetupAtomicRunner.ps1 b/Public/Invoke-SetupAtomicRunner.ps1 index 57f4f1c..b0154a4 100755 --- a/Public/Invoke-SetupAtomicRunner.ps1 +++ b/Public/Invoke-SetupAtomicRunner.ps1 @@ -22,6 +22,7 @@ function Invoke-SetupAtomicRunner { New-Item -ItemType Directory $artConfig.runnerFolder -ErrorAction Ignore if ($artConfig.gmsaAccount) { + Start-Service WinRM $path = Join-Path $env:ProgramFiles "WindowsPowerShell\Modules\RenameRunner\RoleCapabilities" New-Item -ItemType Directory $path -ErrorAction Ignore New-PSSessionConfigurationFile -SessionType RestrictedRemoteServer -GroupManagedServiceAccount $artConfig.gmsaAccount -RoleDefinitions @{ "$($artConfig.user)" = @{ 'RoleCapabilities' = 'RenameRunner' } } -path "$env:Temp\RenameRunner.pssc"