What are the min perms needed for WMI mailbox size script against Exchange 2003 please?
Hello,
I need to run a script like the following to get a list of mailboxes and their sizes on my Exchange 2003 servers using WMI. We have 4 servers and about 4000 users.
strServerName = "mailserver01"
strE2K3WmiQuery = "winmgmts://" & strServerName & "/root/MicrosoftExchangeV2"
set lstMailboxes = GetObject(strE2K3WmiQuery).InstancesOf("Exchange_Mailbox")
for each mailbox in lstMailboxes
strReport=""
strReport=mailbox.MailboxDisplayName & "," & mailbox.Size & "," & mailbox.TotalItems
wscript.echo strReport
next
Since I'm paranoid - and a contract worker - I wanted to create a dedicated user with the least permissions needed to run the script. However, it seems that although the user doesn't need any Exchange administrator permissions, it needs local Administrator
permissions on each Exchange server. Otherwise I get a permission denied on the GetObject (800A0046).
Is that correct? Also, can a script like this do any damage?
Thanks,
- Alan.
December 6th, 2010 8:52am
Hi Alan,
Seems like Exchange Development forum is a better place to seek your solution:
http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/threads
Frank Wang
TechNet Subscriber Support
in forum
If you have any feedback on our support, please contact
tngfb@microsoft.com
Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
December 7th, 2010 2:22am