I am trying to create a simple script that will show me how many new email messages have been added to the Sent Items folder. I am new to powershell so I ave basically put together a script from browsing the web, however its not working as expected.
Here is the script I have so far
Get-MailboxFolderStatistics info -folderscope SentItems (Get-Date).AddDays(-1).ToString("ddMMyyy") | select name,itemsinfolder
I know this does not work but was wondering if anyone is able to add/subtract what I have done wrong.
or point me to a website that has a decent script