From e1335571cc3b35a427cbc3716e0d24bf0a2b8a51 Mon Sep 17 00:00:00 2001 From: Kurt Gerber Date: Wed, 10 May 2017 11:22:48 +0200 Subject: [PATCH] Update SPH-Exchange-MailboxSize.ps1 In my case the script failed because $remote_host was an ipv6 address. With the -replace it works even for those. --- agents/plugins/SPH-Exchange-MailboxSize.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agents/plugins/SPH-Exchange-MailboxSize.ps1 b/agents/plugins/SPH-Exchange-MailboxSize.ps1 index 40cf4ce..64f7601 100644 --- a/agents/plugins/SPH-Exchange-MailboxSize.ps1 +++ b/agents/plugins/SPH-Exchange-MailboxSize.ps1 @@ -20,9 +20,9 @@ add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 #Export-CSV C:\CMK-MailboxReport.csv -NTI} # filename for timestamp -$remote_host = $env:REMOTE_HOST +$remote_host_tmp = $env:REMOTE_HOST $agent_dir = $env:MK_CONFDIR - +$remote_host = $remote_host_tmp -replace ":","." $timestamp = $agent_dir + "\timestamp."+ $remote_host # execute agent only every $delay seconds - 24 hours