From e55aef968936144f3f0ca899ddb3439b90e168e4 Mon Sep 17 00:00:00 2001 From: Carrie Roberts Date: Wed, 20 Sep 2023 10:14:32 -0600 Subject: [PATCH] start winrm service (#157) --- 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"