Samples/ImportCallhomeDetails/lxco/connectToLXCO.ps1
# ------------------------------------------------------------------ # Lenovo Copyright # # (C) Copyright Lenovo 2024 - present. # # LIMITED AND RESTRICTED RIGHTS NOTICE: # If data or software is delivered pursuant a General Services # Administration (GSA) contract, use, reproduction, or disclosure # is subject to restrictions set forth in Contract No. GS-35F-05925. # ------------------------------------------------------------------ Import-Module LXCOPSTool function ConnectToLXCO() { param ( [Parameter(Mandatory = $true)] [string] $LxcoIp ) $cred = Get-Credential -Message "Please enter the credential for $LxcoIp" return (Connect-LXCO -HostUri $LxcoIp -Credential $cred -SkipCertificateCheck) } function DisconnectFromLXCO() { param ( [Parameter(Mandatory = $true)] $Connection ) Disconnect-LXCO -Connection $Connection } # EOF |