robjduk Posted September 12, 2019 Posted September 12, 2019 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
djm968 Posted September 13, 2019 Posted September 13, 2019 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 ] []
chaplic Posted September 24, 2019 Posted September 24, 2019 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.. 1
robjduk Posted September 25, 2019 Author Posted September 25, 2019 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now