From ab9cd8bed8f39d30ce84116232d2ef37676da871 Mon Sep 17 00:00:00 2001 From: ashish Date: Wed, 3 Oct 2018 22:10:42 +0530 Subject: [PATCH 1/4] Tool to Test Continuously server-port Reachability Powershell tool which can continuously keep connecting service port and report if port reachable or not --- TOOL-Test-NetConnection.ps1 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 TOOL-Test-NetConnection.ps1 diff --git a/TOOL-Test-NetConnection.ps1 b/TOOL-Test-NetConnection.ps1 new file mode 100644 index 00000000..ed6cb4fc --- /dev/null +++ b/TOOL-Test-NetConnection.ps1 @@ -0,0 +1,10 @@ + # I felt need for this tool when one of my service intermittently unavailable. While I was using telnet service was available for time that time. + # I needed a telnet which can continuously keep connecting service port and report if port reachable or not + + # Telnet is nice utility to check service availability on remote server-port combination. + # But, problem with telnet is it can't run on continuous like "ping -t" + # also, on Windows 10 telnet is not by default activated. thus, at time when we need telnet on Windows 10 first we need to install telnet feature to use. + # Here we have a small powershell magic to address both problems to continuous test port reachability + + + while ($true) {test-netconnection -port | Format-Table @{n='Timestamp';e={Get-DAte}},tcptestsucceeded} From 6b7bd706b1e4061a76b1756edc03ab59d6c1b732 Mon Sep 17 00:00:00 2001 From: ashish Date: Wed, 3 Oct 2018 16:44:54 +0000 Subject: [PATCH 2/4] Delete TOOL-Test-NetConnection.ps1 --- TOOL-Test-NetConnection.ps1 | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 TOOL-Test-NetConnection.ps1 diff --git a/TOOL-Test-NetConnection.ps1 b/TOOL-Test-NetConnection.ps1 deleted file mode 100644 index ed6cb4fc..00000000 --- a/TOOL-Test-NetConnection.ps1 +++ /dev/null @@ -1,10 +0,0 @@ - # I felt need for this tool when one of my service intermittently unavailable. While I was using telnet service was available for time that time. - # I needed a telnet which can continuously keep connecting service port and report if port reachable or not - - # Telnet is nice utility to check service availability on remote server-port combination. - # But, problem with telnet is it can't run on continuous like "ping -t" - # also, on Windows 10 telnet is not by default activated. thus, at time when we need telnet on Windows 10 first we need to install telnet feature to use. - # Here we have a small powershell magic to address both problems to continuous test port reachability - - - while ($true) {test-netconnection -port | Format-Table @{n='Timestamp';e={Get-DAte}},tcptestsucceeded} From f03c7a5fb185858c0b2f8e04412b65f48f285d2b Mon Sep 17 00:00:00 2001 From: ashish Date: Wed, 3 Oct 2018 22:23:52 +0530 Subject: [PATCH 3/4] Powershell tool to continuously check server-port reachability Powershell tool to continuously test server-port reachability. Can be considered as 'ping -t' equivalent to 'telnet' --- TOOL-Test-NetConnection/TOOL-TestNetConnection.ps1 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 TOOL-Test-NetConnection/TOOL-TestNetConnection.ps1 diff --git a/TOOL-Test-NetConnection/TOOL-TestNetConnection.ps1 b/TOOL-Test-NetConnection/TOOL-TestNetConnection.ps1 new file mode 100644 index 00000000..ff33818d --- /dev/null +++ b/TOOL-Test-NetConnection/TOOL-TestNetConnection.ps1 @@ -0,0 +1,10 @@ + # I felt need for this tool when one of my service intermittently unavailable. While I was testing telnet, service was available for time being. + # I needed a telnet which can continuously keep connecting service port and report if port reachable or not + + # Telnet is nice utility to check service availability on remote server-port combination. + # But, problem with telnet is it can't run on continuous like "ping -t" + # also, on Windows 10 telnet is not by default activated. thus, at time when we need telnet on Windows 10 first we need to install telnet feature to use. + # Here we have a small powershell magic to address both problems to continuous test port reachability + + + while ($true) {test-netconnection -port | Format-Table @{n='Timestamp';e={Get-DAte}},tcptestsucceeded} From b4fb1a589d037c2155d5ba42a8d6171871fbc7e9 Mon Sep 17 00:00:00 2001 From: ashish Date: Sat, 6 Oct 2018 10:20:23 +0530 Subject: [PATCH 4/4] powershell script to mail enable all public folders Mail enable all public folders at a path. --- TOOL-MailEnable-PublicFolder/TOOL-MailEnable-PublicFolder.ps1 | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 TOOL-MailEnable-PublicFolder/TOOL-MailEnable-PublicFolder.ps1 diff --git a/TOOL-MailEnable-PublicFolder/TOOL-MailEnable-PublicFolder.ps1 b/TOOL-MailEnable-PublicFolder/TOOL-MailEnable-PublicFolder.ps1 new file mode 100644 index 00000000..0d293b13 --- /dev/null +++ b/TOOL-MailEnable-PublicFolder/TOOL-MailEnable-PublicFolder.ps1 @@ -0,0 +1,3 @@ +# Mail enable all public folders inside a path. + +Get-PublicFolder -Identity '' -GetChildren |Enable-MailPublicFolder