Skip to content

Commit

Permalink
start winrm service
Browse files Browse the repository at this point in the history
  • Loading branch information
clr2of8 authored Sep 20, 2023
1 parent 757f2ce commit f4e12cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Public/Invoke-SetupAtomicRunner.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f4e12cd

Please sign in to comment.