Is it possible to do In Line RegEx

I know this is probably not possible, but want to throw it out there to see if anyone was able to accomplish this. I am writing automation scripts to add users to different AD Groups and SCCM User Collections. The command I am having an issue with in particular
is get-cmuser. I want to be able to write a regular expression in line as follows:
get-cmuser -Name '*$username*^/(?!test|admin)'
In order to filter out Test and Admin user accounts. Is this possible? I know I can pipe it to a Where-object, but this is extremely slow.
Thanks!
Tony

There is a marginal performance gain if you trade Where-Object for a filter:
Filter NameFilter {if ($_.Name -notmatch '*$username*^/(?!test|admin)'){$_}}
get-cmuser | NameFilter
but you have to do a LOT of them to see any measurable difference.
[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

Similar Messages

  • 2.1 EA2: is it possible to pass current line number to external tool

    When I define external tools (in Tools / External Tools...) I can pass current file name and directory to my external program.
    Is it also possible to pass current line number (where is my cursor in open file) to external program as a parameter?
    If not then it would be a feature request from me :)
    And also - is it possible to develop SQL Developer extensions for syntax color coding of other file types (meaning other than PL/SQL files)?

    raymonds,
    For line numbers, we cannot do it at the moment as it is not exposed in that API, however, you can request it on http://sqldeveloper.oracle.com at the feature request station
    For color coding for another language, you can develop a hilighting plugin, but we do not have an easy way of associating the plugin with an editor for a specific file type. Again this would be a feature request.
    Remember, all these get evaluated each month and assigned into Enhancements for the tool. If enough folks vote for the feature, it is highly likely it will appear.
    Barry

  • Message received when openning the  Adobe Premiere Elements 12 "Not possible to initialize on-line services" What do I have to do?

    Hello,
    How can I fix this problem?
    Message received when openning the  Adobe Premiere Elements 12 "Not possible to initialize on-line services" What do I have to do?
    Thanks in advence,
    FL

    FLOureiro
    What computer operating system is your Premiere Elements 12 running on? Have you updated 12 to 12.1 Update using an opened project's Help Menu/Update? If not, please do so.
    For your immediate issue, have you update the Online Services in preferences?
    Where are you in the program when you get the message "Not possible to initialize on-line services".
    Are you in a country outside of the USA?
    There certain online services that are just not available outside the USA.
    Please review and consider and then, based on your details, we will consider what next.
    Thank you.
    ATR

  • Is it possible to link each line item from an ASN to separate cFolders

    Hi,
    Could you help me with the question mentioned in the subject line? I am very new to cFolders and do not have anyone around inperson to help me out with this. Thanks
    Is it possible to link each line item from an ASN to separate cFolders
    SS

    myApplet.getAppletContext().showDocument(URL url, String target);
    TARGET:
    "_self" Show in the window and frame that contain the applet.
    "_parent" Show in the applet's parent frame. If the applet's frame has no parent frame, acts the same as "_self".
    "_top" Show in the top-level frame of the applet's window. If the applet's frame is the top-level frame, acts the same as "_self".
    "_blank" Show in a new, unnamed top-level window.
    name Show in the frame or window named name. If a target named name does not already exist, a new top-level window with the specified name is created, and the document is shown there.

  • Possible to have 2 lines on mac or windows jabber client? I can do this on the iPhone client.

    Possible to have 2 lines on mac or windows jabber client?  I can do this on the iPhone client.

    No, they can only have 1 line.

  • Is it possible to add new line to existing Blanket Agreement through interface?

    Hi All,
    I need to add a new line to exisitng list of blanket agreements.
    I populated po_headers_interface and po_lines_interface and ran 'Import Price Catalogs' program.
    But this is only trying to update existing line instead of creating a new one.
    Please clarify whether it is possible to add just a line using the above process?
    tried multiple scenarios:
    action field in both tables - ORIGINAL - error, doc already exists.
    action field in both tables - UPDATE - updates existing line.
    action field - (UPDATE in hdr and ORIGINAL in line) - updates existing line.
    Thanks in advance.
    Girish

    Hi All,
    It's working now. populated action field as 'ADD' in po_lines_interface and it created a new line.

  • Is it possible generate file with line break without add one character?

    Hi all,
    my problem is when i generate a file .txt from ABAP as below:
    "===>start of code<===
    REPORT  zteste_bm.
    TYPES: BEGIN OF ty_line,
             v_char(100) TYPE c,
           END OF ty_line.
    DATA: v_it_final type table of ty_line with header line,
          wa_line type ty_line.
    wa_line-v_char = 'line 1 with 24 positions#line 2 with 24 positions#line 3 with 24 positions'.
    REPLACE ALL OCCURRENCES OF '#' IN wa_line-v_char WITH cl_abap_char_utilities=>cr_lf.
    APPEND wa_line to v_it_final.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename = 'c:     emp     este.txt'
        filetype = 'ASC'
      TABLES
        data_tab = v_it_final.
    "===>end of code<===
    When i go to the file .txt it contains:
    line 1 with 24 positions
    line 2 with 24 positions
    line 3 with 24 positions
    and at the end of each line have a charactere in position 25 that represent CRLF (break line).
    My problem is that character 25. I don´t have it in the file .txt.
    Is it possible in ABAP use CRLF to generate the file .txt but remove them after generated? 
    Thanks!

    Bruno,
    Check the paramteres of GUI_DOWNLOAD FM and observe how the text file is when you set or reset the hightlighted input paramters.
    CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
    *   bin_filesize                    =
      filename                        = g_dskpath
    *   filetype                        = 'asc'
    *   append                          = ' '
    *   write_field_separator           = ' '
    *   header                          = '00'
    *   trunc_trailing_blanks           = ' '
      **write_lf                        = 'X'**
    *  col_select                      = ' '
    *   col_select_mask                 = ' '
    *   dat_mode                        = ' '
    *   confirm_overwrite               = ' '
    *   no_auth_check                   = ' '
    *   codepage                        = ' '
    *   ignore_cerr                     = abap_true
    *   replacement                     = '#'
    *   write_bom                       = ' '
      *trunc_trailing_blanks_eol       = 'X' " X will delete the trailing spaces*
    *   wk1_n_format                    = ' '
    *   wk1_n_size                      = ' '
    *   wk1_t_format                    = ' '
    *   wk1_t_size                      = ' '
    * importing
    *   filelength                      =
    TABLES
          data_tab                    = g_t_temp1[]
    *   fieldnames                      =
    EXCEPTIONS
    file_write_error                = 1
    no_batch                        = 2
    gui_refuse_filetransfer         = 3
    invalid_type                    = 4
    no_authority                    = 5
    unknown_error                   = 6
    header_not_allowed              = 7
    separator_not_allowed           = 8
    filesize_not_allowed            = 9
    header_too_long                 = 10
    dp_error_create                 = 11
    dp_error_send                   = 12
    dp_error_write                  = 13
    unknown_dp_error                = 14
    access_denied                   = 15
    dp_out_of_memory                = 16
    disk_full                       = 17
    dp_timeout                      = 18
    file_not_found                  = 19
    dataprovider_exception          = 20
    control_flush_error             = 21
    OTHERS                          = 22
    if sy-subrc <> 0.
    endif.

  • Possible to use command line argument in project file?

    In my CI build process I would like to have a command line argument "customer" that should be used in the project file to include customer related files into the project like this:
    <Content Include="..\customers\%(customer)\*">
      <Link>%(RecursiveDir)%(FileName)%(Extension)</Link>
    </Content>
    Is that possible?

    Hi pkursawe,
    Try to use the Copy task, topy the custom files into the project, then add these files into the ItemGroup, check this blog post:
    How To: Recursively Copy Files Using the <Copy> Task
    The wildcard will help you to add related files into the project.
    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.

  • Is it possible to have 2 lines with BT Infinity Un...

    As you will know, BT Infinity Unlimited broadband has a 100GB threshold, which when met will then throttle your speed to about 1Mb download which renders your internet all but useless except for the most basic tasks.
    I use around 150GB in down/upload each month due to watching movies online and live webcam sites like Justin.tv etc.
    What I want to know is, would it be possible to have 2 telephone lines at the same address with 2 lots of BT Infinity Unlimited broadband, thus giving me 100GB limit on each and 200GB in total.  I could use one line until nearing 100GB useage on one line, then switching to the other line for the rest.
    Is this possible and do BT allow it?
    Solved!
    Go to Solution.

    the threshold is being increased
    http://community.bt.com/t5/BB-in-Home/WHERE-IS-OUR-USAGE-MONITOR-BT/td-p/35371/page/5
    mods post yesterday
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • HUM thresholds: is it possible to watch a line in the graphs?

    Hi,
    I´m configuring HUM thresholds and I would like to watch them as a line in the graphs. By now, I haven't seen what I want. My question is: is it possible to do this?
    Regards.

    Yes, I want to see the SNMP object in real time and a line in the same graph that would be the threshold configured for that poller. I've been creating Histo GraphIts and reports and I haven't been able to watch these threshold lines, only the SNMP object values. Do I have to configure something special to see it?

  • Possible to use audio line out and in simultaneously ?

    In the current version of MacBook Pro Retina is it possible to use the analog audio line out and line in both simultaneously ? That is playback as well as record analog audio at the same time.
    Does anyone know what is the audio hardward platform (Codec, DAC, ADC, etc..) in this machine ?
    Thanks!

    Air has a headset jack.
    You can use a splitter
    Mics should be USB capable for best results, almost all headset mics are junk quality.
    then monitoring or listening thru the headphones
    consider using a PRO MIC , such as an Audio Technica AT2020 USB
    http://www.amazon.com/Audio-Technica-AT2020-USB-Condenser-Microphone/dp/B001AS6O YC/ref=sr_1_1?ie=UTF8&qid=1390776580&sr=8-1&keywords=at2020+usb
    or better still use one of these with pro XLR mics:
    http://www.amazon.com/Focusrite-2i2-USB-Recording-Interface/dp/B005OZE9SA/ref=sr _1_1?ie=UTF8&qid=1390776526&sr=8-1&keywords=2i2

  • Is it possible to have multiple lines on a phone but only have one of the number ring on that phone?

    I have a client who has four number on his phone. Extension 4709 is the clients number. He also has 4715,4725 and 4712 on his phone. Is it possible to make it so only 4709 will ring on his phone? The client is running CME 10.0
    New here and new CME so any help would be greatly appreciated

    Hi Joseph,
    This would be configured using the "button" (s=silent separator) command;
    From;
    http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucme/command/reference/cme_cr/cme_b1ht.html#wp1050318
    Cheers!
    Rob
    button
    To associate ephone-dns with individual buttons on a Cisco Unified IP phone and to specify line type or ring behavior, use the button command in ephone configuration mode. To remove an ephone-dn association from a button, use the no form of this command.
    button button-number {separator} dn-tag [,dn-tag...] [button-number{x}overlay-button-number] [button-number...]
    no button button-number {separator} dn-tag [,dn-tag...] [button-number{x}overlay-button-number] [button-number...]
    Syntax Description
    button-number
    Number of a line button on a Cisco Unified IP phone that is to be associated with an extension (ephone-dn). The maximum number of button-ephone-dn pairs is determined by the phone type. Note The Cisco Unified IP Phone 7910G has only one physical line button, but you can assign it two button-ephone-dn pairs.
    separator
    Single character that denotes the characteristics to be associated with this phone button. Valid entries are as follows: •: (colon)—Normal ring. For incoming calls on this extension, the phone produces audible ringing, a flashing icon in the phone display, and a flashing red light on the handset. On the Cisco IP Phone 7914 Expansion Module, a flashing yellow light also accompanies incoming calls. •b—Beep but no ring. Audible ring is suppressed for incoming calls, but call-waiting beeps are allowed. Visible cues are the same as those described for a normal ring. •c—Call waiting. Provides call waiting for secondary calls to an overlaid ephone-dn. See also the o keyword. •f—Feature ring. Differentiates incoming calls on a special line from incoming calls on other lines on the phone. The feature-ring cadence is a triple pulse, as opposed to a single pulse for normal internal calls and a double pulse for normal external calls.
    •m—Monitor mode for a shared line. Visible line status indicates whether the line is in-use or not. Monitored lines cannot be used on this phone for incoming or outgoing calls. •o—Overlay line. Multiple ephone-dns share a single button, up to a maximum of 25 on a button. See also the c keyword. •s—Silent ring. Audible ring and call-waiting beep are suppressed for incoming calls. The only visible cue is a flashing ((< icon in the phone display. Note In Cisco IOS Release 12.4(4)XC and later releases, the silent ringing behavior is overridden during active night-service periods. Silent ringing does not apply during designated night-service periods when the s keyword is used. •w—Watch mode for all lines on the phone for which this directory number is the primary line. Visible line status indicates whether watched phone is idle or not.
    dn-tag
    Ephone-dn tag that was previously defined using the ephone-dn command. When used with the c and o keywords, the dn-tag argument can contain up to 25 individual dn-tags, separated by commas.
    x
    Separator that creates an overlay rollover button. When the overlay button specified in this command is occupied by an active call, a second call to one of its ephone-dns will appear on this button. This button is also known as an overlay expansion button.
    overlay-button-number
    Number of the overlay button that should overflow to this button.

  • Mail: Outgoing emails have 'Possible Spam' in subject line.

    When I send emails using Mail they are received with 'Possible Spam' added to the subject line. Of course they are not received at all by some providers like Yahoo, gmail and hotmail, also some others. I think it is a Mail problem because it does not happen when I use my provider's webmail rather than Mail. Help?

    Who is your email provider? If your email is received by some people with the words "Possible Spam" in the Subject line, that's done by their email provider; it has nothing to do with Mail or Mac OS X. And if your email is being blocked by Yahoo! Mail, Gmail and Hotmail, that's something they are controlling. For some reason they may have blacklisted the domain of your provider for being a known sender of spam in the past.
    The only way to cure that problem is to have your email provider contact the other email providers and try to get them to take you off their list of blocked or questionable domains.
    Mulder

  • If my plan is a family plan is it possible to put one line on Verizon edge or would all of the lines have to be on Verizon edge

    i have my upgrade next month and i would like to know if it would be possible to pay off a device monthly through Verizon edge without effecting the other devices on the plan with 2 year contracts

    Certainly. You can have only one line on Edge if you like. It does not effect any other line.

  • Is it possible to display fixed lines in the candlestick chart ?

    Hi,
    I have a nice candlestick flash chart using AnyChart integration kit.
    I would like to display 3 lines in this chart, they are as follow and they return one value each :
    SELECT SEUIL_HAUT FROM SITE_ECHELLE WHERE SITE = :p184_ename
    SELECT SEUIL_BAS FROM SITE_ECHELLE WHERE SITE = :p184_ename
    SELECT SEUIL_ALERTE FROM SITE_ECHELLE WHERE SITE = :p184_ename
    You know these line represents limits.
    I tried to add these values in the request below but nothing would appear. Do you have an idea how I could display these fixed lines ?
    DECLARE
    X VARCHAR2 (4000);
    BEGIN
    x := 'With S1 as (
    SELECT DATE1, round(avg(VALEUR),2) OPEN, NVL(ROUND(MAX(Valeur),2), 0) HIGH,
           NVL(ROUND(MIN(Valeur),2), 0) LOW,
           NVL(ROUND(AVG(Valeur),2), 0) CLOSE
    FROM   EVV_'||:P184_ENAME||'
    WHERE  DATE1 BETWEEN
           TO_DATE('''||:P8_DATE_DEBUT||'000000'', ''DD/MM/YYYYHH24MISS'') AND
           TO_DATE('''||:P8_DATE_FIN||'235959'', ''DD/MM/YYYYHH24MISS'') AND
           CLEF_VAR = (SELECT CLEF_VAR FROM SITE_ECHELLE WHERE
                       SITE = '''||:P184_ENAME||''')
           group by date1)
    Select NULL LINK,
           to_char(n, ''DD/MM/YY HH24:MI''),
          NVL(ROUND(AVG(OPEN),2), 0) OPEN,
           nvl(round(max(HIGH),2), 0) HIGH,
           nvl(round(min(LOW),2), 0) LOW,
           NVL(ROUND(AVG(CLOSE),2), 0) CLOSE
    FROM   (select to_date('''||:P8_DATE_DEBUT||''',''DD/MM/YYYY'') + (level-1)/
    TO_NUMBER('''||:P8_ECHELLE||''') n
    from dual  connect by level <=
      (select (to_date('''||:P8_DATE_FIN||''',''DD/MM/YYYY'')+ 1 - to_date('''||:P8_DATE_DEBUT||''',''DD/MM/YYYY'')) * TO_NUMBER('''||:P8_ECHELLE||''')
    from dual
      )) days
            LEFT JOIN s1 ON days.n = trunc(date1,'''||:P8_TRUNC||''')
    GROUP BY n
    order by n';
    RETURN (X);
    END;Thank you for your kind help.
    Christian

    Hello, Jacky, thanks a lot for your answer.
    This is not exactly what I was thinking about:
    I want that the planners can be informed in the BPS planning layout about about e.g. the date when material is available again.
    There should be a text saying: "Material xyz is not available until Oct 1st, 2008"
    Additionally, the user should have the opportunity to give comments on their planning data.
    Any idea?
    Thanks and best regards
    Gerd

Maybe you are looking for