From 23b36d60a3cad40aae6922f8d15ac458bee96daa Mon Sep 17 00:00:00 2001 From: yomurakami Date: Thu, 20 Jul 2017 01:45:05 +0900 Subject: [PATCH] load an assembly that is not loaed by default --- Modules/Backup-VCSA/Backup-VCSA.psm1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/Backup-VCSA/Backup-VCSA.psm1 b/Modules/Backup-VCSA/Backup-VCSA.psm1 index f5731c0..7eab203 100644 --- a/Modules/Backup-VCSA/Backup-VCSA.psm1 +++ b/Modules/Backup-VCSA/Backup-VCSA.psm1 @@ -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 {