Output format has brackets

Hi Folks,
After having looks through the forums for an answer on my query and observing the level of complexity in some of the discussions I'm almost too embarrassed to ask this. 
I am writing a script to use as a Detection Method in Config Mgr 2012. It will detect if the Win7 SP1 installation has completed.
$SP1 = "6.1.7601"
$SPInstalled = Get-WmiObject win32_operatingsystem | select version
IF (Compare-Object $SPInstalled $SP1)
Write-Host $SP1 "and" $SPInstalled "are different"
ELSE
Write-Host $SP1 " and " $SPInstalled " are equal"
This will return 6.1.7601 and @{version=6.1.7601} are different
I am a long time vbScripter so I know its possible to manipulate the output of the WMI query with Regular Expressions and remove the unwanted text
@{version= }
However, I have no doubt there is a built in Powershell function that would return just the value of the Version attribute. What's the best way to do this?
Thanks,
Mic

You can use expand property - 
$SP1 = "6.1.7601"
$SPInstalled = Get-WmiObject win32_operatingsystem | select -ExpandProperty version
IF (Compare-Object $SPInstalled $SP1)
Write-Host $SP1 "and" $SPInstalled "are different"
ELSE
Write-Host $SP1 " and " $SPInstalled " are equal"
Or just grab the version value
$SP1 = "6.1.7601"
$SPInstalled = Get-WmiObject win32_operatingsystem | select version
IF (Compare-Object $SPInstalled $SP1)
Write-Host $SP1 "and" $SPInstalled.version "are different"
ELSE
Write-Host $SP1 " and " $SPInstalled.version " are equal"

Similar Messages

  • Problem with Excel output format

    Hi Guys,
    I am creating a report in XML Publisher (not standalone). I am facing some problems could anyone please help me to figure out the issues.
    Is it possible to have all three output format (PDF, HTML & EXCEL) exact (same aligned) only by creating a single RTF Template? I am facing the problem with Excel output format the output format of excel is taking excels cell formatting.
    Example Numeric fields --> Right Aligned, text fields --> Left Aligned
    One more issue with excel is -ve(negative) values are getting displayed in red and in brackets like ($13) (with red color).
    Our client want excel output on priority.
    Is there any limitation for excel output format of reports?
    It is very urgent for us please help.
    Any help would be highly appreciated.
    Thanks,
    Pragati
    Edited by: user11237443 on Aug 27, 2009 1:22 AM

    Hi Mahi,
    Thanks for your response. But i could not understand how can we write wrapper program could you please give some light on this or provide some link it would be helpful for me:-)
    I have read that blog for excel limitations but i have more question?
    1) What about the negative values?
    if any field is displaying negative amount then excel not displaying right value for that:(
    2)How can we align header or data?
    Do XMLP with EBS provide any solution for formatting in excel?
    3) If for the alignment of numeric value we concatenate them with any special character then how can we perform calculation that field?
    Here are so many formatting issues do we need to write any code in xml for that?
    Please help.
    Many Thanks,
    Pragati

  • Output format in background is not same as Foreground

    Dear All,
    I am running a report in Background but output is not coming in desired format. Suppose output contains 35 columns ( while running the report in Foreground) but in doesn't show all the columns in background. Is there any SAP Standard settings by which we can set the output format as per our requirement while running the job in background.

    Thanx Sourabh for your reply,
    I have check the variant , it is correct. It's a common problem that end users are facing in my organization.
    What I want that if standard output has width of 35 columns ( in foreground ), it must show all the columns in background also.

  • Want text input containing HTML tags to appear as HTML in output format

    Hi,
    We have a table in Oracle database that has a column named detail,one of its values is like this: <bold><italics>Good Morning</italics></bold>. What our client wants is that the output format should show: <b><i>Good Morning</b></i>. That is,Bi Publisher should be able to parse the HTML tags and provide the desired output. Please tell me how to achieve this. Any help is much appreciated.
    Thanks and regards,
    Debarati,
    [email protected]

    Hi,
    have a look here (http://blogs.oracle.com/xmlpublisher/2007/01/formatting_html_with_templates.html) to get an idea.
    regards
    Rainer

  • (Input and) output formats from Photoshop Elements 6 for Mac

    I noticed that (until midnight PT, anyway) Amazon has Photoshop Elements for the Mac at a lower price than usual.  This brings up a question for me: What output formats can Photoshop Elements 6 produce?  In particular, can it produce PNG?  Also, can it accept PNG as input?

    I think that all the formats like .bmp, camera RAW, EPS,PICT, TIFF, Filmstripn, IFF, JPEG, Photoshop pdf, Photoshop RAW,PNG etc are supported for both input and output.

  • Is any difference in the CDR output format of CUCM version 6.1.5 and 7.1.5?

    Hello,
    Customer has a CUCM 6.1.5 cluster which is getting upgraded to 7.1.5. currently the CUCM CDR is sent to a external system (performix) which generates required reports. I would like to know if there is any difference in the CDR output format of CUCM version 6.1.5 and 7.1.5/ its vital to confirm this prior to upgrade as the performix is managed by a different vendor.
    Please advise !
    Shahid

    You can review the CDR documentation here to find that out, most likely there might be some changes
    Maintain and Operate Guides
    http://www.cisco.com/en/US/products/sw/voicesw/ps556/prod_maintenance_guides_list.html
    CDR admin guides have the field definitions.
    HTH
    java
    If this helps, please rate
    www.cisco.com/go/pdihelpdesk

  • Output formats

    Re: Elements Premier 10 in UK (PAL)
    I have just 'imported' a video clip from my Sony DV camcorder via the firewire port.
    It uses tape but is digital (I think) it save the file to disc in AVI format. This is good I know AVI.
    After I have edited the clip and save (share) it to computer I have various options to save it as. See below;
    I have saved the same clip in a variety of formats to compare them.
    The 'm2t' and 'Pal DVD' formats also create an additional file .xmpses
    However the m2t file plays after I have moved this 'extra' file to a different directory
    hdtv 720p 25 high quality.mpg
    hd720p 25.mpg
    hdtv 1080i 25 high quality.mpg
    hdtv 1080p 25 high quality.mpg
    mpeg2 1440x1080i 25.m2t
    mpeg2 1920x1080i 25.m2t
    pal dvd standard.mpg
    pal dvd widwscreen.mpg
    The physical image sizes as displayed on the laptop screen are different. some take up 1/4 of the screen and some 1/2 of the screen.
    They all expand to full screen. I am not sure if I can any difference in quality thought.
    Obviously the file sizes varies a lot.
    I don't seam to be able to output in avi format!!!!!!
    I intend to leave the files on my NAS drive to stream to my tv via a streaming box I will purchase soon, I am currently using a ps3, but may at some point in the future burn some clips to disc for friends and family
    I may also watch them on the computer screen.
    I appreciate the quality can never get better than the original but what output format should I use and is this extra file needed?

    Some reading...
    Importing Video http://forums.adobe.com/thread/1065281
    Saving & Sharing http://forums.adobe.com/thread/1051093
    Sharing for Computer http://forums.adobe.com/thread/1058237
    Steve's Basic Training Tutorials... steps are the same for several versions
    -http://forums.adobe.com/thread/537685
    -v10 http://www.amazon.com/Muvipix-com-Guide-Premiere-Elements-Version/dp/1466286377/
    -All http://www.amazon.com/Tricks-Adobe-Premiere-Elements-Muvipix-com/dp/1451529724/
    -and http://forums.adobe.com/thread/498626
    FAQ http://forums.adobe.com/community/premiere_elements/premiere_elements_faq
    TIPS http://forums.adobe.com/community/premiere_elements/premiere_elements_tips
    Another help site http://muvipix.com/ or http://muvipix.com/phpBB3/
    User Guide PDF http://help.adobe.com/en_US/premiereelements/using/index.html
    Right click PDF link in the upper right corner and select to save to your hard drive
    -the page also has links to help pages for previous versions

  • Output format

    im using adobe premiere cs5 in my mac.. i want to make some clip which is can be played smoothly on PC with output format is .avi and i cant find the options for make the video become .avi in my adobe premiere for mac? what should i do?

    I just found the web site for this software; its codec support is extremely limited. Their suggested solution is to install a codec pack that most users here recommend against--I won't even name it, since most of us feel it is that bad. However, the documentation says that installing that is necessary to enable playback of formats like MOV and MP4.
    Look in EasyWorship Church Presentation Software / Support for the manual; the knowledge base also has a "Video Compatibility" section that may prove useful.

  • Change Output format of standard program RFSZIS00

    Hi All,
    I want to change output format of standard program RFSZIS00 for this i copied this into Z program but i am not able to
    find out where final output table is populating because that program is not using any final internal table it's using EXRACT and
    another thing is all discription for field has given in German Language.
    It's a clasical report not an ALV.
    Edited by: Raj Singh on Jul 3, 2009 11:03 AM

    Dear Raj,
    as per the report mentioned by you, it is calling some subroutine to display the details.
    Just try to trace the WRITE statements and check if you can add your own include in this report to display the output as per your requirement.
    Regds,
    Anil

  • Broadcast Email to PDF output format

    Hi All,
    We are using the standard web template (0ANALYSIS_PATTERN) to broadcast email for PDF output format. I'm managed to received the PDF attachment email but however instead of one query, it contains duplication of the same query (repeated query) in the PDF file. We are also using the standard 0QUERY_TEMPLATE_BROADCAST_PDF web template.
    Has anyone experience this issue before and what is the solution for this?

    Hi All,
    We are using the standard web template (0ANALYSIS_PATTERN) to broadcast email for PDF output format. I'm managed to received the PDF attachment email but however instead of one query, it contains duplication of the same query (repeated query) in the PDF file. We are also using the standard 0QUERY_TEMPLATE_BROADCAST_PDF web template.
    Has anyone experience this issue before and what is the solution for this?

  • Enhancement Req (v4.0): Report Query- Output Format- Derive from Item

    Brief Introduction
    I have 1 major request I would like to make (and 2 lesser ones). The first, I would like to specify custom available output formats for 'Report Query' objects, as well as Reports Regions, Interactive Reports, etc. I believe that this could easily be an instance setting in the Report Server region of the internal workspace, or per workspace / application. Even if not supported on the system wide level, I would recommend that the "Derived from Item" output format "Return Value" be allowed to be returned unaltered to the Report Server. I know that the type is returned as "_xf", and for my purposes I would REALLY like to be able to get something other than the defaults.
    Use Case
    I am creating a custom JasperReports integration (for which I will be launching a public SaaS beta extremely soon). It uses the standard Apex reporting objects (Queries, Layouts, Print Buttons, etc). JasperReports templates are uploaded as Report Layouts and everything works fine. I am, however, wanting to implement as many output formats as are available to me in Jasper...that means Word 07, Excel 07, ODS, ODT, etc. For the items that take a print server override I can handle this in other ways (even though this appears broken [see below]), but for the standard report queries this isn't available. I would basically like the option to define the set of available output formats for the report server, and what the "_xf" returned for each one is.
    Minor Requests
    - Replace Uploaded Templates: If a template is used often and updated, then it has to be changed everywhere...minor irritation.
    - Customize Report Server URL for the Workspace or Application: For SaaS instances, workspace developers may license or have access to reporting solutions that are not (and should not be) available to all of the Oracle instance's workspaces, or may conflict with a service that is already provided by the instance administrators.
    Broken
    When I use the print server override, with the "Use Headers From" option, it appears that neither my content type, nor my content disposition headers are being sent back to the client. This is the work around solution for the non-standard types issue I am requesting enhancement on, so I would like to know what I can do to get this working immediately.
    Additional Info
    As it stands, if the site is available, feel free to sign up for the beta. The beta keys will be exported soon to the instance and made available. Instructions on setup will also follow:
    https://apex.vendelinc.com/apex/f?p=home

    Hi, please did you get any solution to this issue? I am having similar challenge right now.
    select     EMP.DEPTNO as DEPTNO,
         DEPT.DNAME as DNAME,
         EMP.EMPNO as EMPNO,
         EMP.ENAME as ENAME,
         EMP.JOB as JOB,
         EMP.MGR as MGR,
         EMP.HIREDATE as HIREDATE,
         EMP.SAL as SAL
    from     SCOTT.DEPT DEPT,
         SCOTT.EMP EMP
    where EMP.DEPTNO=DEPT.DEPTNO
    and      DEPT.DNAME =upper(:dname)
    This run perfectly in sql developer, toad, and even inside publisher if I login directly to publisher to create report.
    Generating this same query in shared component query builder and testing it returns no data found. If I remove the last line, it works. but with the last line, it return no data found. It seems no one has been able to provide solution to this issue

  • Output Format for Amount in SAP Script PO

    Hi,
    In my Standard SAP Script PO Form 'MEDRUCK', all amount values are getting printed in the form 1.234.567,89 but I want them to be in the Form 1,234,567.89 .
    For doing this I have gone in T-Code SU3 and set the default decimal notation as
    X 1,234,567.89 . 
    I have also tried by giving the command
    /: SET COUNTRY 'IN'
    But still the amounts in the ouput format is coming in the same way 1.234.567,89 .
    If anyone has faced similar situation, plz tell how to change the output format of amount in SAP Script.
    Thanks and Regards,
    Nitin Gupta

    I have tried using SU3 but it's not worknig. Is their any other method also of which maybe I am not aware of?

  • Anyone understand the purpose of Proxy render/output format?

    So I've done a couple of projects with X now and am fairly happy with the proxy workflow:
    1) Ingest, creating proxies, but no optimized - render format set to ProRes regular
    2) Edit in proxy
    3) In preferences, switch back to "Use original or optimized"
    4) Tweak edit
    5) Render and export
    However, I'm still not understanding the thinking behind the render/output format (full-resolution proxy) when you are editing in proxy. It seems to me that it SHOULD be:
    EITHER: When you're editing proxy, if you render/export, FCPX renders/outputs in proxy using the same low resolution as your proxy files. This would be great for early, quick samples for clients. No need to spend forever rendering full-res ProRes regular, or the pointless upsizing of pre-rendered lo-res proxies.
    OR: Even while you're editing from proxies, background rendering is done in your full-quality format (i.e. 1080 ProRes regular). This would save you from re-rendering when you switch back over to original/optimized.
    Ideally, there'd be a toggle to choose which of these you want. Even without a toggle, Apple should pick one of these it seems. The way it is now seems useless.
    SUMMARY:
    While editing in proxy, render/output should be either:
    1) 720x540 ProRes Proxy
    OR
    2) 1920x1080 ProRes Regular
    BUT NOT
    3)1920x1080 ProRes Proxy
    I was going to send an enhancement request about it, but figured I'd first see if anybody knows of a useful reason for it instead being this third, awkward format.
    Thoughts?

    I had hoped the summary would clear up the question. I guess not. Let's try this again:
    QUESTION - Would other people like the output, when in proxy mode, to be a low-res ProRes Proxy file - the same size as the files that are created when you tell FCPX to make proxies of your original files?
    DETAILS
    - When you create proxies of your original files, they are a low-resolution of "something"x540 (in my case 720x540)
    - If you output while in proxy, you get a proxy output file at 1920x1080 - this is 5.3 times as many pixels to render as 720x540.
    - Assuming a linear relationship between number of pixels and render time, this means it would take over 5 times as long to render the current form of proxy output, as compared to what I'm asking for.
    - I want a quickly-rendered format (like 720x540 Proxy) so I can quickly render/output, change things, re-render/output, sending multiple sample files to the client.
    - Of course, the ability to mark in/out on the timeline and export just that section is also important here, but that's another post and has already been discussed.
    - For further details, see my original post
    As for my workflow, I don't need to work with either/or. I work in proxy (which, if you're doing more than straight cuts, allows better playback before rendering, no matter what computer you're using) until I'm ready for the final tweaks to graphics or the edit that actually rely on fine detail, and want to output in 1080 Prores regular, at which point I change the preference back to original/optimized, like I said right at the start of the first post. No mind reading necessary. I then tweak, render and output. I'm not sure you're understanding the purpose of a proxy workflow.

  • Diagnostic Reporter Output Format?

    Hello; I've just begun working with the Diagnostic Reporter piece that comes with the StorEdge 3x00 software, and I've generated reports and notifications in both XML and non-XML format.
    I have no XML experience; when I receive the report in XML format, and I attempt to open in IE, it displays the XML coding for the report. If I open it in Firefox, it also displays the coding, but includes an error at the bottom saying that there "appears to be no style sheet" available for this XML file.
    If I use the non-XML format, the report comes in a jumbled plain-text format. Some sections are tidy enough to be read, others aren't.
    I've gone through Sun support, and the group that I was directed to stated that no one on their team has any experience with the Diagnostic Reporter tool.
    Does anyone have any tools or tips for how to read or reformat the Diagnostic Reporter output? Thanks!

    Hi,
    While defining Template you have defined the output format as pdf,so edit the template and output format Excel.
    Thanks & Regards
    Srikkanth

  • Oracle eBS- PO Output Format field - question

    Hi,
    If I'm using this path
    1.Log in to the Purchasing Super User responsibility.
    2. Navigate to the Purchasing Options window. (Navigation: Set Up > Organization > Purchasing Options)
    3. Navigate to the Control tab.
    4. and then I choose PO Output Format field
    The problem is I can't change this (PO Output Format field) from TEXT to PDF. Does anybody knows why?
    Regards,
    Marius

    See Note: 301824.1.
    XML Publisher has not been installed on the server.

Maybe you are looking for

  • Photoshop Bridge always crashes during a copy process.

    While moving a folder with Photoshop Bridge the application crashed and the folder has disappeared on my disk. Why dose Photoshop Bridge always stalls while moving and copying files or folders? What's the background and the solution to prevent this?

  • Sending an InDesign document in an e-mail as an eBlast

    I have create a newsletter in InDesign, and I would like to e-mail it out as an eBlast. When I send it through Outlook as a JPG, Outlook downsizes the files and the newsletter looks awful. I have tried bumping the resolution down to 96 in hopes that

  • Annotations to replace ejb-jar.xml?

    Hi gurus,   Seems that the newest NWDS7.1 does not create ejb-jar.xml for EJB project. And I was told that currently all what we can do in ejb-jar.xml can be done with annotations right now. But where can I find available annotation list? Particularl

  • Tiger iMac cannot print on Leopard iMac.. what gives?

    The setup: 20" iMac with Leopard installed, and a Brother HL-2030 working fine through USB. A 17" iMac of the same build of the 20" mac, with Tiger. It detects the Brother printer, but as soon as it tries to send a document to the network printer. Bo

  • Logic Pro X Comping shortcut

    Is there a shortcut to interchange between the comping button and moving a take in the comp folders? This would save so much time rather than having to click the button at the top left of the audio file every time I want to move a take! Cheers, T