Skip to content

Instantly share code, notes, and snippets.

@morgansimonsen
Created December 19, 2013 14:51
Show Gist options
  • Save morgansimonsen/8040285 to your computer and use it in GitHub Desktop.
Save morgansimonsen/8040285 to your computer and use it in GitHub Desktop.
Remove Exchange attributes
get-qadobject -SearchRoot <canonical name of domain> ´
-ldapFilter '(&(objectClass=group)(mailnickname=*))' ´
-service <DC FQDN> -SizeLimit 0 | Set-QADObject -ObjectAttributes ´
@{adminDisplayName='';´
altRecipient='';´
authOrig='';´
autoReplyMessage='';´
deletedItemFlags='';´
delivContLength='';´
deliverAndRedirect='';´
displayNamePrintable='';´
dLMemDefault='';´
dLMemRejectPerms='';´
dLMemSubmitPerms='';´
extensionAttribute1='';´
extensionAttribute10='';´
extensionAttribute11='';´
extensionAttribute12='';´
extensionAttribute13='';´
extensionAttribute14='';´
extensionAttribute15='';´
extensionAttribute2='';´
extensionAttribute3='';´
extensionAttribute4='';´
extensionAttribute5='';´
extensionAttribute6='';´
extensionAttribute7='';´
extensionAttribute8='';´
extensionAttribute9='';´
folderPathname='';´
garbageCollPeriod='';´
homeMDB='';´
homeMTA='';´
internetEncoding='';´
legacyExchangeDN='';´
mail='';
mailNickname='';´
mAPIRecipient='';´
mDBOverHardQuotaLimit='';´
mDBOverQuotaLimit='';´
mDBStorageQuota='';´
mDBUseDefaults='';´
msExchADCGlobalNames='';´
msExchControllingZone='';´
msExchExpansionServerName='';´
msExchFBURL='';´
msExchHideFromAddressLists='';´
msExchHomeServerName='';´
msExchMailboxGuid='';´
msExchMailboxSecurityDescriptor='';´
msExchPoliciesExcluded='';´
msExchPoliciesIncluded='';´
msExchRecipLimit='';´
msExchResourceGUID='';´
protocolSettings='';´
proxyAddresses='';´
publicDelegates='';´
securityProtocol='';´
showInAddressBook='';´
submissionContLength='';´
targetAddress='';´
textEncodedORAddress='';´
unauthOrig=''} ´
-service <DC FQDN>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment