How to get active user data using vba code in excel

Start with this script: http://community.spiceworks.com/scripts/show/1572-list-user-info-in-excel
Then add an extra line to get the msDS-UserAccountDisabled attribute, or test for it in an If/Else block.

Could you please help me to get only active user details from active directory using vba code.
Any help would be immensely appreciated.
Thanks in advance
This topic first appeared in the Spiceworks Community

Similar Messages

  • Disconnect all active Essbase connections using VBA code in Excel

    Hi All,
    I am currently using the below code to disconnect the active essbase connection. It works fine but it shows me a windows with the list of active essbase connections and I have to select each essbase connection and click disconnect. I want a vba code which will disconnect / kill all active connections of Essbase at one go. for e.g. I have 10 worksheets connected to different databases in Essbase. I want a code which will disconnect all 10 sheets at one go. Please expedite. Thanks for your help in advance.
    Private Sub MDisConn()
    On Error Resume Next
    EssError = EssMenuVDisconnect()
    ErrorBox
    End Sub

    Hi,
    You could use EssVDisconnect which takes a sheet name and does not open the disconnect login box.
    Declare Function EssVDisconnect Lib "ESSEXCLN.XLL" (ByVal sheetName As Variant) As Long
    Sub DisConn()
    X=EssVDisconnect("Sheet1")
    End Sub
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to get Active users list in Essbase 6.5.6

    Hi Gurus,
    How to get Active users list in Essbase 6.5.6 version
    I dont find any Esscmd to find active users list....
    i used LISTLOGINS command in ESSCMD but its not helping me out....
    pls suggest me some approach to find active users list.
    Thanks in advance....

    Hi  ,
    Display sessions will give only active users details which are currently connected to the ESSBASE .
    if you need this list ? or  you need the  total list of   security  active users list ?
    if you need the currently connected to the ESSBASE
    if you check  one server  At a time  or you can check the application level also
    1)server level
    display  session all;
    2)application level
    display session on application  'application name ';
    go for the  run command ---> essmsh----->  login;----->enter user name ----> enter password----->enter host (like server name )  then you need to you   above  1 &2  commands
    Thanks,
    suresh

  • How to get the context data using java script in interactive forms

    Hi All,
    How to get the context data using java script in interactive forms by adobe,  am using web dynpro java
    thanks.

    Hi venkat,
    Please Refer this link.
      Populating one Drop-Down list from the selection of another Drop-down list
    Thanks,
    Raju.

  • WLST: How to get "Activation Time" data from a managed server ?

    Hello,
    does someone knows how to get the "Activation Time" (Time when the managed server was started) of a managed server via WLST under WLS 8.1 & 9.2 ?
    Thx a million.

    Under 9.2
    connect()
    serverRuntime()
    print cmo.getActivationTime()
    print java.util.Date(cmo.getActivationTime())
    <Markus Jessl> wrote in message news:[email protected]..
    Hello,
    does someone knows how to get the "Activation Time" (Time when the managed
    server was started) of a managed server via WLST under WLS 8.1 & 9.2 ?
    Thx a million.

  • How to get current navigation data using C#

    Hi,
    Please help me to get the current navigation data using c#.
    In detail, In my sharepoint 2013 site, if i navigate to the Site Actions -> Settings ->Navigation -> Current Naviation and add some link it should show on my web part.
    I am trying to create  a new web part and this web part should show the content of Current Navigation (under settings).
    Thanks in advance.

    Hi Lakshmanan,
    Thanks for your reply.
    I need more CSS customization so i am looking for C# code and i got the code. i am getting all the subsites but child nodes of subsites are showing zero even though the subsites having another subsites and pages.
    I have tried the below scranario,
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.navigation.spnavigation.quicklaunch.aspx
    Please help me on this. This is very urgent for me.
    Thanks a ton.

  • How to get mailbox expiration date using cmdlets 2007 and 2010?

    i wants to know which cmdlets used to find the expiration date of mailbox in exchange server 2007 and exchange server 2010. I have a cmdlets that gives mailbox expiration date for exchange server 2013. Is there any equivalent cmdltes available for exchange
    server 2007 and exchange server 2010. cmdlets to get expiration date of mailbox for exchange server 2013 is as follow
    Get-ADUser -Filter * –Properties Name, EmailAddress, AccountExpirationDate, GivenName | select Name, EmailAddress, AccountExpirationDate, GivenName | where {$_. AccountExpirationDate –ne $null}

    Hi Belinda
    Thanks for your valuable replies
    Please mention PS command to get the
    expiration date for AD accounts created for Exchange 2010 and Exchange 2007.
    Thanks a lot

  • How to get windows user identity after deploying code in IIS6.1

    Hi,
    In my asp.net application I have to get windows user identity. My backend is oracle.
    I set the windows authentication mode and impersonate to true. But still I'm not getting the actual windows user name.
    Please tell me how to get it.
    k.Bhaskar.

    Hello,
    For this kind of issue please consult on IIS forum:
    http://forums.iis.net/
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to get the current date using HTMLB JSP page

    Hi All, I developed an iview with several fields using PDK, I would like to know how can I include for a date field a dynamic value witch in this case is the current date.
    <hbj:inputField
    id="Date"
    type="date"
    maxlength="10"
    showHelp="TRUE"
    required="TRUE"
    value="???"
    />
    Thanks in advance
    Alexis

    Hi Alexis ,
    u can use the setDate("3.12.2003") function to set date for this input field.
    u just change the id = Date , because in jave we have Date class. rename it to another name..
    suppose id = systemDate
    <%
    Format formater = new SimpleDateFormat("dd.MM.yyyy");
    Date syDatum = new Date();
    %>
    then
    put
        systemDate.setDate(formater.format(syDatum));
    this will set the date .....
                        Regards
                        Kishor Gopinathan

  • How to get active remote data link

    I creat new data link easy, but when I test it. The message is not active.

    I assume you are asking this with reference of replication.
    Which means you have set global_names=true in your initora.
    That requires the database link names to be same as the sid/service name. Are you using the same database link name as the sid/service name?
    Please reply back if it helped.
    null

  • How to get Manual Receipt Data using PO & RCV tables in R12

    Hi,
    I'm building a query using PO & RCV tables, I need to select all the Manual Receipts (not the receipts generated automatically using the ASN & RCV files).
    What condition should I use in the where clause for capturing only Manual Receipts?
    Thanks.

    Hi,
    All the manual receipts will have NULL value in the INTERFACE_SOURCE_LINES_ID column in the RCV_TRANSACTIONS table for the TRANSACTION_TYPE="RECEIVE".
    Thanks,
    PS.

  • How to get the user entered data?

    Hi all,
    I have created an HTMLB DynPage component.
    In That i have created my input screen with textboxes using response.write method.
    i have added one onConfirm event on which the data whould validate.
    so onConfirm method im trying to get the data with request.getParameter method which returns null...
    how to do...how to get the user entered data to do my validations...can anyone plz advice.
    Thanks,
    Viswes

    Hi
    inputfield or textbox component entered directly using response.write(...) are not htmlb , but html.
    to create portal input field (ie HTMLB), you should do something like
    this in the doProcessBeforeOutput member function
    InputField field1 = new InputField("Id1");
    field1.setSize(8); // 8 characters
    this.getForm().addComponent(field1);
    and in doProcessAfterInput member function
    InputField field1 =
    (InputField) this.getComponentByName("Id1");
    you can then manipulate the content of the field.
    Hope this help,
    Guillaume

  • How to get the user active stauts in jspdynpro

    How to get the user active status in jspdynpro.
    I want check weather a user is active or not (Collaboration Launch Pad functionality)
    in jspdynpage.
    Thank's in advance,
    Mr.Chowdary

    Hi Eddy,
    Here the scenario is to get the data of a field from the user defined table to pass the extracted values as a input to the XL reporter, which will be selected while generating the report.
    It would be great if you provide any solution for this problem.
    Thanks.

  • How to know active user in Ad ? & how many days from not use user id ?

    How to know active user in Ad ? & how many days from not use user id ?
    Thanks & Regards, Amol . Amol Dhaygude

    Hi Amol,
    You can use the below command from the command prompt of DC to get all the AD users who are inactive for last
    X weeks,
                                    dsquery
    user -inactive X 
    To extract the inactive user information to a CSV file use the below command,
                   dsquery user -inactive X > c:\TestFolder\InactiveUsers.csv
    NOTE: The value
    X represents number of weeks, for example if your requirement is to find the inactive users for last 90 days then the
    X value should be 13.
    Regards,
    Gopi
    JiJi Technologies

  • How can we get requester's user id using java code

    Hi,
    How can we get requester's user id using java code?
    eg: If i had logged in as xelsysadm and request a resource for user uid101 on the userid field it should display uid101 and not xelsysadm.
    also,
    I have a resoure "A" which on revoking should also revoke resources B and C. How can it be done. Resource A, B, and C are 3 different resource objects.
    ==Thanks,
    doki

    Ok, so there is a way, but it's not available during submission. You can use the findRequests api. From the result set, get the "Requests.Consolidated Data Value" value. In this information, you will get an xml formatted data. It provides the list of users on the request on the left side after submission. After the request is completed, this value is available. Upon completion, you could get the request information, get this value, and parse the information for user ids.
    In the same adapter, use the following API:
    formIntf.setObjectFormData(objInstanceKey, formHash)
    The formHash is a hashtable containing the field name on your object form, and the values you wish to populate it with. You could create a textarea box on your object form and populate the userids for who the request is for.
    However, this makes absolutely 0 sense. When you get a request, the list of userids are listed right there on the request.
    -Kevin

Maybe you are looking for

  • Unable to Open Canon 60D RAW files in PSE9

    Since I got my new camera Canon 60D, I have not been able to open the RAW (CR2) files in my Photoshop Elements 9.  The ones from my previous camera I could. I have installed the Solutions software that came with the camera and have gone to both the C

  • Selecting records from DEFAULT range-list subpartition

    Is it possible to select records which belong to DEFAULT subpartition of a certain partition of a RANGE-LIST partitioned table, using subpartition pruning? Our task assumes creating partitions and subpartitions in a table dynamically before running E

  • Export/import whole Project

    Hi, I exported Project from one repository. Now I'd like to import it into the new repository. I go Designer -> Projects -> Import Project Dialog box pops up to choose file to be imported. Problem is no files are displayed within folder where the fil

  • How can I get it to print output of inputstream?

    Please forgive me for running two similar thread but the other thread ahs strayed from primal concern of coding. Some help with the code please??? I have set up an inputstream and outputstream to the "ftp process" of java.lang.Runtime I have sent the

  • Using HTTPS in JSC project

    If we want to transfer a password from a client machine to the server, we usually use the following Java code in a JSC project: myPasswordID.getValue() But is this safe? What can I do to send the password information with encription (that means throu