Jump to content

IMAP als default deaktiveren


Der letzte Beitrag zu diesem Thema ist mehr als 180 Tage alt. Bitte erstelle einen neuen Beitrag zu Deiner Anfrage!

Empfohlene Beiträge

so Ergebniss:

 

Summary: 1 item(s). 1 succeeded, 0 failed.

Elapsed time: 00:00:16

 

 

mbtest3

Completed

 

Warning:

The cmdlet extension agent with the index 5 has thrown an exception in OnComplete(). The exception is: Microsoft.Exchange.Provisioning.ProvisioningException: ScriptingAgent: Exception thrown while invoking scriptlet for OnComplete API: Exception calling "ExecuteNonQuery" with "0" argument(s): "ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.". ---> System.Management.Automation.MethodInvocationException: Exception calling "ExecuteNonQuery" with "0" argument(s): "ExecuteNonQuery requires an open and available Connection. The connection's current state is closed." ---> System.InvalidOperationException: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.

at System.Data.SqlClient.SqlConnection.GetOpenConnection(String method)

at System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, SqlCommand command)

at System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async)

at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)

at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()

at ExecuteNonQuery(Object , Object[] )

at System.Management.Automation.DotNetAdapter.AuxiliaryMethodInvoke(Object target, Object[] arguments, MethodInformation methodInformation, Object[] originalArguments)

--- End of inner exception stack trace ---

at System.Management.Automation.DotNetAdapter.AuxiliaryMethodInvoke(Object target, Object[] arguments, MethodInformation methodInformation, Object[] originalArguments)

at System.Management.Automation.ParserOps.CallMethod(Token token, Object target, String methodName, Object[] paramArray, Boolean callStatic, Object valueToSet)

at System.Management.Automation.MethodCallNode.InvokeMethod(Object target, Object[] arguments, Object value)

at System.Management.Automation.MethodCallNode.Execute(Array input, Pipe outputPipe, ExecutionContext context)

at System.Management.Automation.ParseTreeNode.Execute(Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context)

at System.Management.Automation.StatementListNode.ExecuteStatement(ParseTreeNode statement, Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context)

--- End of inner exception stack trace ---

at Microsoft.Exchange.ProvisioningAgent.ScriptingAgentHandler.OnComplete(Boolean succeeded, Exception e)

at Microsoft.Exchange.Provisioning.ProvisioningLayer.OnComplete(Task task, Boolean succeeded, Exception exception)

 

Exchange Management Shell command completed:

New-Mailbox -Name 'mbtest3' -Alias 'mbtest3' -UserPrincipalName 'mbtest3@ea.intern' -SamAccountName 'mbtest3' -FirstName 'mbtest3' -Initials '' -LastName '' -Password 'System.Security.SecureString' -ResetPasswordOnNextLogon $false

 

Elapsed Time: 00:00:16

 

=> IMAP enabled...

Link zu diesem Kommentar

an dieser Stelle erneut meine Frage:

 

 

soll der "alte Inhalt" der ScriptingAgentConfig.xml erhalten bleiben, oder kommt nur der IMAP text rein?

 

"

 

 

<?xml version="1.0" encoding="utf-8" ?>

< Configuration version="1.0">

<Feature Name="MailboxProvisioning" Cmdlets="new-mailbox">

<ApiCall Name="OnComplete">

if($succeeded) {

$newmailbox = $provisioningHandler.UserSpecifiedParameters["Name"]

set-casmailbox $newmailbox -IMAPEnabled $false

}

</ApiCall>

</Feature>

< /Configuration>

"

Link zu diesem Kommentar

next try:

 

xml

<?xml version="1.0" encoding="utf-8" ?>

< Configuration version="1.0">

<Feature Name="MailboxProvisioning" Cmdlets="new-mailbox,enable-mailbox">

<ApiCall Name="OnComplete">

if($succeeded) {

set-casmailbox $provisioningHandler.UserSpecifiedParameters["Alias"] -ImapEnabled $false

}

</ApiCall>

</Feature>

</Configuration>

 

komplet neuer User via EMC Wizzard erstellt (war NICHT im AD, wurde neu angelegt)

 

wizzard info:

Summary: 1 item(s). 1 succeeded, 0 failed.

Elapsed time: 00:00:16

 

 

mbtest4

Completed

 

Warning:

The cmdlet extension agent with the index 5 has thrown an exception in OnComplete(). The exception is: Microsoft.Exchange.Provisioning.ProvisioningException: ScriptingAgent: Exception thrown while invoking scriptlet for OnComplete API: Exception calling "ExecuteNonQuery" with "0" argument(s): "ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.". ---> System.Management.Automation.MethodInvocationException: Exception calling "ExecuteNonQuery" with "0" argument(s): "ExecuteNonQuery requires an open and available Connection. The connection's current state is closed." ---> System.InvalidOperationException: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.

at System.Data.SqlClient.SqlConnection.GetOpenConnection(String method)

at System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, SqlCommand command)

at System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async)

at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)

at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()

at ExecuteNonQuery(Object , Object[] )

at System.Management.Automation.DotNetAdapter.AuxiliaryMethodInvoke(Object target, Object[] arguments, MethodInformation methodInformation, Object[] originalArguments)

--- End of inner exception stack trace ---

at System.Management.Automation.DotNetAdapter.AuxiliaryMethodInvoke(Object target, Object[] arguments, MethodInformation methodInformation, Object[] originalArguments)

at System.Management.Automation.ParserOps.CallMethod(Token token, Object target, String methodName, Object[] paramArray, Boolean callStatic, Object valueToSet)

at System.Management.Automation.MethodCallNode.InvokeMethod(Object target, Object[] arguments, Object value)

at System.Management.Automation.MethodCallNode.Execute(Array input, Pipe outputPipe, ExecutionContext context)

at System.Management.Automation.ParseTreeNode.Execute(Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context)

at System.Management.Automation.StatementListNode.ExecuteStatement(ParseTreeNode statement, Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context)

--- End of inner exception stack trace ---

at Microsoft.Exchange.ProvisioningAgent.ScriptingAgentHandler.OnComplete(Boolean succeeded, Exception e)

at Microsoft.Exchange.Provisioning.ProvisioningLayer.OnComplete(Task task, Boolean succeeded, Exception exception)

 

Exchange Management Shell command completed:

New-Mailbox -Name 'mbtest4' -Alias 'mbtest4' -OrganizationalUnit 'edit.intern/AGCXwp/E0001/E0001DE/E0001DENBG01/999999/Users' -UserPrincipalName 'mbtest4edit.intern' -SamAccountName 'mbtest4' -FirstName 'mbtest4' -Initials '' -LastName '' -Password 'System.Security.SecureString' -ResetPasswordOnNextLogon $false

 

fazit -> IMAP enabeld!!

 

hat jmd eine gute Idee?

Link zu diesem Kommentar

5. EMS:

6. New-Mailbox -UserPrincipalName mbtest5@test.de -Alias mbtest5b -ResetPasswordOnNextLogon $true

 

Info:

 

7. cmdlet New-Mailbox at command pipeline position 1

8. Supply values for the following parameters:

9. Name: mbtest5

10. Password: ***********

 

11. Name Alias ServerName ProhibitSendQuota

12. ---- ----- ---------- -----------------

13. mbtest5 mbtest5b tb00006a unlimited

14. WARNING: The cmdlet extension agent with the index 5 has thrown an exception in

15. OnComplete(). The exception is: Microsoft.Exchange.Provisioning.ProvisioningException:

16. ScriptingAgent: Exception thrown while invoking scriptlet for OnComplete API: Exception

17. calling "ExecuteNonQuery" with "0" argument(s): "ExecuteNonQuery requires an open and

18. available Connection. The connection's current state is closed.". --->

19. System.Management.Automation.MethodInvocationException: Exception calling

20. "ExecuteNonQuery" with "0" argument(s): "ExecuteNonQuery requires an open and available

21. Connection. The connection's current state is closed." --->

22. System.InvalidOperationException: ExecuteNonQuery requires an open and available

23. Connection. The connection's current state is closed.

24. at System.Data.SqlClient.SqlConnection.GetOpenConnection(String method)

25. at System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method,

26. SqlCommand command)

27. at System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async)

28. at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result,

29. String methodName, Boolean sendToPipe)

30. at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()

31. at ExecuteNonQuery(Object , Object[] )

32. at System.Management.Automation.DotNetAdapter.AuxiliaryMethodInvoke(Object target,

33. Object[] arguments, MethodInformation methodInformation, Object[] originalArguments)

34. --- End of inner exception stack trace ---

35. at System.Management.Automation.DotNetAdapter.AuxiliaryMethodInvoke(Object target,

36. Object[] arguments, MethodInformation methodInformation, Object[] originalArguments)

37. at System.Management.Automation.ParserOps.CallMethod(Token token, Object target,

38. String methodName, Object[] paramArray, Boolean callStatic, Object valueToSet)

39. at System.Management.Automation.MethodCallNode.InvokeMethod(Object target, Object[]

40. arguments, Object value)

41. at System.Management.Automation.MethodCallNode.Execute(Array input, Pipe outputPipe,

42. ExecutionContext context)

43. at System.Management.Automation.ParseTreeNode.Execute(Array input, Pipe outputPipe,

44. ArrayList& resultList, ExecutionContext context)

45. at System.Management.Automation.StatementListNode.ExecuteStatement(ParseTreeNode

46. statement, Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext

47. context)

48. --- End of inner exception stack trace ---

49. at Microsoft.Exchange.ProvisioningAgent.ScriptingAgentHandler.OnComplete(Boolean

50. succeeded, Exception e)

51. at Microsoft.Exchange.Provisioning.ProvisioningLayer.OnComplete(Task task, Boolean

52. succeeded, Exception exception)

MB wurde angelegt aber IMAP ist immer noch “enabled!!

Link zu diesem Kommentar

evtl hilft das:

[PS] D:\Exchsrvr\PS-Log\MBRights-SA-FA>Get-CmdletExtensionAgent | ft name,enabled,priority -

 

Name Enabled Priority

---- ------- --------

Scripting Agent True 6

OAB Resources Management Agent True 5

Provisioning Policy Agent True 4

Mailbox Resources Management Agent True 3

Rus Agent True 2

Query Base DN Agent True 1

Admin Audit Log Agent True 255

Mailbox Creation Time Agent True 0

Link zu diesem Kommentar
Der letzte Beitrag zu diesem Thema ist mehr als 180 Tage alt. Bitte erstelle einen neuen Beitrag zu Deiner Anfrage!

Schreibe einen Kommentar

Du kannst jetzt antworten und Dich später registrieren. Falls Du bereits ein Mitglied bist, logge Dich jetzt ein.

Gast
Auf dieses Thema antworten...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Editor-Fenster leeren

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...