PrimalForms and Exchange 2007
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- wayne_Avery
- Posts: 30
- Last visit: Tue Feb 01, 2022 2:25 pm
PrimalForms and Exchange 2007
Hi, I am new to Powershell and come from a VBScript background. To run a powershell Exchange 2007 command in VBS I would load the Exchange Console file by running from the command prompt powershell.exe -PSConsoleFile "C:Program FilesMicrosoftExchange Serverbinexshell.psc1" followed by any Exchange command required. Using PrimalForms 2009, Does anyone know how to load this console when a stand alone PrimalForms application loads so I can ?
- wayne_Avery
- Posts: 30
- Last visit: Tue Feb 01, 2022 2:25 pm
PrimalForms and Exchange 2007
Hi, I am new to Powershell and come from a VBScript background. To run a powershell Exchange 2007 command in VBS I would load the Exchange Console file by running from the command prompt powershell.exe -PSConsoleFile "C:Program FilesMicrosoftExchange Serverbinexshell.psc1" followed by any Exchange command required. Using PrimalForms 2009, Does anyone know how to load this console when a stand alone PrimalForms application loads so I can ?
- wayne_Avery
- Posts: 30
- Last visit: Tue Feb 01, 2022 2:25 pm
PrimalForms and Exchange 2007
I found it. Solution below is added to the OnApplicationLoad function
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin