Auto-populate Computer Description Fields in AD Console

Hi guys,
I need some help with populating computer descriptions in AD.  I have searched this on google numerous times and everytime I find a script there are loads of comments with "changes" saying it doesn't work.
What I am looking for in the description field is the last logged in user and the date and time of when they logged in.  Now as we don't have multiple tenant machines this only needs updated every few days.
I want a solution really to find machines that aren't used, as the IT asset register is severely out dated! Plus this is always a handy feature to have for future reference.
If anyone knows of a script online somewhere or has one they use successfully I would greatly appreciate it and also some advice on how to deploy it (I know it gets added in to GPO but not 100% sure how).
Thanks

To track user logon / logoff, you can simply refer to what I shared here: http://social.technet.microsoft.com/wiki/contents/articles/20422.record-logon-logoff-activities-on-domain-servers-and-workstations-using-group-policy.aspx
If you want to populate the collected information and put it in the Description field, you can simply use a Powershell script that reads the CSV files and set the value using
Set-ADComputer cmdlet: https://technet.microsoft.com/en-us/library/ee617263.aspx
To identify obsolete computers, you can refer to lastlogontimestamp
attribute value: http://blog.mattvogt.net/2011/10/06/powershell-last-logon-timestamp-for-single-ho/
This posting is provided AS IS with no warranties or guarantees , and confers no rights.
Ahmed MALEK
My Website Link
My Linkedin Profile
My MVP Profile

Similar Messages

  • Auto populate Infopath 2013 fields after selecting a specific dropdown option.

    Auto populate Infopath 2013 fields after selecting a specific dropdown option.
    Hi.
    I have a Sharepoint 2013 list with three fields. Code, Section and Sub Section.
    I would like to be able to have the form autopopulate the Section and Sub Section fields when a value for code is entered.
    How would I go about this please?
    Thanks
    Jon

    Hi JonMorgan,
    Based on your description, my understanding is that you want to achieve that the second dropdown gets populated depending on what the first dropdown is set to.
    To achieve your requirement, creating cascading dropdown fields with InfoPath.
    Please refer to the following links about cascade drop down in InfoPath form:
    http://msreddysharepoint.blogspot.in/2012/12/infopath-2013-web-browser-creating.html
    http://www.pointbeyond.com/2011/11/20/cascading-dropdowns-in-infopath-2010/
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

  • Digital Signature - Auto-Populate Multiple Signature Fields

    Hello,
    I am in the process of testing digital signatures with PDFs.  I have a Topaz Signature Pad working in conjunction with Acrobat 9 and Reader 9 so that I can insert digital signatures with no problems.
    We are wanting to take this a step further and streamline a particular business process.  Does anyone know of a way to have a digital signature auto-populate multiple designated signature fields?  We have about 15 documents that require an employee signature in multiple places and rather than having someone sign a document over and over again, we'd like the option for a single signature that auto-fills in all the required signature fields.
    This doesn't necessarily have to work with Topaz Signature Pads.  I am completely open to other suggestions, products or methodologies for making this work as long as something can be automated to auto-fill multiple signature fields.
    Many thanks to the forum!
    Regards,
    Geoff

    Hi Geoff,
    Maybe there is no need to re-inent the wheel. Auto-population of forms is a feature of SignDoc - se http://www.signplus.com/en/products/signdoc/features.php#Form_Preparation
    Auto-filling of forms is requirement which can be achieved through various processes.
    In combination with Adobe LiveCycle this is executed in the case study of Adobe/SOFTPRO.
    http://blogs.adobe.com/security/2010/01/adobe_secured_customer_showcas_8.html
    http://www.adobe.com/cfusion/showcase/index.cfm?event=casestudydetail&casestudyid=762388&l oc=en_us
    However there are also other ways to move forward depending on the envrionment you are using.
    If you are based in the US you may want to get in touch with Rod Vesling SOFTPROs E-Signature Specialist, based in CA near LA, for a chat. His office phone is 805 435 1214. His email is [email protected]
    Depoending on the deice of Topaz you are usinfg you may start right away as quite a decent number of Topaz tablets are supported by SignDoc. However the best idea might be to give Rod a ring and idscus your business requirements in detail.
    Kind regards
    Joerg

  • Auto populate a date field in pdf

    in the form I am working on I have a date/time field. I need it to populate the current date when the form is open. I get it to work but it has the time on it. I only need the date. when I try to change it to display just the date. It will not auto populate ? please help. Thank you for any one who can help.
    using adobe livecycle ES

    I found out how to use current date.
    To add current date fields in LifeCycle
    You can use a date/time field to automatically show the current date by using the Runtime Property option in the Value tab of the Object palette.
    Note:  When using a current date field, the date updates to reflect the system’s current date each time a user opens the form. 
    1.  In the Object Library palette, click the Standard category and drag a Date/Time Field object onto the form design.
    2.  In the Object palette, click the Value tab and select Calculated - Read Only from the Type list.
    3.  Select the Runtime Property option.
    4.  View the form in the Preview PDF tab.
    Hope this helps!
    Brian

  • Can Acrobat auto populate a date field upon digital signature of a form?

    We use several fillable forms with digital ID signature fields.  A business rule requires a date field next to the signature field.  Is it possible to define the date field to auto populate once the user signs the form?  I can't check this in Acrobat since I only have the reader.

    Hi,
    The short answer is yes, but of course you'll need to get Acrobat to edit the PDF file.
    Generically, here is what  you are looking to do:
    Open the Digital Signature Properties dialog
    Select the Signed tab
    Select the This script executes when the field is signed radio button
    Click the Edit button
    Add the code snippet below to the JavaScript editor
    Click the OK button on the JavaScript editor
    Click the Close button on the Digital Signature Properties dialog
    // JavaScript code to add the date at signing time
        var currentTime = new Date()
        var month = currentTime.getMonth() + 1
        var day = currentTime.getDate()
        var year = currentTime.getFullYear()
        var signingTime = day +"/"+month+"/"+year  //Modify into your preferred format
        var f = this.getField("Text1");  //Modify the field name as necessary
        f.value = signingTime;
    Good luck,
    Steve

  • Auto-populate CRMOD Communication fields

    Hello,
    I'm trying to tighten up the reporting in CRMOD based on our calls coming into COD, and I'm looking for help. When a call comes in (we're using COD), the agent gets a pop of an Activity screen (subtype = Communication). If the agent doesn't associate a first time caller with a Lead, Contact, or Opportunity, then the record of that call in CRMOD is not of much value to us. (I believe that for subsequent calls, the Activity will automatically be associated if we've created a Lead or Contact with that phone number, but I'm not 100% sure.) But still, it's the first call that I want to report on. That is, the first time someone calls, it may be on a number that's dedicated to a particular campaign. But if we send out information (or an agent just gives out a phone number), it may not be the same as the first time.
    So, is there:
    1) A way to auto-poulate the Campaign field in Call Detail based on the Destination? (This would be for select Destinations. For example, if some calls in on 800-555-1234, I know it's always a call for Campaign X. But if someone calls in on 800-555-7890, I can't assign it because there are multiple campaigns using that number.)
    2) A way to associate the Calls after the fact. Say someone called in 5 more times and those all associated properly, can I update that first one without having to go digging for it?

    The easiest way to do what you want to do is to have your agents create the new lead from the call detail during the call. So here are the steps:
    - Call comes in, but the number isn't recognized so the call detail (activity) comes up.
    - On the call detail, click the magnifying glass (search) on the lead field.
    - On the lead search screen that comes up, there's a button to create a new lead.
    - Create the lead and enter the phone number of the lead. (The call detail will have the origin phone number that the caller called from. You should verify with the caller that this is the best number to reach them at.)
    - Save the lead - this will populate the lead onto the call detail and associate them

  • How do you auto populate a dynpro field when hit key while in other fields?

    This is a dialog programming question for a custom dialog program (it is NOT an SAP program).
    I have a dialog program that neds to be changed to accomodate the following.
    i have searched SDN and can not find anything to resolve this issue.
    I have a screen with multiple lines, scrolling, etc.
    The first field in a line is a required entry.
    There are two date fields that need to be automatrically populated when a value is entered in the first field.
    In other words - when the user enters the first field value and then tabs to next field (or they may press enter, etc.) i need to populate the date fields on the same line and display them back to the user immdeately.
    I can not get this to work - any help most appreciated.
    Thanks.
    Scott

    Unfortunately, there's no 'tab-out' event in ABAP standard dynpros - you've got to trigger a PAI event to make that happen (such as hitting 'Enter').

  • How to auto-populate the Contact field from a Custom Object

    Hi,
    I am working on a project where the Contact record is the main focus. I have setup the Contact record as having a one-to-many relationship with CO4. From the Contact Details page I can click on the New button in the Related Record section for CO4 and the Contact from the Details page is auto-populated (which is what I want). I then enter the data into CO4 and click on Save so that the record is displayed in the Related Record section, and then I click into it so that I'm now on the CO4 Details page.
    My page layout for CO4 has both Activities and Service Requests as related records, and the page layouts for both of these include the CO4 field and the Contact field. When I click on New for either of these record types, the CO4 field is populated from the previous record but the Contact is not. I realize this is because there is a one-to-many relationship between CO4 and the Activity/SR, but is there any way to also pull over the value in the Contact field?
    I also tried this using CO1 which does have a many-to-many relationship (if I understand it correctly), but the Contact field is still not pulling over. Is there a way to make this happen?
    Thanks!

    This functionality is not available at this time. I would recommend that you submit a enhancement request to customer care.

  • How do you auto-populate a text field based on entries in other text fields?

    I would like to be able to have a text field that populates as "Complete" or "Incomplete" based on whether all the mandatory text fields have been filled out or not.
    For example, if the "First Name," "Last Name," and "City" text fields are not filled out, the "completion status" text field will show "Incomplete" and once they are filled out, the "completion status" text field will turn into "Complete."
    How would I do this using javascript? I've searched the web for a tutorial, but most of the results seem to be dropdown-centric.
    Please point me in the right direction!

    Try the script below. I put this on the calculate event for Field1
    if(FirstName.rawValue == null || LastName.rawValue == null || City.rawValue == null){
    Field1.rawValue = "Incomplete"
    else
    Field1.rawValue = "Complete"

  • Auto populate Infopath 2013 fields after entering a data into a textbox.

    Firstly can I please say I am sorry to be revisiting this but I just can sort it out!!
    I have 3 fields in a SharePoint 2013 list, Code, Section, SubSection, after some guidance I am trying to use rules to populate Section/SubSection when a Code is entered.  I am getting the Data for the three Fields from an XML file. The form can see
    the XML data fine. Here's the BUT.. I cant seem to get the quering correct to autofil the other two fields.
    I promise this is the last time I shall ask for help on this!
    TIA
    Jon

    Thanks Cameron.
    No that’s not what I need, not Cascading Drop Downs, I want TextBox’s to be populated.
    I have 3 fields, Code, Section, and SubSection, when a user enters a code into the first box, a rule queries the list, I(I have XML or SharePoint List) to populate the Section/SubSection with
    the data relating to the Code.
    So far I have a rule that on FormLoad when the Code field changes it queries the XML list for the info.  The problem I have it I can’t get the query correct.
    Thanks
    Jon

  • Auto populate blank text fields with n.a from a button or on print out.

    This seems straight forward but I cannot find an existing questions on this topic.
    I would like to add a form function that will fill any blank text fields with n.a. I do not want to use the default field value as I think it will cause confusion and cannot be applied for text fields formatted for dates. Is it possible to run a script that can do this? It would be OK if the action was triggered from a button or print activity after the rest of the form has been completed.
    Any thoughts would be appreciated.
    Thanks

    The question is whether your form is used only for filling out on screen (and not as a level 0 form, being printed out and filled out manually).
    If so, why not make the default value of the concerned fields to be "n/a" (or whatever you want to name them). That would relieve you from any validating before printing.
    Otherwise, you could maintain a list of field names which should get the n/a value if empty. This list would be an array.
    Your code in the willPrint event (if you want to have it reliably) would then look like this:
    for (var i = 0 ; i < nafieldarray.length ; i++) {
    if (this.getField(nafieldarray[i]).value == this.getField(nafieldarray[i]).defaultValue) {
    this.getField(nafieldarray[i].value = "n/a") ;
    HTH.
    Max Wyss.

  • Auto Populate one Field Based on Another Field

    I am trying to populate the description field after the user has entered a value in the item number field and then tabs or otherwise exits the item number field. I'm sure this is in the documentation somewhere, but I'm in a big hurry.
    By the way, this is only the second time I've looked at HTML-DB, so details would be appreciated.
    Thanks a bunch!

    Well, I've been all over all kinds of documentation, but the pieces are not coming together.
    I have onchange="doSubmit('GETDESC');" in the HTML Form Element Attributes.
    I have a couple of processes which fire, or don't, depending on the condition of Request (Request = Expression 1 vs. Request != Expression 1).
    I know when a process fires because of messages I put in the Process Success Message.
    My source is:
    SELECT ITEM_DESCRIPTION INTO :P1_ITEM_DESCRIPTION
    FROM PRT_HEADER
    WHERE ITEM_NBR = :P1_ITEM_NBR;
    When I change the value in P1_ITEM_NBR and tab out, the form comes back blank.
    Any ideas?
    Thanks,
    Gregory

  • Seeking Pdf form help - javascript formula to auto-populate fields based on data from other fields.

    Hi there, I am new to PDF form work, and am wondering if someone could help me with a javascript formula.
    I want to auto-populate the EXPIRYDATE field, as the same date as the entered AUTHORIZATIONDATE field, but 4 years later.
    So, I want to be able to enter 11/14/2014 in the AUTHORIZATIONDATE date, and have 11/14/2018 auto populate in the EXPIRYDATE field.
    Seems simple I know, but I've messed around quite a bit and can't seem to make it work. Is this possible??
    Any help would be very much appreciated!!

    And what have you done?
    This can only be done with custom JavaScript programing.
    The value of date type fields are text field and not numeric data. The first task is to convert the dates to a number on some type of number sequence that is a mapping to dates.
    Have you looked at the Acrobat JavaScript API Reference, the MDN JavaScript reference?
    I would use the Acrobat JavaScript util.scand to covert the date string to the number of milliseconds from January 1, 1970 midnight. and then use the getFullYear method of the date object for the year value and add 4 years to that value and then use the setFullYear method to set the year for the date object. Now you can use the util.printd method to format the date object as a date string with a specific format.
    // get the date value, format of date string and years to add;
    var cDate = "11/14/2014"; // date value;
    var cFormat = "mm/dd/yyyy"; // date format;
    var nYears = 4; // years to add;
    // convert date string to date object;
    var oDate = util.scand(cFormat, cDate);
    if(oDate == null) {
    app.alert("Error converting " + cDate + " using format " + cFormat, 0, 1);
    // add years to date object;
    oDate.setFullYear(oDate.getFullYear() + nYears);
    // display result;
    var cExpireyDate = util.printd(cFormat, oDate);
    app.alert("Authorization Date: " + cDate + "." +
    "\nExpire Date: " + cExpireyDate, 3, 0);

  • Auto populate date field

    I have a JavaScript that I use to auto populate date fields. However, I've discovered that it doesn't work when the form is opened on an iPhone or Android phone. Is there a way to auto-populate a date field without using JavaScript?

    What app on the iPad are you using.
    Different apps on mobile devices have varying degrees of JavaScript compatibility.

  • How to Auto-populate TextField in Acrobat x with a value determined by user check box selection?

    I have a group of 3 Check Boxes for user to select their Work Shift:  The check boxes are set up to be mutually exclusive (same name: "EMP_Shift", different Export Values: Day, Evening, Night).
    Form Field properties name:      EMP_Shift (for all 3 check boxes)
    Acrobat edit panel field names:  EMP_Shift#0, EMPShift#1, EMPShift#2
    Export Values:                         Day, Evening, Night (chose these only because they are descriptive)
    I need to Auto-populate a Text Field named EMP_WorkShift with "Day" if EMP_Shift#0 is selected, "Evening" if EMPShift#1 is selected, or "Night" if EMPShift#2 is selected.
    Is there a script I can use to accomplish this in Acrobat Pro X.

    The simplest is to set up the text field to be calculated using the following custom Calculate script:
    // Get the value of the check box
    var v = getField("EMP_Shift").value;
    // Set this field value
    event.value = v !== "Off" ? v : "";
    You'd normally set the text field to be read-only, but if you want the user to be able to edit the text field, you can instead use the following script in the Mouse Up event of each check box:
    // Get the value of the check box
    var v = event.target.value;
    // Set the value of the text field
    getField("EMP_Workshift").value = v !== "Off" ? v : "";

Maybe you are looking for

  • Windows 7 x64 Syncing Never Completes. iTunes Crashes At The End

    I have had my ipod touch 3g for half a year now. First I used to use it on 32bit Windows 7, but recently I upgraded my machine and run 64bit Windows 7. It has been running well for the past few months but all of a sudden I have been getting a lot of

  • How to do a MyScrollBarUI with Windows XP Look'n Feel?

    I am having a simular issue as the one posted in this thread: http://forum.java.sun.com/thread.jspa?forumID=57&threadID=435791 However I am overriding the paintTrack and paintThumb methods of BasicScrollBarUI and attached my own mouse listeners becau

  • Disappearing Legend Labels in Chart DataWebBean

    Hi all, I've used a Chart DataWebBean in a JSP page and have a problem with labels that simply don't show in the Legend Area of the chart. Can anyone tell me how to fix this? Thank you in advance.

  • 2 render-kit in  my faces-config.xml

    I'd like to have 2 renderkit in my faces-config.xml. I set render-kit-id with "HTML_BASIC" for the first one and "XHTMLMP" for the 2nd. Then i got an exception when i launch tomcat : javax.faces.FacesException: java.lang.IllegalArgumentException: No

  • RMI failed between 2 Linux macines (Red Hat 9)

    follwing exception is occurs when trying to communicate RMI between Linux. Communication failure while contacting agent platform: An RMI exception occurred [nested Connection refused to host: 127.0.0.1; nested exception is:         java.net.ConnectEx