Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Set Extented Attributes for users

$
0
0

Hello Everyone,

I'd like to get the list of user's mailboxes which are almost full and set ExtensionCustomAttribute5 to the value:

$Users = Get-MailboxDatabase | Get-MailboxStatistics | Where-Object {$_.StorageLimitStatus -match 'IssueWarning|ProhibitSend|MailboxDisabled'} | select Displayname

 ForEach($User in $Users)
  {
    $UserName = $User.Name
    Set-Mailbox -ID $_.users -ExtensionCustomAttribute5 shortcut
 }

Seems above is not working and giving me the error.

Where might be the problem?

Thanks!


KeJiaLi


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>