Module: check_mk
Branch: master
Commit: 9e1027985cf73d4bc9ef007d137657521ebbb199
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9e1027985cf73d…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Sep 11 17:28:45 2014 +0200
win_printers.ps1: fix syntax error with invalid non-Ascii dash
---
agents/windows/plugins/win_printers.ps1 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agents/windows/plugins/win_printers.ps1
b/agents/windows/plugins/win_printers.ps1
index f5489e7..2e8cd0f 100644
--- a/agents/windows/plugins/win_printers.ps1
+++ b/agents/windows/plugins/win_printers.ps1
@@ -17,7 +17,7 @@ $pswindow.buffersize = $newsize
###
-Write-Host NoNewLine "<<<win_printers>>>"
+Write-Host -NoNewLine "<<<win_printers>>>"
$Data_Set1 = Get-WMIObject Win32_PerfFormattedData_Spooler_PrintQueue | Select Name,
@{Expression={$_.jobs};Label="CurrentJobs"}
$Data_Set2 = Get-WmiObject win32_printer | select name, printerstatus,
detectederrorstate