plugins/vmware/Load.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$PreLoad = {
    if (-not (Get-Module 'VMware.VimAutomation.Core' -ListAvailable)) {
        throw 'vmware OhMyPsh plugin requires the vmware PowerCLI module be installed!'
    } else {
        Import-OMPModule 'VMware.VimAutomation.Core'
        Set-OMPTheme -NoProfileUpdate
    }
}
$PostLoad = {}
$Config = {}
$Shutdown = {
    Remove-OMPModule -Name 'VMware*' -PluginSafe
}
$Unload = {
   # Remove-Module Initialize-VMware_VimAutomation_Cis -Force
    Remove-OMPModule -Name 'VMware*' -PluginSafe
}