Jump to content

Recommended Posts

Posted

Hi,

Does anyone know how to amend a description for a mail contact in Powershell? You would think it's -description but there does not seem to be any way to change it using Powershell. I can't be the first person to want to do this but can not find any mention of it online.

 

Spooky.

 

All help appreciated.

 

Thanks

Posted

I cannot see any description field, not sure there is one TBH

 

https://docs.microsoft.com/en-us/powershell/module/exchange/users-and-groups/set-mailcontact?view=exchange-ps

 

 

Set-MailContact

[-Identity]

[-AcceptMessagesOnlyFrom ]

[-AcceptMessagesOnlyFromDLMembers ]

[-AcceptMessagesOnlyFromSendersOrMembers ]

[-Alias ]

[-ArbitrationMailbox ]

[-BypassModerationFromSendersOrMembers ]

[-Confirm]

[-CreateDTMFMap <$true | $false>]

[-CustomAttribute1 ]

[-CustomAttribute10 ]

[-CustomAttribute11 ]

[-CustomAttribute12 ]

[-CustomAttribute13 ]

[-CustomAttribute14 ]

[-CustomAttribute15 ]

[-CustomAttribute2 ]

[-CustomAttribute3 ]

[-CustomAttribute4 ]

[-CustomAttribute5 ]

[-CustomAttribute6 ]

[-CustomAttribute7 ]

[-CustomAttribute8 ]

[-CustomAttribute9 ]

[-DisplayName ]

[-DomainController ]

[-EmailAddresses ]

[-EmailAddressPolicyEnabled <$true | $false>]

[-ExtensionCustomAttribute1 ]

[-ExtensionCustomAttribute2 ]

[-ExtensionCustomAttribute3 ]

[-ExtensionCustomAttribute4 ]

[-ExtensionCustomAttribute5 ]

[-ExternalEmailAddress ]

[-ForceUpgrade]

[-GrantSendOnBehalfTo ]

[-HiddenFromAddressListsEnabled <$true | $false>]

[-IgnoreDefaultScope]

[-MacAttachmentFormat ]

[-MailTip ]

[-MailTipTranslations ]

[-MaxReceiveSize ]

[-MaxRecipientPerMessage ]

[-MaxSendSize ]

[-MessageBodyFormat ]

[-MessageFormat ]

[-ModeratedBy ]

[-ModerationEnabled <$true | $false>]

[-Name ]

[-PrimarySmtpAddress ]

[-RejectMessagesFrom ]

[-RejectMessagesFromDLMembers ]

[-RejectMessagesFromSendersOrMembers ]

[-RemovePicture]

[-RemoveSpokenName]

[-RequireSenderAuthenticationEnabled <$true | $false>]

[-SecondaryAddress ]

[-SecondaryDialPlan ]

[-SendModerationNotifications ]

[-SimpleDisplayName ]

[-UMDtmfMap ]

[-UseMapiRichTextFormat ]

[-UsePreferMessageFormat <$true | $false>]

[-WhatIf]

[-WindowsEmailAddress ]

[]

  • 2 weeks later...
Posted

not in front of a box to test and I assume you mean on prem ad but something like

 

get-adobject your-contact | set-adobject -add @{description="this is a description"}

 

 

may need to -clear the object first..

 

  • Thanks 1
Posted

Thank you for that. Didn't exactly work however it put me on the right path. Had to Set-ADObject -Identity ***full distinguishedName*** -Description 'this is a description'

 

Think my problem was I was looking at it as a mail object rather than an AD one.

 

Thanks again.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...