We have updated our Terms of Service, Code of Conduct, and Addendum.

I need to drop computer account name ending with $ sign

Options

I need to drop computer account name ending with $ sign, the Drop function is not recognizing it any suggestion for alternate way of dropping all "computer-name$" ??

Answers

  • xpac xpac
    xpac xpac Posts: 148 ✭✭✭
    Options

    You're aware that the Drop function drops the whole event?

  • saurabh.gupta
    Options

    Yes, i want to drop such whole event meeting filter as shown in screenshot

  • xpac xpac
    xpac xpac Posts: 148 ✭✭✭
    Options

    Try to wrap the $ in double quotes

  • saurabh.gupta
    Options

    the problem is that the filter is not meeting --- i need to match with all Account_Name fields which ends with $ i.e. all computer account

  • saurabh.gupta
    Options

    i did the "$" did not work

  • xpac xpac
    xpac xpac Posts: 148 ✭✭✭
    Options

    Oh wait, Account_Name is not a string but a list

  • saurabh.gupta
    Options

    another observation is that Acccount_Name field has 2 values as shown in the first screenshot

  • xpac xpac
    xpac xpac Posts: 148 ✭✭✭
    Options

    Add a [0] after Account_Name

  • saurabh.gupta
    Options

    can you show me that with screenshot of the exact syntax

  • xpac xpac
    xpac xpac Posts: 148 ✭✭✭
    Options

    No, I'm on mobile phone :smirk:

  • David Maislin
    David Maislin Posts: 228 mod
    Options

    Do you want to remove the values that contain a $ at the end of the array element? What if the second value contains the $? Or are you looking to drop the entire event if any of the values in the array end with a $?

  • David Maislin
    David Maislin Posts: 228 mod
    Options

    The Account_Name.includes('$') will simply check if $ exists anywhere in only the first item in the array, i.e. Account_Name[0]. What if it is Account_Name[1], etc.?

  • xpac xpac
    xpac xpac Posts: 148 ✭✭✭
    Options

    My understanding was that if the Account Name has a $, all values have it

  • David Maislin
    David Maislin Posts: 228 mod
    Options

    Thought I would get fancy...

  • xpac xpac
    xpac xpac Posts: 148 ✭✭✭
    Options

    :grinning:

  • David Maislin
    David Maislin Posts: 228 mod
    Options

    TIL about bind and !!

  • David Maislin
    David Maislin Posts: 228 mod
    Options

    ChatGPT FTW!

  • David Maislin
    David Maislin Posts: 228 mod
    Options

    Here Account_Name would have a `-` and `SETEST$`

  • xpac xpac
    xpac xpac Posts: 148 ✭✭✭
    Options

    I've checked some Windows events now. We see array with 2 Values on Specific events like 4703 where there is Account Name under 'Subject' and Under 'Target Account

  • xpac xpac
    xpac xpac Posts: 148 ✭✭✭
    Options

    the pack that transforms classic to JSON, puts both value under Account_Name

  • David Maislin
    David Maislin Posts: 228 mod
    Options

    Yes, those are sample events I include with the pack, but some real events show that Account_Name can have two different values, and they are not always the same, sometimes one value is `-` and another ends with `$`, etc.

  • xpac xpac
    xpac xpac Posts: 148 ✭✭✭
    Options

    Yes