Dell.Unity.psm1

# Copyright © 2020 Dell Inc. or its subsidiaries. All Rights Reserved.

Set-StrictMode -Version Latest

$binaryModuleFileName = 'Dell.Unity.PowerShell.dll'

$PSModule = $ExecutionContext.SessionState.Module
$PSModuleRoot = $PSModule.ModuleBase
$binaryModuleRoot = $PSModuleRoot
$binaryModulePath = Join-Path -Path $binaryModuleRoot -ChildPath $binaryModuleFileName
$binaryModule = Import-Module -Name $binaryModulePath -DisableNameChecking -PassThru

$PSModule.OnRemove = {
        Remove-Module -ModuleInfo $binaryModule
}


Write-Host ''
Write-Host ' PowerShell Module for Dell EMC Unity'
Write-Host ''
Write-Host ' Supported Unisphere Versions'
Write-Host ' Unisphere versions 5.0.6 and higher are supported in this release.' -ForegroundColor yellow
Write-Host ' Several cmdlets require Unisphere 5.1. Some input parameters may only be applicable to Unisphere 5.1.'
Write-Host ' Please check individual cmdlet for details.'
Write-Host ''
Write-Host ' To find out what commands are available: ' -NoNewline
Write-Host 'Get-Command -Module Dell.Unity' -ForegroundColor yellow
Write-Host ' To get help for a specific command: ' -NoNewLine
Write-Host 'Get-Help ' -NoNewLine -ForegroundColor yellow
Write-Host '[verb]' -NoNewLine -ForegroundColor green
Write-Host '-' -NoNewLine -ForegroundColor yellow
Write-Host '[noun]' -ForegroundColor green
Write-Host ' To get extended help for a specific command: ' -NoNewLine
Write-Host 'Get-Help ' -NoNewLine -ForegroundColor yellow
Write-Host '[verb]' -NoNewLine -ForegroundColor green
Write-Host '-' -NoNewLine -ForegroundColor yellow
Write-Host '[noun]' -NoNewLine -ForegroundColor green
Write-Host ' -full' -ForegroundColor yellow
Write-Host ''
Write-Host ' All commands require that you first connect to a Unity array and save the output:'
Write-Host ' $unity = Connect-UnityArray -HostName <address> <credential> [options]' -ForegroundColor yellow
Write-Host ''
Write-Host ' For more information about the module run: ' -NoNewline
Write-Host 'Get-Help about_Unity_Module' -ForegroundColor yellow
Write-Host ''