Delete User Mailbox wrapper operation


The Delete User Mailbox wrapper deletes the user's mailbox from the directory. It does not delete the Active Directory account of that user. The following table describes the input parameters for Delete User Mailbox wrapper.

 Input parameters for the Delete User Mailbox wrapper

The following figure shows a sample of an adapter request for the Delete User Mailbox wrapper.

XML sample of an adapter request for the Delete User Mailbox wrapper

<microsoft-exchange-request>
   <command>
       <command-name>Delete-UserMailbox</command-name>
       <parameters>
           <parameter>
               <name>UserName</name>
               <value>cdoexm cdoexm</value>
           </parameter>
           <parameter>
               <name>UsersContainer</name>
               <value>CN=Users</value>
           </parameter>
           <parameter>
               <name>DomainName</name>
               <value>DC=BMCDEV1,DC=com</value>
           </parameter>
       </parameters>
   </command>
</microsoft-exchange-request>

The following figure illustrates the adapter response for Delete User Mailbox wrapper.

XML sample of the adapter response for the Delete User Mailbox wrapper

<microsoft-exchange-response>
<metadata>
  <status>success</status>
</metadata>
  <status>success</status>
   </metadata>
    <commands-output>
     <command-output>
      <metadata>
      <command>cscript "C:\Program Files\BMC Software\AO\7502FCS
    \server\grids\7502FCS\library\adapters\bmc-adapter-microsoft-exchange
   -v2003-actor_7.6.00-SNAPSHOT\scripts\deleteMailbox.vbs"  
   "CN=cdoexm cdoexm" "CN=Users" "S-17125"
   "DC=BMCDEV1,DC=com"</command>
      <line-count>9</line-count>
      <execution-milliseconds>3578</execution-milliseconds>
      <exit-code>0</exit-code>
      <status>success</status>
     </metadata>
     <output>
      <line index = "1">Attempting to connect to remote host...</line>
      <line index = "2">Initialising rctrlx server component...</line>
      <line index = "3">Executing remote application: cmd /c cscript
   "C:\Program Files\BMC Software\AO\7502FCS\server\grids\7502FCS
    \library\adapters\bmc-adapter-microsoft-exchange-v2003-actor_7.6.00
   -SNAPSHOT\scripts\deleteMailbox.vbs" "CN=cdoexm cdoexm" "CN=Users" 
   "S-17125" "DC=BMCDEV1,DC=com"</line>
      <line index = "4">Remote application process ID: 6576</line>        
      <line index = "5">Microsoft (R) Windows Script Host Version 5.6</line>
      <line index = "6">Copyright (C) Microsoft Corporation 1996-2001.
   All rights reserved.</line>
      <line index = "7">Domain Name:DC=BMCDEV1,DC=com</line>
      <line index = "8">Successfully deleted the mailbox</line>
      <line index = "9">Remote application exited with code: 0</line>
    </output>
   </command-output>
  </commands-output>
</microsoft-exchange-response>

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

TrueSight Orchestration Content 20.19.01