Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
Don't write-host in a remoted session
Browse files Browse the repository at this point in the history
It's not supported. Fixes:
#4
  • Loading branch information
jabbera committed Aug 19, 2016
1 parent 0be355e commit 15a41fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Catch

$nonStoppedServices = $presentServicesArray | Where-Object { $_.Status -ne "Stopped" } | % { $_.ServiceName }

$nonStoppedServices | % { Write-Host "Killing service after not stopping within timeout: $_" }
$nonStoppedServices | % { Write-Verbose "Killing service after not stopping within timeout: $_" }

(get-wmiobject win32_Service | Where-Object { $nonStoppedServices -contains $_.Name }).ProcessID | % { Stop-Process -Force $_ }
}
Expand Down
2 changes: 1 addition & 1 deletion config.bootstrap.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"tokens":{
"Major": 1,
"Patch": 19
"Patch": 0
},
"prefix" : "{{",
"suffix" : "}}"
Expand Down

0 comments on commit 15a41fd

Please sign in to comment.