List Disabled Accounts operation


The List Disabled Accounts operation lists all the disabled user accounts.

The following table describes the elements for the <items> XML element and adapter request for the List Disabled Accounts operation:

 Elements for the <items> XML element and adapter request for the List Disabled Accounts operation

The following figure shows a sample adapter request for the List Disabled Accounts operation:

Adapter request for the List Disabled Accounts operation

<active-directory-request>
   <target>
     <host>vm-w23-rds19</host>
     <user-name>administrator</user-name>
     <password>bmcAdm1n</password>
   </target>
   <commands>
     <command>
       <active-directory-command>List Disabled Accounts
</active-directory-command>
       <object-class>User</object-class>
       <object-distinguished-name>DC=vm-w23-rds19,
DC=local</object-distinguished-name>
       <parameters>
         <server>vm-w23-rds19</server>
         <user-name>administrator</user-name>
         <password>bmcAdm1n</password>
       </parameters>
     </command>
   </commands>
 </active-directory-request>


The following figure shows a a sample adapter response for the List Disabled Accounts operation:

Sample adapter response for the List Disabled Accounts operation

 <active-directory-response>
 <metadata>
   <status>success</status>
 </metadata>
 <target-output host="vm-w23-rds19">
   <metadata>
     <os-id>Windows 2003</os-id>
     <os-version>5.2 Build 3790 Service Pack 2
</os-version>
     <status>success</status>
   </metadata>
   <commands-output>
     <command-output>
       <metadata>
         <command>dsquery user "DC=vm-w23-rds19,
DC=local" -disabled -s "vm-w23-rds19" -u "administrator"
-p "bmcAdm1n"</command>
         <line-count>11</line-count>
         <execution-milliseconds>1843</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
omponent...</line>
         <line index="3">Executing remote application:
cmd /c dsquery user "DC=vm-w23-rds19,DC=local"
-disabled -s "vm-w23-rds19" -u "administrator" -p
"bmcAdm1n"</line>
         <line index="4">Remote application process
ID: 9020</line>
         <line index="5">"CN=Guest,CN=Users,
DC=vm-w23-rds19,DC=local"</line>
         <line index="6">"CN=SUPPORT_388945a0,
CN=Users,DC=vm-w23-rds19,DC=local"</line>
         <line index="7">"CN=krbtgt,CN=Users,
DC=vm-w23-rds19,DC=local"</line>
         <line index="8">"CN=rohitn-pun-01,
CN=Users,DC=vm-w23-rds19,DC=local"</line>
         <line index="9">"CN=KevinWatson-pun-01
,OU=Test OU1,DC=vm-w23-rds19,DC=local"</line>
         <line index="10">"CN=JohnYounge-pun-01
,OU=Test OU1,DC=vm-w23-rds19,DC=local"</line>
         <line index="11">Remote application exited
with code: 0</line>
       </output>
     </command-output>
   </commands-output>
 </target-output>
</active-directory-response>

 

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