load an assembly that is not loaed by default

This commit is contained in:
yomurakami
2017-07-20 01:45:05 +09:00
parent 0abddc0c86
commit 23b36d60a3

View File

@@ -50,6 +50,7 @@
)
Begin {
if (!($global:DefaultCisServers)){
Add-Type -Assembly System.Windows.Forms
[System.Windows.Forms.MessageBox]::Show("It appears you have not created a connection to the CisServer. You will now be prompted to enter your vCenter credentials to continue" , "Connect to CisServer") | out-null
$Connection = Connect-CisServer $global:DefaultVIServer
} else {