Jump to content

-Haselier-

Abgemeldet
  • Gesamte Inhalte

    318
  • Registriert seit

  • Letzter Besuch

Alle erstellten Inhalte von -Haselier-

  1. wenn ich bereits einen existierenden AD Account nehme, kommt diese Meldung nicht komtm die vorher gepostete "Warnung" NICHT...und IMAP ist immernoch aktiv!
  2. hallo, mit ein paar leerzeichen, unten, am ende...
  3. 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?
  4. 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?
  5. lt Link, soll`s ja auch funktionieren! Was es bei mir nicht tut ;)
  6. 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> "
  7. 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...
  8. 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?
  9. wenn ich alles aus dem File <install path>\V14\Bin\CmdletExtensionAgents\ScriptingAgentConfig.xml alles lösche und NUR <?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> kommt wieder die fehlermeldung object reference not set to an insatnce of an object?!
  10. wie gesagt ich habe diesen Teil <?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> in das bestehende scriptingAgentCOnfig.xml file kopiert, anschliessend den Agenten enabled... via EMS/ EMC eine neue MB erstellt und in den MAilbox Einstellungen ist IMAP immernoch aktiviert
  11. dann solltest du mal deinen Link » Using Cmdlet Extension Agents to cause automatic events to occur in Exchange 2010 – life just got simpler! Ehlo World! genaueransehen ;) You can certainly perform multiple actions, if you’d like, by simply specifying each command on a new line. If you’d like to take complex actions after new-mailbox (or any cmdlet), you can also call an external script by placing the path and script name in the .xml file. view sourceprint? 1 $newmailbox = $provisioningHandler.UserSpecifiedParameters["Name"] 2 c:\myscript.ps1 -name $newmailbox Keep in mind that you can’t do things like write-host ........
  12. Oder Du schreibst einen CMDLET Extension Agent, der bei "New-Mailbox" und bei "Enable-Mailbox" ausgeführt wird und POP/IMAP wieder ausschaltet. Siehe hier: Understanding Cmdlet Extension Agents: Exchange 2010 Help » Using Cmdlet Extension Agents to cause automatic events to occur in Exchange 2010 – life just got simpler! Ehlo World! Das letzte Beispiel schaltet IMAP bei New-Mailbox aus. Du müsstest es noch um POP und Enable-Mailbox erweitern. genauso hab ichs umgesetzt! ohne erfolg
  13. solltest mal dein Link ansehen habs genauso umgesetzt...
  14. hab nun alles aus dem *.xml File entfernt (ausser was per default drin ist) habe: $newmailbox = $provisioningHandler.UserSpecifiedParameters["Name"] D:\Exchsrvr\PS-Log\PS-Cmdlets-ExtensionAgents\Imap-disable.ps1 -name $newmailbox get-mailbox | set-casmailbox -imapenabled $false (imap-disable.ps1) neues Konto = IMAP aktiv ems: Set-CASMailbox -Identity "John Smith" -IMAPEnabled $false = IMAp deaktivert ich denke, dass gar nicht auf das *.xml File zugegriffen wird?!
  15. ist das selbe in grün :) IMAP ist immernoch "aktiv" - ;(
  16. stimmt danke für den link. ich habe nun <?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> wie in deinem Link in die bereits bestehende xml copiert. wollte dann eine neue mailbox erstellen (EMC) die Fehlermeldung bleibt nun aus, dedoch ist IMAP leider immer noch aktiv?!
  17. wenn ich nun einen neuen User/ mailbox via EMC erstellen will kommt folgende Meldung "Object reference not set to an instance of an Object...." somit ist keine neuanlage möglich neuanlage ist nur möglich wenn ich disable-CmdletExtensionAgent "Scripting Agent" mache, erst dann ist die Fehlermeldung weg...
  18. das ist soweit klar. ich habe nun folgendes gemacht... • 1-Enable-CmdletExtensionAgent "Scripting Agent" • 2- Unter D:\Exchsrvr\Bin\CmdletExtensionAgents\ IMAP-extention.xml • IMAP-extention.xml • <?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> • Via EMC neue Mailbox: • Fehlercode: • Scipting agent initialization failed • File not found • at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection`1 output, PSInvocationSettings settings) • at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings) • at System.Management.Automation.PowerShell.Invoke() • at Microsoft.Exchange.Configuration.MonadDataProvider.MonadRemoteRunspaceFactory.ExecuteCommand(PSCommand command, Runspace runspace) • at Microsoft.PowerShell.HostingTools.RunspaceFactory.CreateRunspace() • at Microsoft.PowerShell.HostingTools.RunspaceMediator.AcquireRunspace() • at Microsoft.PowerShell.HostingTools.RunspaceProxy.GetRunspace() • at Microsoft.PowerShell.HostingTools.PowerShellProxy..ctor(RunspaceProxy proxy, WorkUnitBase[] workUnits, PSCommand command) • at Microsoft.Exchange.Configuration.MonadDataProvider.MonadPipelineProxy..ctor(RunspaceProxy proxy, IEnumerable input, PSCommand commands, WorkUnit[] workUnits) • at Microsoft.Exchange.Configuration.MonadDataProvider.MonadCommand.CreatePipeline(WorkUnit[] workUnits, PSCommand commands) • at Microsoft.Exchange.Configuration.MonadDataProvider.MonadCommand.BeginExecute(WorkUnit[] workUnits) • at Microsoft.Exchange.Configuration.MonadDataProvider.MonadCommand.Execute(WorkUnit[] workUnits) • at Microsoft.Exchange.Management.SnapIn.Esm.Recipients.NewMailboxDataHandler.OnSaveData() • at Microsoft.Exchange.Management.SystemManager.WinForms.SingleTaskDataHandler.OnSaveData(CommandInteractionHandler interactionHandler) • at Microsoft.Exchange.Management.SystemManager.WinForms.DataHandler.Save(CommandInteractionHandler interactionHandler) • at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
  19. dh ich müsste zu Get-Mailbox | Where {$_.Database -like "DAG-DB"} | Get-CASMailbox | Set-CASMailbox -PopEnabled $false -ImapEnabled $ diesen extenstion agent schreiben?! kann ich nicht einfach via Powershell den standardwert für IMAP "global" deaktivieren und einfach von Hand die aktivieren, die ich brauche?!
  20. Danke für die schnelle Antwort Get-Mailbox | Where {$_.Database -like "DAG-DB"} | Get-CASMailbox | Set-CASMailbox -PopEnabled $false -ImapEnabled $false Wir haben 15 MailBox Datenbanken, d.h. man muss für jede DB den o.g. Befehl anwenden? Wenn nun eine neue MailBox angelegt wird, wäre POP3 und IMAP ist diese dann aktiviert oder deaktiviert? Gruss
  21. Hallo, wir haben E2010 mit SP2 RU2 als DAG bei uns umeinsatz Unter den Mailbox features ist MAPI & POP3 als standard bei alles Postfächern aktiviert. wie kann ich bei ALLEN Postfächern IMAp & Pop3 deaktiviern und nur dezidiert für einzelne Postfächer aktivieren?
  22. weil die EMC zu trivial ist ;) funzt.. danke.. sonniges WE
×
×
  • Neu erstellen...