Forum Discussion
Darren Rose
Dec 09, 2018Brass Contributor
Using MicrosoftGraph API in C# (or VB) to access mailbox usage information
Hi Currently I use a powershell script such as below to get sizes of mailboxes in my organization $UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Excha...
Devagnanam Jayaseelan (DEVA)
Microsoft
Jan 04, 2019I see that above you're using Exchange Powershell, then why cant you automate it with .Net (using C#.Net). Please refer: https://blogs.msdn.microsoft.com/wushuai/2016/09/18/access-exchange-online-by-powershell-in-c/
Hope this helps.
Darren Rose
Jan 04, 2019Brass Contributor
That is what I have done in the end - used PowerShell from VB.NET using System.Management.Automation from NuGet and it is working fine.
Originally I thought Graph API was the way forward and a better way to do things, but after lack of responses on all forums, lack of documentation etc I decided to stick with what I know
Thanks
- Devagnanam Jayaseelan (DEVA)Jan 04, 2019
Microsoft
Cool :)