Invoking Exchange

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
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.
This topic is 6 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
nikedia
Posts: 5
Last visit: Thu Aug 17, 2023 7:08 am

Invoking Exchange

Post by nikedia »

Hi All,

I have a quick question, I am trying to create an app to create a new Distribution or Security group depending on the option selected. Could you please advise how to import the module for Exchange?

Regards
Nikedia
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Invoking Exchange

Post by jvierra »

There are no Exchange modules to import. We just connect to Exchange.

https://technet.microsoft.com/en-us/lib ... .160).aspx
  1. $UserCredential = Get-Credential
  2. $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://<FQDN of Exchange 2013 Client Access server>/PowerShell/ -Authentication Kerberos -Credential $UserCredential
  3. Import-PSSession $Session
This topic is 6 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked