Script för att behålla befintlig ägare och lägga till en ny på distributionsgrupper.
get-distributiongroup |
ForEach-Object{
#set the group
$Grp=Get-DistributionGroup $_.Name
#the list of managers
$Lst= $Grp.ManagedBy
#add the new person Use GroupName!
$New= 'New Owner'
$Lst+=$New
#output the list (viewing pleasure.)
$Lst
#set the new owner
Set-DistributionGroup $_.Identity -ManagedBy $Lst -BypassSecurityGroupManagerCheck
}
Monthly Archives: January 2015
Journalmeddelanden i kö på Exchange
Felmeddelande:
Log Name: Application
Source: MSExchangeTransport
Date:
Event ID: 9213
Task Category: Categorizer
Level: Error
Keywords: Classic
User: N/A
Computer:
Description:
A non-expirable message with the Internal Message ID xxxxx could not be categorized. This message may be a journal report or other system message. The message will remain in the queue until administrative action is taken to resolve the error. Other messages may also have encountered this error. To further diagnose the error, use the Queue Viewer or the Exchange Mail Flow Troubleshooter.
Kontrollerar man kön så ligger det ett meddelande med fel:
“The failure was replaced by a retry response because the message was marked for retry if rejected.”
Åtgärd ta bort meddelandet ur kön med:
Get-Message -Server -Filter {FromAddress -eq "" -and Status -eq 'Retry'} | Remove-Message
Schedule task error 2147746321 EventID 202
När man lägger upp ett schedule task för att skicka mail så kan man få Event ID 202 med error 2147746321. Detta beror oftast på 2 saker:
E-postadressen för kontot som kör jobbet stämmer inte överens med den e-postadress som är satt som send adress.
Servern som tar emot mailet kräver inte autentisering.