Zum Inhalt wechseln


Foto

IMAP als default deaktiveren


  • Bitte melde dich an um zu Antworten
102 Antworten in diesem Thema

#31 -Haselier-

-Haselier-

    Member

  • 318 Beiträge

 

Geschrieben 16. August 2012 - 16:04

da war ein bereits existierendes AD Konto

werde jetzt aber mal über den EMC Wizzard ein komplette neuen AD Account mit MB generieren ...

melde mich gleich ...


ps:

soll der "alte Inhalt" der *.xml erhalten bleiben, oder kommt nur der IMAP text rein?
Nemo perfectus est, ego non sum

#32 -Haselier-

-Haselier-

    Member

  • 318 Beiträge

 

Geschrieben 16. August 2012 - 16:09

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...
Nemo perfectus est, ego non sum

#33 -Haselier-

-Haselier-

    Member

  • 318 Beiträge

 

Geschrieben 17. August 2012 - 09:25

weitere Ideen, tipps & tricks
Nemo perfectus est, ego non sum

#34 -Haselier-

-Haselier-

    Member

  • 318 Beiträge

 

Geschrieben 17. August 2012 - 09:28

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>
"
Nemo perfectus est, ego non sum

#35 tesso

tesso

    Board Veteran

  • 2.238 Beiträge

 

Geschrieben 17. August 2012 - 09:39

an dieser Stelle erneut meine Frage:


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


Diese Frage wird dir im geposteten Link beantwortet.

Add your script to the renamed configuration file on every Exchange 2010 server in your organization.



#36 -Haselier-

-Haselier-

    Member

  • 318 Beiträge

 

Geschrieben 17. August 2012 - 09:56

lt Link, soll`s ja auch funktionieren! Was es bei mir nicht tut ;)
Nemo perfectus est, ego non sum

#37 tesso

tesso

    Board Veteran

  • 2.238 Beiträge

 

Geschrieben 17. August 2012 - 09:59

An welcher Stelle hast du deine Ergänzung eingefügt?

#38 -Haselier-

-Haselier-

    Member

  • 318 Beiträge

 

Geschrieben 17. August 2012 - 10:00

wenn wir einen 2 node DAG implementiert haben

und ich habe auf server 1 ein anderes *.xml file als auf server 2, gibts dann probleme, so zumindestens habe ich den link verstanden, oder?
Nemo perfectus est, ego non sum

#39 -Haselier-

-Haselier-

    Member

  • 318 Beiträge

 

Geschrieben 17. August 2012 - 10:12

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?
Nemo perfectus est, ego non sum

#40 -Haselier-

-Haselier-

    Member

  • 318 Beiträge

 

Geschrieben 17. August 2012 - 10:14

An welcher Stelle hast du deine Ergänzung eingefügt?


hallo,

mit ein paar leerzeichen, unten, am ende...
Nemo perfectus est, ego non sum

#41 -Haselier-

-Haselier-

    Member

  • 318 Beiträge

 

Geschrieben 17. August 2012 - 10:23

wenn ich bereits einen existierenden AD Account nehme, kommt diese Meldung nicht

komtm die vorher gepostete "Warnung" NICHT...und IMAP ist immernoch aktiv!

#42 -Haselier-

-Haselier-

    Member

  • 318 Beiträge

 

Geschrieben 17. August 2012 - 12:14

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!!
Nemo perfectus est, ego non sum

#43 -Haselier-

-Haselier-

    Member

  • 318 Beiträge

 

Geschrieben 17. August 2012 - 12:19

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
Nemo perfectus est, ego non sum

#44 -Haselier-

-Haselier-

    Member

  • 318 Beiträge

 

Geschrieben 17. August 2012 - 13:07

keiner von euch "Spezialisten" eine zündende idee?
Nemo perfectus est, ego non sum

#45 tesso

tesso

    Board Veteran

  • 2.238 Beiträge

 

Geschrieben 18. August 2012 - 07:51

Welchen Dateinamen hat die xml, wie ist der Inhalt?