How to format Installedon date

using wmic qfe list /format:csv | ConvertFrom-Csv
I am getting installedon date in below format
InstalledOn : 01ca93ac06f27f46
how to convert in mm/dd/yyyy format

Here is a batch that crawls the network in search of info.  It runs very fast. 100 computers can be done as fast as the slowest single system.
$sb={
function Get-WUHistory {
Param ($computer = $env:COMPUTERNAME)
$Session = [activator]::CreateInstance([type]::GetTypeFromProgID("Microsoft.Update.Session", $Computer))
$WUSearcher = $Session.CreateUpdateSearcher()
$TotalHistoryCount = $WUSearcher.GetTotalHistoryCount()
If ($TotalHistoryCount -gt 0) {
$history = $WUSearcher.QueryHistory(0, $TotalHistoryCount)
$history | select @{N='Server';E={$computer}},date, title
Get-WUHistory
#$servers=Get-Content servers.txt
$servers=(Get-AdComputer -Filter *).Name
Invoke-Command -ScriptBlock $sb -AsJob -ComputerName $servers
$results=get-job -IncludeChildJob |Wait-Job|Receive-Job
get-job | Remove-Job
$results|ft -AutoSize
¯\_(ツ)_/¯

Similar Messages

  • Tell me how to format a date retrieved from a MS SQL Server 2000 database?

    Tell me how to format a date retrieved from an MS SQL Server 2000 database for various uses in my JSP page?

    Or if you want to use JSTL instead of a scriptlet see:
    http://forum.java.sun.com/thread.jspa?threadID=676754&tstart=0

  • How To formate PDF Data(Binary) to HTML Formate

    Hi All,
    I am using PDFs in my application. Once the user has submitted his project in formation through pdf, it stores in BAPI. When i tried to retrive the data from back end to display in a view. it shows me all the information is in single line because of PDf binary data. Can any one knows about how to display pdf data in a view (html) with multiple lines.
    Thanks
    Regards
    Ravi.Golla

    Hi Ravi,
    See this thread...It might be useful for u..
    /people/mark.finnern/blog/2003/09/23/bsp-programming-handling-of-non-html-documents
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4fd2d690-0201-0010-de83-b4fa0c93e1a9
    Urs GS

  • How to format a date to display the ISO week number in BI Publisher ?

    Hi there,
    I need to format a date to display the ISO week number in BI Publisher.
    I've tried the following <?format-date:NEED_BY_DATE;'WW'?>, but it returns a week number (1-53) where week 1 starts on the first day of the year and continues to the seventh day of the year, which is not what I want.
    I want the ISO week number (1-52 or 1-53), the one implemented by the 'IW' format mask of the Oracle PL/SQL TO_CHAR() function for example.
    I've tried using 'IW' format mask, but it is not recognised by BI Publisher.
    Also, as I'm working on an RTF template, I've tried 'IW' as MS Word date format, but it is not recognised by MS Word :-((
    Any help would be much appreciated,
    Regards - Hugues

    Hi,
    Thank you for the post.
    The thing is I don't have access to the query, unless I modify a standard E-Businees Suite view (one of those used to generate the PO document in Purchasing).
    Regards - Hugues

  • How to format / erase data on hard disk?

    Hi
    I have Solaris 9 installed. For some tests I need a HDD without any data on it. (Like a new one, you buy). As I don't have a new hard disk, I'd like to erase the data.
    How can I do this?
    Thank you in advance

    Jay,
    You could consider booting from CDROM and using
    format -->> analyze -->> write
    ... however that will take a bit of time (perhaps hours) to overwrite `nonsense` onto the drive.
    If you just create a new partition schema, all pointers to data blocks are overwritten. If there's a single partition, split into two. If there are multiple partitions, create a single monolithic one.
    Of course, if there are any security concerns, then this latter suggestion isn't appropriate. Data recovery companies could still find information.

  • How to format this date to german?

    Hi!
    I have following xml structure and try to format the value of customfield to a german date format:
    <issues>
    <issue id="5827" >
    <customfield name="Erledigungsdatum" type="8" >Thu, 31 Aug 2006 00:00:00 +0200</customfield>
    Following expression does not work:
    <?format-date:./customfield[@name='Erledigungsdatum'];'DD.MM.YYYY'?>
    How can I achieve this?
    Regards

    Hi Kleiber ,
    To use the Microsoft format mask or the Oracle format mask, the date from the XML
    data source must be in canonical format.
    This format is:
    YYYY-MM-DDThh:mm:ss+HH:MM
    Just check the user guide, to format for your style

  • How to format report date prompt as MM/DD/YY instead of MM/DD/YY HH:MM:SS

    Hi,
    In a report I have opportunity close dates as prompts. When using the calendar picklist in responding to the date range prompts it displays the date with the full timestamp such as 12/31/2009 12:00:00 AM.
    Some users don't want to see the full timestamp in the date picker, just 12/31/2009 for example. Is there a way to truncate that full timestamp?
    Thanks,
    Dan

    change the column formula to
    cast(opportunity close date as date)
    This is going to give the users Default calender control.

  • How can I format a date

    I want to know how to format a date in the way: 21 de junio de 2013 I mean I want to insert the word "de" between dd and mmmm and between mmmm and yyyy. Can anyone help me please?
    Thanks in advance

    Have a look at the util.printd() method.

  • Formatting of data --- in SQLPlusw

    When I issue the following statement to SQLPLUSW
    select * from V$database;
    Hard to read the results on the screen.
    How to format this data so that I can read it very easily?
    Thank you,
    Smith

    user517525 wrote:
    When I issue the following statement to SQLPLUSW
    select * from V$database;
    Hard to read the results on the screen.
    How to format this data so that I can read it very easily?
    Thank you,
    SmithGo to tahiti.oracle.com. Drill down to your product and version. There you will find the complete doc library. It includes a very fine SQL*Plus Reference Manual.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.

  • Format the date in Smartform

    Hi Experts,
              Please tell me how to format the date in Smartform...I mean if my date is
    '04.03.2007' ..I wanted to print it as 4 March,2007.
    Please reply me back..its urgent..

    hai
    plz check this code
    DATA :i_monthname   TYPE TABLE OF t247,
          w_monthname   TYPE t247,
          v_date        TYPE sy-datum,
          v_year        TYPE bkpf-gjahr,
          v_month       TYPE bkpf-monat,
          v_day(2)      TYPE c,
          v_ndate(11)   TYPE c.
    CALL FUNCTION 'MONTH_NAMES_GET'
      EXPORTING
        language    = sy-langu
      TABLES
        month_names = i_monthname.
    CALL FUNCTION 'CACS_DATE_GET_YEAR_MONTH'
      EXPORTING
        i_date  = sy-datum
      IMPORTING
        e_month = v_month
        e_year  = v_year.
    MOVE sy-datum TO v_date.
    SHIFT v_date BY 6 PLACES.
    v_day = v_date.
    READ TABLE i_monthname INTO w_monthname WITH KEY mnr = v_month .
    CONCATENATE v_day '-' w_monthname-ktx '-' v_year INTO v_ndate.
    WRITE:/ v_ndate , sy-datum.
    **Please reward suitable points***
    With Regards
    Navin Khedikar

  • How to generate the date in this format - "24-NOV-2002" ?

    i want to pass the date from java into oracle Date format. I have tried to use the SimpleDateFormat class in java. However, I could only get the following formats:
    1. "dd-mm-yyyy" --> "24-11-2002"
    2. "dd-MM-yyyy" --> "24-11-2002"
    3. "dd-MMM-yyyy" --> "24-NOVEMBER-2002"
    4. "dd-MMMMM-yyyy" --> "24-NOVEMBER-2002"
    How can i get the date format in "24-NOV-2002"?
    Thank you very much.

    3. "dd-MMM-yyyy" --> "24-NOVEMBER-2002"This should have given it to you as 24-Nov-2002 not 24-NOVEMBER-2002.
    If your only problem is the case I'd suggest using String.toUpperCase().
    E.G.
    Date dt = Calendar.getInstance().getTime();
    SimpleDateFormat fmt = new SimpleDateFormat("dd-MMM-yyyy");
    System.out.println(fmt.format(dt).toUpperCase());If you are trying to format the date for an SQL statement its a lot easier to use a PreparedStatement and setDate(...).
    Col

  • How to change the date format?

    Hi,
    I need to display the data format as(YYYY-MM-DD). But now it displays(2009-1-9)
    Here is my code snippet which i used to display the data format as(2009-1-9)
    *<INPUT TYPE=TEXT NAME="date_submitted" MAXLENGTH=20 SIZE=10 VALUE="" onBlur= "return dateSubmitted()">  (YYYY-MM-DD)*
    *<SCRIPT LANGUAGE="javascript">*
    dateSubmitted()
    *</SCRIPT>*
    function dateSubmitted()
                        if (document.pgUpdate.date_submitted.value == "")
                             date = new Date();     
                             month = date.getMonth() + 1     
                             document.pgUpdate.date_submitted.value =
                                            date.getYear() + "-" + month + "-" + date.getDate();
                        return true;
    Can anybody help me how to change the date format?
    Thanks in advance!

    prit123 wrote:
    use SimpleDateFormat class. The code is :He posted a Javascript related question, not a Java related question.
    Please use forums devoted to Javascript. You're here at a Java/JSP forum.
    There are JS forums at webdeveloper.com and dynamicdrive.com. Good luck.
    String formatPattern = "yyyy-mm-dd";
    SimpleDateFormat sdf = new SimpleDateFormat(formatPattern);
    sdf.format(yourdate);yyyy-mm-dd denotes year-minutes-days. Please go read the SimpleDateFormat API as well.

  • How to get the Date in a particular format?

    Hi,
    How to get the Date in the below format? I will be passing the year in my method..
    2/10/2003 9:46:52 PM
    D/M/YYYY H:M:S A
    public Date getDate (String year) {
    Here i want to get the Date in this format
    2/10/<Passed Year> 9:46:52 PM
    Thanks

    This is my code
    public static Date getCalendar(Calendar calendar,int getYear) {
    String      formatted_date="";
         int year = getYear;
         int month = calendar.get(Calendar.MONTH+1);
         int day = calendar.get(Calendar.DATE);
         int hour = calendar.get(Calendar.HOUR);
         int min = calendar.get(Calendar.MINUTE);
         int sec = calendar.get(Calendar.SECOND);
         int am_pm =calendar.get(Calendar.AM_PM);
         formatted_date = month+"/"+day+"/"+year+" "+hour+":"+min+":"+sec+" PM";
         System.out.println("formatted_date is "+formatted_date);     
         o/p : formatted_date is 1/4/2006 1:44:21 PM
         SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
    //     DateFormat dateFormat =DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT);
         Date passdate = new Date();
         try {
              passdate = dateFormat.parse(formatted_date);
         } catch (ParseException e) {
              System.out.println("Invalid Date Parser Exception "+e.getLocalizedMessage()+"DateFormat is "+dateFormat);
              System.out.println("The Date inside the function is "+passdate+"and the year passed is "+year);
    o/p : The Date inside the function is Sat Apr 01 00:00:00 IST 2006and the year passed is 2006
         return passdate;
    Expected O/P is 3/1/2006 1:44:12 PM
         }

  • How to format data for a custom group

    Hi all
    I have a pivot table with Actual and Budget as columns and some accounts in the rows. Since I'm using the account hierarchical column, I created custom groups for the accounts using the Selection steps pane. For example, I created a new group called Profit to combine 3 different Profit accounts and display one Profit line.
    Now I want to format the data for the Profit group. I right-click on the Profit group, choose to edit the group and click on the Format button on the bottom left corner. I add some formatting, e.g. borders. When I now view the pivot table, borders have been applied to the label of the group - so the word Profit is now bordered. However, the values in the Actual and Budget columns do not have a border. Don't know what I'm missing, but I want both the group label and the values to be formatted the same way.
    How can I apply formatting to the data/values for the custom group?

    Yeah tried that already, it formats the entire column whereas I need just the values for the Profit row to be formatted. Seems it is a limitation only when using custom groups?

  • How do i deduct dates using formatted search with a query

    Hi Experts,
    I would like to know how to get the date difference using query and formatted search. Below are the details:
    1. I have created 3 Header UDF's composed of 2  Date type fields and 1 Quantity field.
    2. The first one is for the Original Date, the next one is for the Payment Date and the Last one is for the No. of Days Lapsed.
    What I would like to do is automatically compute for the number of days from the original date to the payment date. What query syntax should i use to achieve this?
    Thanks,
    Yvette

    Hi Yvette,
    It should be something like;
    DATEDIFF (day, T0.[createDate], T0.[closeDate] ) as 'Aging'  This is just an example. You may add your udf's instead of dates.
    Thanks,
    Joseph
    Edited by: Joseph Antony on Jul 2, 2010 1:53 PM

Maybe you are looking for

  • In ST03 , how can i see the Query name, user id,how many times .

    HI Experts, In ST03 , how can i see the Query name, user id,how many times executed the query. these details how do i get from the above transaction. Points will be awarded. BR sivs

  • Accounting document not generated  during billing

    Hi All, Our issue is as following : Standard sales order created with 53 line items, delivery and billing completed where as the accounting document not automatically released.  The error message is maximum no. of line items for FI Document (999)  ha

  • SYSFAIL in qRFC Outbound Queues - You are not authorized to logon

    Dear Guru's, I am new to BASIS. During health check for my company, I came across T-Code SMQ1 and found many Queue Status "SYSFAIL".  Error message "You are not authorized to logon to the target system (error code 0)". The souce system: SAP 7.0 Compo

  • ITunes 10.0.1crashes when iPod mini is connected

    iTunes 10 crashes every time my iPod mini is connected. Is this Apple's way of making me buy a new one? Can I downgrade to a workable version? I don't care about Ping or any of the new features in v10.

  • Invoice# to disputes tables

    Hi Gurus, I need invoice number to dispute reports. Existing datasoruce is getting data from tables SCMG_T_CASE-ATTR & UDMCASEATTR10. I can get invoice from table DFKKKO but there is no common key between these tables. Can any one answer how/from whi