From d58496416f10a13168580d07b9c440d7fb0e07e6 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Thu, 8 Mar 2018 10:17:10 +0100 Subject: [PATCH] fix syntax in cmbh to work with platyPS --- src/Connection/Connect-To.ps1 | 18 ++---------------- src/Connection/Disconnect-From.ps1 | 11 ++--------- 2 files changed, 4 insertions(+), 25 deletions(-) diff --git a/src/Connection/Connect-To.ps1 b/src/Connection/Connect-To.ps1 index 0169d41..31f405d 100644 --- a/src/Connection/Connect-To.ps1 +++ b/src/Connection/Connect-To.ps1 @@ -14,16 +14,8 @@ function Connect-To { same hostname. .PARAMETER Type - Specify the host type of the target. Currently implemented targets are: - - - CiscoUcs Establish a connection to a Cisco UCS fabric interconnect. - - FTP Establish a connection to a FTP host. - - NetAppFAS Establish a connection to a NetApp Clustered ONTAP filer. - - VMware Establish a connection to a VMware vCenter or ESXi host. - - CisServer Establish a connection to a Vmware CisServer. - - ExchangeHTTP Start a new remote session to the given Exchange server via insecure http. - - Exchange HTTPS Start a new remote session to the given exchange server with the secure https endpoint. - - SCP Establish a SCP connection. + Specify the host type of the target. Currently implemented targets are: Possible connection values are: + CiscoUcs, FTP, NetAppFAS, VMware, CisServer, ExchangeHTTP, ExchangeHTTPS, SCP. .PARAMETER Credentials Use this parameter to bypass the stored credentials. Without this parameter Connect-To tries to read the @@ -64,12 +56,6 @@ function Connect-To { .EXAMPLE Connect-To -RemoteHost "exchange01.myside.local" -Type ExchangeHTTPS - .EXAMPLE - $MyCreds = Get-Credential - Connect-To -RemoteHost "vcr01.myside.local" -Type VMware -Credentials $MyCreds - Get-VM -Name "*vlm*" | Select-Object -Property Name - Disconnect-From -RemoteHost "vcr01.myside.local" -Type VMware - .NOTES File Name : Connect-To.ps1 Author : Marco Blessing - marco.blessing@googlemail.com diff --git a/src/Connection/Disconnect-From.ps1 b/src/Connection/Disconnect-From.ps1 index 3da3fe4..1ccaa70 100644 --- a/src/Connection/Disconnect-From.ps1 +++ b/src/Connection/Disconnect-From.ps1 @@ -14,15 +14,8 @@ function Disconnect-From { same hostname. .PARAMETER Type - Specify the host type of the target. Currently implemented targets are: - - CiscoUcs Terminates the connection from a Cisco UCS Fabric Interconnect. - - FTP Terminates the connection from a FTP host. - - NetAppFAS Terminates the connection from a NetApp Clustered ONTAP filer. - - VMware Terminates the connection from a VMware vCenter or ESXi host. - - CisServer Terminates the connection from a Vmware CisServer. - - ExchangeHTTP Remove the existing remote session to the given Exchange server - - ExchangeHTTPS Remove the existing remote session to the given Exchange server - - SCP Terminates the existing SCP session. + Specify the host type of the target. Currently implemented targets are: CiscoUcs, FTP, NetAppFAS, VMware, + CisServer, ExchangeHTTP, ExchangeHTTPS, SCP. .PARAMETER Force Force the disconnect, even if the disconnect would fail.