ClioSport.net

Register a free account today to become a member!
Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • When you purchase through links on our site, we may earn an affiliate commission. Read more here.

Powershell/Exchange Management Shell scripts



.Joe

ClioSport Club Member
  Mini Clubman
Good Afternoon There,

I'm having a slight issue setting up a script to produce user mailbox sizes, the command runs fine but for the life of me, i can't seem to get is running as a scheduled task/Powershell script.
the script is as follows:
get-mailbox –resultsize unlimited | get-mailboxstatistics | select-object DisplayName,TotalItemSize,StorageLimitStatus,LastLogonTime > mailboxsize.txt
Any help would be greatly appreciated,

Thanks in advance,

Joe
 
What error are you getting running as a script? By default the execution policy will not allow scripts to run. Check Get-ExecutionPolicy.
 

.Joe

ClioSport Club Member
  Mini Clubman
What error are you getting running as a script? By default the execution policy will not allow scripts to run. Check Get-ExecutionPolicy.
Good Afternoon Spoonie,
on our power shell the execution policy is currently set to RemoteSigned,

i can run the command manually, but its not going to be viable when the reporting goes live over multiple servers/

Cheers

Joe
 
  Cayman S Edition 1
Try it with privileged rights or putting the command string in a batch file.
 


Top