How difficult would it be to run some Exchange Powershell commands (not scripts) to retrieve some data regarding a users mailbox. Looking at retrieving the current mailbox size, the storage limit quotas, Item Counts, Folder Counts, which data the mailbox resides.
Is that even possible? We are running Exchange Server 2010 OnPrem but our Powershell version is 2.0. There was an issue upgrading to 3.0 but I cannot remember what it was offhand.
My current code is using the below....
Imports System.DirectoryServices
Imports System.IO
Imports System.DirectoryServices.AccountManagement
Imports System.Text
Using Root As New DirectoryEntry 'Establish connection to current loged on users Active Directory
Using Searcher As New DirectorySearcher(Root) 'Start at the top
'
'
Searcher.SearchScope = SearchScope.Subtree 'Start at the top and keep drilling down
The app prompts for a UserId and stores it as USER